Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/bluzphp/bluzman
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk authored and Anton Shevchuk committed Apr 4, 2017
2 parents 1897083 + 240b93d commit ae2f409
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Command/Generate/GridCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

if (!$this->getApplication()->isModelExists($model)) {
throw new InputException(
"Model $model is not exist, ".
"Model $model is not exist, " .
"run command <question>bluzman generate:model $model</question> before"
);
}
Expand All @@ -76,7 +76,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

if (!$this->getApplication()->isModuleExists($module)) {
throw new InputException(
"Module $module is not exist, ".
"Module $module is not exist, " .
"run command <question>bluzman generate:module $module</question> before"
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Generate/ModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function configure()

$controller = new InputArgument(
'controller',
InputArgument::OPTIONAL|InputArgument::IS_ARRAY,
InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
'Controller name(s)'
);

Expand Down
8 changes: 4 additions & 4 deletions src/Command/Generate/RestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ protected function execute(InputInterface $input, OutputInterface $output)

if (!$this->getApplication()->isModelExists($model)) {
throw new InputException(
"Model $model is not exist, ".
"Model $model is not exist, " .
"run command <question>bluzman generate:model $model</question> before"
);
}

$crudPath = $this->getApplication()->getModelPath($model) .DS. 'Crud.php';
$crudPath = $this->getApplication()->getModelPath($model) . DS . 'Crud.php';
if (!is_file($crudPath)) {
throw new InputException(
"CRUD for $model is not exist, ".
"CRUD for $model is not exist, " .
"run command <question>bluzman generate:crud $model</question> before"
);
}
Expand All @@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

if (!$this->getApplication()->isModuleExists($module)) {
throw new InputException(
"Module $module is not exist, ".
"Module $module is not exist, " .
"run command <question>bluzman generate:module $module</question> before"
);
}
Expand Down

0 comments on commit ae2f409

Please sign in to comment.