Completed
Push — master ( f2c439...2a9983 )
by Neomerx
04:50
created
src/Authorization/AuthorizationRulesLoader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * @param string      $policiesName
136 136
      * @param string      $class
137
-     * @param array       $methods
137
+     * @param string[]       $methods
138 138
      * @param string|null $resourcesType
139 139
      *
140 140
      * @return PolicyInterface
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
     /**
180 180
      * @param string|int      $key
181
-     * @param string|int|null $value
181
+     * @param null|string $value
182 182
      *
183 183
      * @return TargetInterface
184 184
      */
Please login to merge, or discard this patch.
src/FileSystem/FileSystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     {
70 70
         is_dir($folderPath) === true ?: $this->throwEx(new FileSystemException());
71 71
 
72
-        $iterator = call_user_func(function () use ($folderPath) {
72
+        $iterator = call_user_func(function() use ($folderPath) {
73 73
             foreach (new DirectoryIterator($folderPath) as $directoryIterator) {
74 74
                 /** @var DirectoryIterator $directoryIterator */
75 75
                 if ($directoryIterator->isDot() === false) {
Please login to merge, or discard this patch.
src/Settings/InstanceSettingsProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
         $nextIndex    = 0;
172 172
         $hashMap      = []; // hash  => index
173 173
         $settingsData = []; // index => instance data
174
-        $getIndex = function (SettingsInterface $instance) use (&$nextIndex, &$hashMap, &$settingsData): int {
174
+        $getIndex = function(SettingsInterface $instance) use (&$nextIndex, &$hashMap, &$settingsData): int {
175 175
             $hash = spl_object_hash($instance);
176 176
             if (array_key_exists($hash, $hashMap) === true) {
177 177
                 $index = $hashMap[$hash];
Please login to merge, or discard this patch.
src/Settings/FileSettingsProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     private function checkDoNotHaveRequiredParametersOnCreate(string $className): bool
55 55
     {
56 56
         try {
57
-            $reflection  = new ReflectionClass($className);
57
+            $reflection = new ReflectionClass($className);
58 58
             if ($reflection->isInstantiable() === false) {
59 59
                 throw new InvalidSettingsClassException($className);
60 60
             }
Please login to merge, or discard this patch.
src/Packages/Data/DataSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
         $registered    = [];
98 98
         $modelSchemes  = new ModelSchemeInfo();
99
-        $registerModel = function ($modelClass) use ($modelSchemes, &$registered, $requireReverseRel) {
99
+        $registerModel = function($modelClass) use ($modelSchemes, &$registered, $requireReverseRel) {
100 100
             /** @var ModelInterface $modelClass */
101 101
             $modelSchemes->registerClass(
102 102
                 $modelClass,
Please login to merge, or discard this patch.
src/Data/ModelSchemeInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     public function setData(array $data)
103 103
     {
104 104
         list($this->foreignKeys, $this->belongsToMany, $this->relationshipTypes,
105
-            $this->reversedRelationships,$this->tableNames, $this->primaryKeys,
105
+            $this->reversedRelationships, $this->tableNames, $this->primaryKeys,
106 106
             $this->attributeTypes, $this->attributeLengths, $this->attributes, $this->reversedClasses) = $data;
107 107
     }
108 108
 
Please login to merge, or discard this patch.
src/ExceptionHandlers/DefaultHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     private function handle(Throwable $exception, SapiInterface $sapi, ContainerInterface $container)
71 71
     {
72
-        $message  = 'Internal Server Error';
72
+        $message = 'Internal Server Error';
73 73
 
74 74
         $this->logException($exception, $container, $message);
75 75
 
Please login to merge, or discard this patch.
src/Packages/Application/Application.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $routeConfigurators = [];
99 99
         if (empty($method) === false && empty($path) === false) {
100
-            list(, , , , , $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path);
100
+            list(,,,,, $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path);
101 101
         }
102 102
 
103 103
         // configure container
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     protected function createThrowableHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure
212 212
     {
213
-        return function (Throwable $throwable) use ($sapi, $container) {
213
+        return function(Throwable $throwable) use ($sapi, $container) {
214 214
             $handler = $this->createExceptionHandler($container);
215 215
             $handler->handleThrowable($throwable, $sapi, $container);
216 216
         };
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     protected function createErrorHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure
226 226
     {
227
-        return function ($severity, $message, $fileName, $lineNumber) use ($sapi, $container) {
227
+        return function($severity, $message, $fileName, $lineNumber) use ($sapi, $container) {
228 228
             $errorException = new ErrorException($message, 0, $severity, $fileName, $lineNumber);
229 229
             $handler = $this->createThrowableHandler($sapi, $container);
230 230
             $handler($errorException);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      */
240 240
     protected function createFatalErrorHandler(PsrContainerInterface $container): Closure
241 241
     {
242
-        return function () use ($container) {
242
+        return function() use ($container) {
243 243
             $error = $this->getLastError();
244 244
             if ($error !== null && ((int)$error['type'] & (E_ERROR | E_COMPILE_ERROR))) {
245 245
                 $handler = $this->createExceptionHandler($container);
Please login to merge, or discard this patch.
src/Packages/Monolog/MonologFileContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public static function configureContainer(LimoncelloContainerInterface $container): void
45 45
     {
46
-        $container[LoggerInterface::class] = function (PsrContainerInterface $container) {
46
+        $container[LoggerInterface::class] = function(PsrContainerInterface $container) {
47 47
             $settingsProvider = $container->get(SettingsProviderInterface::class);
48 48
             $appSettings      = $settingsProvider->get(A::class);
49 49
             $monologSettings  = $settingsProvider->get(C::class);
Please login to merge, or discard this patch.