Passed
Push — master ( 404d89...b5f3d8 )
by Arthur
02:54
created
src/Helpers/SqlOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     {
77 77
         // id must be there anyway
78 78
         $this->data = $data;
79
-        if(in_array(ModelsInterface::ID, $this->data) === false)
79
+        if (in_array(ModelsInterface::ID, $this->data) === false)
80 80
         {
81 81
             $this->data[] = ModelsInterface::ID;
82 82
         }
Please login to merge, or discard this patch.
src/Helpers/MigrationsHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
         $table = '';
14 14
         // make entity lc + underscore
15 15
         $words = preg_split(self::PATTERN_SPLIT_UC, lcfirst($objectName));
16
-        foreach($words as $key => $word)
16
+        foreach ($words as $key => $word)
17 17
         {
18 18
             $table .= $word;
19
-            if(empty($words[$key + 1]) === false)
19
+            if (empty($words[$key + 1]) === false)
20 20
             {
21 21
                 $table .= PhpInterface::UNDERSCORE;
22 22
             }
Please login to merge, or discard this patch.
src/Helpers/Classes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         $ref = new \ReflectionClass($class);
17 17
 
18
-        return (string) $ref->getShortName();
18
+        return (string)$ref->getShortName();
19 19
     }
20 20
 
21 21
     /**
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $ref = new \ReflectionClass($object);
29 29
 
30
-        return (string) $ref->getShortName();
30
+        return (string)$ref->getShortName();
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
src/Helpers/Json.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
                 foreach ($relations as $v) {
74 74
                     $attrs     = $v->getAttributes();
75 75
                     $jsonArr[] = [ApiInterface::RAML_TYPE => $entity,
76
-                                  ApiInterface::RAML_ID   => $attrs[ApiInterface::RAML_ID]];
76
+                                    ApiInterface::RAML_ID   => $attrs[ApiInterface::RAML_ID]];
77 77
                 }
78 78
             } else {
79 79
                 foreach ($relations as $v) {
Please login to merge, or discard this patch.
src/Types/DefaultInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
     public const PREFIX_KEY = 'prefix';
13 13
 
14 14
     // console colors
15
-    public const ANSI_COLOR_RED    =  "\x1b[31m";
16
-    public const ANSI_COLOR_GREEN  =  "\x1b[32m";
15
+    public const ANSI_COLOR_RED    = "\x1b[31m";
16
+    public const ANSI_COLOR_GREEN  = "\x1b[32m";
17 17
     public const ANSI_COLOR_YELLOW = "\x1b[33m";
18 18
     public const ANSI_COLOR_RESET  = "\x1b[0m";
19 19
 
Please login to merge, or discard this patch.
src/Controllers/BaseCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
         if (empty($this->data[ApiInterface::RAML_KEY_USES]) === false) {
302 302
             if ($this->isRollback) {
303 303
                 foreach ($this->files as $file) {
304
-                    $fileData    = Yaml::parse(file_get_contents($this->formatGenPathByDir() . $file));
304
+                    $fileData = Yaml::parse(file_get_contents($this->formatGenPathByDir() . $file));
305 305
                     $this->types += $fileData[ApiInterface::API_COMPONENTS][ApiInterface::API_SCHEMAS];
306 306
                 }
307 307
             } else {
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                 foreach ($files as $file) {
310 310
                     $this->files[] = $file;
311 311
                     $fileData      = Yaml::parse(file_get_contents($file));
312
-                    $this->types   += $fileData[ApiInterface::API_COMPONENTS][ApiInterface::API_SCHEMAS];
312
+                    $this->types += $fileData[ApiInterface::API_COMPONENTS][ApiInterface::API_SCHEMAS];
313 313
                 }
314 314
             }
315 315
         }
Please login to merge, or discard this patch.
src/Blocks/Module.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
     private function createModuleContent()
48 48
     {
49 49
         $this->sourceCode .= PhpInterface::PHP_RETURN . PhpInterface::SPACE
50
-                             . PhpInterface::OPEN_BRACKET . PHP_EOL . PhpInterface::TAB_PSR4
51
-                             . $this->quoteParam(ModulesInterface::KEY_MODULES)
52
-                             . PhpInterface::DOUBLE_ARROW . PhpInterface::SPACE
53
-                             . PhpInterface::OPEN_BRACKET . PHP_EOL . PhpInterface::TAB_PSR4
54
-                             . PhpInterface::TAB_PSR4 . $this->quoteParam($this->generator->version)
55
-                             . PhpInterface::COMMA . PHP_EOL . PhpInterface::TAB_PSR4
56
-                             . PhpInterface::CLOSE_BRACKET . PHP_EOL
57
-                             . PhpInterface::CLOSE_BRACKET . PhpInterface::SEMICOLON;
50
+                                . PhpInterface::OPEN_BRACKET . PHP_EOL . PhpInterface::TAB_PSR4
51
+                                . $this->quoteParam(ModulesInterface::KEY_MODULES)
52
+                                . PhpInterface::DOUBLE_ARROW . PhpInterface::SPACE
53
+                                . PhpInterface::OPEN_BRACKET . PHP_EOL . PhpInterface::TAB_PSR4
54
+                                . PhpInterface::TAB_PSR4 . $this->quoteParam($this->generator->version)
55
+                                . PhpInterface::COMMA . PHP_EOL . PhpInterface::TAB_PSR4
56
+                                . PhpInterface::CLOSE_BRACKET . PHP_EOL
57
+                                . PhpInterface::CLOSE_BRACKET . PhpInterface::SEMICOLON;
58 58
     }
59 59
 }
60 60
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         exec(CommandsInterface::LARAVEL_MODULE_MAKE . PhpInterface::SPACE . $this->generator->version, $output);
36 36
         exec(CommandsInterface::LARAVEL_MODULE_USE . PhpInterface::SPACE . $this->generator->version, $output);
37 37
         exec(CommandsInterface::LARAVEL_MODULE_LIST, $output);
38
-        foreach($output as $str)
38
+        foreach ($output as $str)
39 39
         {
40 40
             Console::out($str, Console::COLOR_GREEN);
41 41
         }
Please login to merge, or discard this patch.
src/Blocks/Controllers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             . DefaultInterface::CONTROLLER_POSTFIX
43 43
             . PhpInterface::PHP_EXT;
44 44
         $isCreated = FileManager::createFile($fileController, $this->sourceCode);
45
-        if($isCreated)
45
+        if ($isCreated)
46 46
         {
47 47
             Console::out($fileController . PhpInterface::SPACE . Console::CREATED, Console::COLOR_GREEN);
48 48
         }
Please login to merge, or discard this patch.
src/Blocks/EntitiesTrait.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
     private function getRelationType(string $objectName)
202 202
     {
203 203
         if (empty($this->generator->types[$objectName][ApiInterface::RAML_PROPS]
204
-                  [ApiInterface::RAML_RELATIONSHIPS][ApiInterface::RAML_TYPE]) === false
204
+                    [ApiInterface::RAML_RELATIONSHIPS][ApiInterface::RAML_TYPE]) === false
205 205
         ) {
206 206
             return trim(
207 207
                 $this->generator->types[$objectName][ApiInterface::RAML_PROPS]
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     protected function setEntities() : void
48 48
     {
49 49
         $this->entity      = Classes::cutEntity(Classes::getObjectName($this), DefaultInterface::CONTROLLER_POSTFIX);
50
-        $formRequestEntity  = $this->getFormRequestEntity(conf::getModuleName(), $this->entity);
50
+        $formRequestEntity = $this->getFormRequestEntity(conf::getModuleName(), $this->entity);
51 51
         $this->formRequest = new $formRequestEntity();
52 52
         $this->props       = get_object_vars($this->formRequest);
53 53
         $this->modelEntity = Classes::getModelEntity($this->entity);
Please login to merge, or discard this patch.