Completed
Push — master ( 8e829c...fc40f2 )
by Neomerx
01:53
created
src/Commands/DataCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         return [
101 101
             [
102 102
                 static::OPTION_NAME        => static::OPT_PATH,
103
-                static::OPTION_DESCRIPTION => 'Path to a list of migrations or seeds. ' .
103
+                static::OPTION_DESCRIPTION => 'Path to a list of migrations or seeds. '.
104 104
                     'If not given a path from settings will be used.',
105 105
                 static::OPTION_SHORTCUT    => 'i',
106 106
                 static::OPTION_MODE        => static::OPTION_MODE__REQUIRED,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 $this->createSeedRunner($path, $seedInit)->run($container);
149 149
                 break;
150 150
             default:
151
-                $inOut->writeError("Unsupported action `$action`." . PHP_EOL);
151
+                $inOut->writeError("Unsupported action `$action`.".PHP_EOL);
152 152
                 break;
153 153
         }
154 154
     }
Please login to merge, or discard this patch.
src/Packages/Application/ApplicationContainerConfigurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public static function configureContainer(LimoncelloContainerInterface $container): void
39 39
     {
40 40
         $container[CommandStorageInterface::class] =
41
-            function (PsrContainerInterface $container): CommandStorageInterface {
41
+            function(PsrContainerInterface $container): CommandStorageInterface {
42 42
                 $creator = new class
43 43
                 {
44 44
                     use ClassIsTrait;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 $providerClasses  = $settings[S::KEY_PROVIDER_CLASSES];
80 80
                 $commandsFolder   = $settings[S::KEY_COMMANDS_FOLDER];
81 81
                 $commandsFileMask = $settings[S::KEY_COMMANDS_FILE_MASK] ?? '*.php';
82
-                $commandsPath     = $commandsFolder . DIRECTORY_SEPARATOR . $commandsFileMask;
82
+                $commandsPath     = $commandsFolder.DIRECTORY_SEPARATOR.$commandsFileMask;
83 83
 
84 84
                 $storage = $creator->createCommandStorage($commandsPath, $providerClasses);
85 85
 
Please login to merge, or discard this patch.
src/Authorization/AuthorizationRulesLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             if ($reflectionMethod->isPublic() === true &&
105 105
                 $reflectionMethod->isStatic() === true &&
106 106
                 $reflectionMethod->hasReturnType() === true &&
107
-                (string)$reflectionMethod->getReturnType() === 'bool' &&
107
+                (string) $reflectionMethod->getReturnType() === 'bool' &&
108 108
                 $reflectionMethod->getNumberOfParameters() === 1 &&
109 109
                 $reflectionMethod->getParameters()[0]->getClass()->implementsInterface(ContextInterface::class) === true
110 110
             ) {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         }
154 154
 
155 155
         $policy = (new Policy($rules, RuleAlgorithm::firstApplicable()))
156
-            ->setName($policiesName . ' -> ' . RequestProperties::REQ_RESOURCE_TYPE . "=`$resourcesType`")
156
+            ->setName($policiesName.' -> '.RequestProperties::REQ_RESOURCE_TYPE."=`$resourcesType`")
157 157
             ->setTarget($this->target(RequestProperties::REQ_RESOURCE_TYPE, $resourcesType));
158 158
 
159 159
         return $policy;
Please login to merge, or discard this patch.
src/Commands/ApplicationCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 $this->executeClear($container, $inOut);
114 114
                 break;
115 115
             default:
116
-                $inOut->writeError("Unsupported action `$action`." . PHP_EOL);
116
+                $inOut->writeError("Unsupported action `$action`.".PHP_EOL);
117 117
                 break;
118 118
         }
119 119
     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             throw new ConfigurationException();
139 139
         }
140 140
 
141
-        $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php';
141
+        $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php';
142 142
 
143 143
         $this->getFileSystem($container)->delete($path);
144 144
     }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $settingsData     = $settingsProvider->serialize();
168 168
         $content          = $this->composeContent($settingsData, $namespace, $class, $method);
169 169
 
170
-        $path = $cacheDir . DIRECTORY_SEPARATOR . $class . '.php';
170
+        $path = $cacheDir.DIRECTORY_SEPARATOR.$class.'.php';
171 171
         $this->getFileSystem($container)->write($path, $content);
172 172
     }
173 173
 
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
 
236 236
         assert(
237 237
             $data !== null,
238
-            'It seems the data are not exportable. It is likely to be caused by class instances ' .
239
-                'that do not implement ` __set_state` magic method required by `var_export`. ' .
238
+            'It seems the data are not exportable. It is likely to be caused by class instances '.
239
+                'that do not implement ` __set_state` magic method required by `var_export`. '.
240 240
                 'See http://php.net/manual/en/language.oop5.magic.php#object.set-state for more details.'
241 241
         );
242 242
 
Please login to merge, or discard this patch.
src/Packages/Application/WhoopsContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public static function configureContainer(LimoncelloContainerInterface $container): void
37 37
     {
38 38
         $container[ThrowableHandlerInterface::class] =
39
-            function (PsrContainerInterface $container): ThrowableHandlerInterface {
39
+            function(PsrContainerInterface $container): ThrowableHandlerInterface {
40 40
                 return new WhoopsThrowableHandler();
41 41
             };
42 42
     }
Please login to merge, or discard this patch.
src/Packages/Application/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
         $routeConfigurators = [];
94 94
         if (empty($method) === false && empty($path) === false) {
95
-            list(, , , , , $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path);
95
+            list(,,,,, $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path);
96 96
         }
97 97
 
98 98
         // configure container
Please login to merge, or discard this patch.
src/Packages/Cors/CorsContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public static function configureContainer(LimoncelloContainerInterface $container): void
40 40
     {
41
-        $container[AnalyzerInterface::class] = function (PsrContainerInterface $container) {
41
+        $container[AnalyzerInterface::class] = function(PsrContainerInterface $container) {
42 42
             $settingsProvider = $container->get(SettingsProviderInterface::class);
43 43
             $corsSettings     = $settingsProvider->get(C::class);
44 44
             $analyzer         = Analyzer::instance(new Settings($corsSettings));
Please login to merge, or discard this patch.
src/Packages/Data/DataSettings.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-     * @return array
108
+     * @return string
109 109
      */
110 110
     protected function getSettings(): array
111 111
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         );
89 89
         assert(file_exists($seedsListFile) === true, "Invalid Seeds file `$seedsListFile`.");
90 90
 
91
-        $modelsPath = $modelsFolder . DIRECTORY_SEPARATOR . $modelsFileMask;
91
+        $modelsPath = $modelsFolder.DIRECTORY_SEPARATOR.$modelsFileMask;
92 92
 
93 93
         $seedInit = $defaults[static::KEY_SEED_INIT] ?? null;
94 94
         assert(
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
         $registered    = [];
131 131
         $modelSchemes  = new ModelSchemeInfo();
132
-        $registerModel = function ($modelClass) use ($modelSchemes, &$registered, $requireReverseRel) {
132
+        $registerModel = function($modelClass) use ($modelSchemes, &$registered, $requireReverseRel) {
133 133
             /** @var ModelInterface $modelClass */
134 134
             $modelSchemes->registerClass(
135 135
                 $modelClass,
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 foreach ($relationships[RelationshipTypes::BELONGS_TO] as $relName => list($rClass, $fKey, $rRel)) {
146 146
                     /** @var string $rClass */
147 147
                     $modelSchemes->registerBelongsToOneRelationship($modelClass, $relName, $fKey, $rClass, $rRel);
148
-                    $registered[(string)$modelClass][$relName] = true;
148
+                    $registered[(string) $modelClass][$relName] = true;
149 149
                     $registered[$rClass][$rRel]                = true;
150 150
 
151 151
                     // Sanity check. Every `belongs_to` should be paired with `has_many` on the other side.
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                             $rRelationships[RelationshipTypes::HAS_MANY][$rRel] === [$modelClass, $fKey, $relName]);
157 157
                     /** @var string $modelClass */
158 158
 
159
-                    assert($isRelationshipOk, "`belongsTo` relationship `$relName` of class $modelClass " .
159
+                    assert($isRelationshipOk, "`belongsTo` relationship `$relName` of class $modelClass ".
160 160
                         "should be paired with `hasMany` relationship.");
161 161
                 }
162 162
             }
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
                         (isset($rRelationships[RelationshipTypes::BELONGS_TO][$rRel]) === true &&
171 171
                             $rRelationships[RelationshipTypes::BELONGS_TO][$rRel] === [$modelClass, $fKey, $relName]);
172 172
                     /** @var string $modelClass */
173
-                    assert($isRelationshipOk, "`hasMany` relationship `$relName` of class $modelClass " .
173
+                    assert($isRelationshipOk, "`hasMany` relationship `$relName` of class $modelClass ".
174 174
                         "should be paired with `belongsTo` relationship.");
175 175
                 }
176 176
             }
177 177
 
178 178
             if (array_key_exists(RelationshipTypes::BELONGS_TO_MANY, $relationships) === true) {
179 179
                 foreach ($relationships[RelationshipTypes::BELONGS_TO_MANY] as $relName => $data) {
180
-                    if (isset($registered[(string)$modelClass][$relName]) === true) {
180
+                    if (isset($registered[(string) $modelClass][$relName]) === true) {
181 181
                         continue;
182 182
                     }
183 183
                     /** @var string $rClass */
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                         $rClass,
192 192
                         $rRel
193 193
                     );
194
-                    $registered[(string)$modelClass][$relName] = true;
194
+                    $registered[(string) $modelClass][$relName] = true;
195 195
                     $registered[$rClass][$rRel]                = true;
196 196
                 }
197 197
             }
Please login to merge, or discard this patch.
src/Cookies/Cookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      */
151 151
     public function setExpiresInSeconds(int $seconds): CookieInterface
152 152
     {
153
-        return $this->setExpiresAtUnixTime(time() + (int)max(0, $seconds));
153
+        return $this->setExpiresAtUnixTime(time() + (int) max(0, $seconds));
154 154
     }
155 155
 
156 156
     /**
Please login to merge, or discard this patch.