Passed
Push — master ( 8c8483...c11e7d )
by Anton
02:59
created
src/Command/Generate/GridCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
             if (!$this->getApplication()->isModelExists($model)) {
68 68
                 throw new InputException(
69
-                    "Model $model is not exist, ".
69
+                    "Model $model is not exist, " .
70 70
                     "run command <question>bluzman generate:model $model</question> before"
71 71
                 );
72 72
             }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
                 if (!$this->getApplication()->isModuleExists($module)) {
78 78
                     throw new InputException(
79
-                        "Module $module is not exist, ".
79
+                        "Module $module is not exist, " .
80 80
                         "run command <question>bluzman generate:module $module</question> before"
81 81
                     );
82 82
                 }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $model = ucfirst($input->getArgument('model'));
112 112
 
113 113
         // generate CRUD
114
-        $crudFile = $this->getApplication()->getModelPath($model) .DS. 'Grid.php';
114
+        $crudFile = $this->getApplication()->getModelPath($model) . DS . 'Grid.php';
115 115
 
116 116
         if (file_exists($crudFile)) {
117 117
             $this->comment("Crud file <info>$model/Grid.php</info> already exists");
Please login to merge, or discard this patch.
src/Command/Generate/RestCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 
55 55
             if (!$this->getApplication()->isModelExists($model)) {
56 56
                 throw new InputException(
57
-                    "Model $model is not exist, ".
57
+                    "Model $model is not exist, " .
58 58
                     "run command <question>bluzman generate:model $model</question> before"
59 59
                 );
60 60
             }
61 61
 
62
-            $crudPath = $this->getApplication()->getModelPath($model) .DS. 'Crud.php';
62
+            $crudPath = $this->getApplication()->getModelPath($model) . DS . 'Crud.php';
63 63
             if (!is_file($crudPath)) {
64 64
                 throw new InputException(
65
-                    "CRUD for $model is not exist, ".
65
+                    "CRUD for $model is not exist, " .
66 66
                     "run command <question>bluzman generate:crud $model</question> before"
67 67
                 );
68 68
             }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
             if (!$this->getApplication()->isModuleExists($module)) {
74 74
                 throw new InputException(
75
-                    "Module $module is not exist, ".
75
+                    "Module $module is not exist, " .
76 76
                     "run command <question>bluzman generate:module $module</question> before"
77 77
                 );
78 78
             }
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function generate(InputInterface $input, OutputInterface $output)
100 100
     {
101
-        $model= ucfirst($input->getArgument('model'));
102
-        $module= $input->getArgument('module');
101
+        $model = ucfirst($input->getArgument('model'));
102
+        $module = $input->getArgument('module');
103 103
 
104 104
         $this->write("Generate <info>$module/controllers/rest.php</info>");
105 105
 
Please login to merge, or discard this patch.