Passed
Push — master ( 813b52...b69cbb )
by Arthur
03:02
created
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/Blocks/Module.php 1 patch
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.
src/Blocks/EntitiesTrait.php 1 patch
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.
src/Blocks/Entities.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this->generator = $generator;
38 38
         $this->className = Classes::getClassName($this->generator->objectName);
39 39
         $isSoftDelete    = empty($this->generator->types[$this->generator->objectName . CustomsInterface::CUSTOM_TYPES_ATTRIBUTES]
40
-                                 [ApiInterface::RAML_PROPS][ModelsInterface::COLUMN_DEL_AT]) === false;
40
+                                    [ApiInterface::RAML_PROPS][ModelsInterface::COLUMN_DEL_AT]) === false;
41 41
         $this->setIsSoftDelete($isSoftDelete);
42 42
     }
43 43
 
Please login to merge, or discard this patch.
src/Blocks/Tests.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
         $this->startMethod($methodOpts);
80 80
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::IM_GOING_TO,
81 81
             [TestsInterface::TEST_WORD . PhpInterface::SPACE . $this->generator->objectName
82
-             . PhpInterface::SPACE . MethodsInterface::VIEW]);
82
+                . PhpInterface::SPACE . MethodsInterface::VIEW]);
83 83
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEND_GET,
84 84
             [PhpInterface::SLASH . $this->generator->version . PhpInterface::SLASH . mb_strtolower($this->generator->objectName)
85
-             . PhpInterface::SLASH . $id]);
85
+                . PhpInterface::SLASH . $id]);
86 86
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEE_RESP_IS_JSON);
87 87
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEE_RESP_CONTAINS_JSON, [$this->getJsonApiResponse(true)], false);
88 88
         $this->endMethod();
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
         $this->startMethod($methodOpts);
98 98
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::IM_GOING_TO,
99 99
             [TestsInterface::TEST_WORD . PhpInterface::SPACE . $this->generator->objectName
100
-             . PhpInterface::SPACE . MethodsInterface::CREATE]);
100
+                . PhpInterface::SPACE . MethodsInterface::CREATE]);
101 101
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEND_POST,
102 102
             [PhpInterface::SLASH . $this->generator->version . PhpInterface::SLASH . mb_strtolower($this->generator->objectName),
103
-             $this->getJsonApiRequest()]);
103
+                $this->getJsonApiRequest()]);
104 104
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEE_RESP_IS_JSON);
105 105
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEE_RESP_CONTAINS_JSON, [$this->getJsonApiResponse(true)], false);
106 106
         $this->endMethod();
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
         $this->startMethod($methodOpts);
117 117
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::IM_GOING_TO,
118 118
             [TestsInterface::TEST_WORD . PhpInterface::SPACE . $this->generator->objectName
119
-             . PhpInterface::SPACE . MethodsInterface::UPDATE]);
119
+                . PhpInterface::SPACE . MethodsInterface::UPDATE]);
120 120
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEND_PATCH,
121 121
             [PhpInterface::SLASH . $this->generator->version . PhpInterface::SLASH . mb_strtolower($this->generator->objectName)
122
-             . PhpInterface::SLASH . $id, $this->getJsonApiRequest()]);
122
+                . PhpInterface::SLASH . $id, $this->getJsonApiRequest()]);
123 123
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEE_RESP_IS_JSON);
124 124
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEE_RESP_CONTAINS_JSON, [$this->getJsonApiResponse(true)], false);
125 125
         $this->endMethod();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $this->startMethod($methodOpts);
139 139
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::IM_GOING_TO,
140 140
             [TestsInterface::TEST_WORD . PhpInterface::SPACE . $this->generator->objectName
141
-             . PhpInterface::SPACE . MethodsInterface::DELETE]);
141
+                . PhpInterface::SPACE . MethodsInterface::DELETE]);
142 142
         $this->methodCallOnObject(TestsInterface::PARAM_I, TestsInterface::SEND_DELETE,
143 143
             [PhpInterface::SLASH . $this->generator->version . PhpInterface::SLASH . mb_strtolower($this->generator->objectName) . PhpInterface::SLASH . $id]);
144 144
         $this->endMethod();
Please login to merge, or discard this patch.
src/Blocks/FileManager.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
     public static function migrationNotExists(Command $obj, string $migrationName): bool
105 105
     {
106 106
         $path  = FileManager::getModulePath($obj) . self::DATABASE_DIR . PhpInterface::SLASH
107
-                 . $obj->migrationsDir . PhpInterface::SLASH;
107
+                    . $obj->migrationsDir . PhpInterface::SLASH;
108 108
         $file  = $path . PhpInterface::ASTERISK . $migrationName
109
-                 . PhpInterface::PHP_EXT;
109
+                    . PhpInterface::PHP_EXT;
110 110
         $files = glob($file);
111 111
 
112 112
         return empty($files) ? true : false;
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
     public static function getPivotFile(string $firstEntity, string $secondEntity): string
124 124
     {
125 125
         return DirsInterface::MODULES_DIR . PhpInterface::SLASH
126
-               . ConfigHelper::getModuleName() . PhpInterface::SLASH .
127
-               DirsInterface::ENTITIES_DIR . PhpInterface::SLASH .
128
-               $firstEntity . $secondEntity . PhpInterface::PHP_EXT;
126
+                . ConfigHelper::getModuleName() . PhpInterface::SLASH .
127
+                DirsInterface::ENTITIES_DIR . PhpInterface::SLASH .
128
+                $firstEntity . $secondEntity . PhpInterface::PHP_EXT;
129 129
     }
130 130
 }
131 131
\ No newline at end of file
Please login to merge, or discard this patch.
src/Blocks/FormRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
     public function createAccessToken()
265 265
     {
266 266
         if (empty($this->generator->types[CustomsInterface::CUSTOM_TYPES_QUERY_PARAMS][ApiInterface::RAML_PROPS]
267
-                  [JSONApiInterface::PARAM_ACCESS_TOKEN][ApiInterface::RAML_KEY_DEFAULT]) === false
267
+                    [JSONApiInterface::PARAM_ACCESS_TOKEN][ApiInterface::RAML_KEY_DEFAULT]) === false
268 268
         ) {
269 269
             $this->setAccessTokenContent();
270 270
             $fileForm  = FileManager::getModulePath($this->generator, true) . $this->generator->formRequestDir
Please login to merge, or discard this patch.
src/Blocks/Migrations.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
     public function create()
45 45
     {
46 46
         $migrationName = ModelsInterface::MIGRATION_CREATE . PhpInterface::UNDERSCORE .
47
-                         $this->tableName .
48
-                         PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE;
47
+                            $this->tableName .
48
+                            PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE;
49 49
         $attrKey = $this->generator->objectName . CustomsInterface::CUSTOM_TYPES_ATTRIBUTES;
50 50
 
51 51
         $isFileNonExistent = FileManager::migrationNotExists($this->generator, $migrationName);
@@ -82,20 +82,20 @@  discard block
 block discarded – undo
82 82
             foreach($relations as $relationEntity)
83 83
             {
84 84
                 $entityFile = $this->generator->formatEntitiesPath()
85
-                              . PhpInterface::SLASH .
86
-                              $this->generator->objectName .
87
-                              ucfirst($relationEntity) .
88
-                              PhpInterface::PHP_EXT;
85
+                                . PhpInterface::SLASH .
86
+                                $this->generator->objectName .
87
+                                ucfirst($relationEntity) .
88
+                                PhpInterface::PHP_EXT;
89 89
                 if(file_exists($entityFile))
90 90
                 {
91 91
                     $this->setPivotContent($relationEntity);
92 92
 
93 93
                     $migrationMask = date(self::PATTERN_TIME) . (self::$counter + 1);
94 94
                     $migrationName = ModelsInterface::MIGRATION_CREATE . PhpInterface::UNDERSCORE
95
-                                     . $this->tableName
96
-                                     . PhpInterface::UNDERSCORE .
97
-                                     MigrationsHelper::getTableName($relationEntity) .
98
-                                     PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE;
95
+                                        . $this->tableName
96
+                                        . PhpInterface::UNDERSCORE .
97
+                                        MigrationsHelper::getTableName($relationEntity) .
98
+                                        PhpInterface::UNDERSCORE . ModelsInterface::MIGRATION_TABLE;
99 99
 
100 100
                     if(FileManager::migrationNotExists($this->generator, $migrationName))
101 101
                     {
Please login to merge, or discard this patch.