Completed
Push — develop ( 4f6165...4ca717 )
by Neomerx
15:07 queued 07:34
created
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/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/PDO/PdoContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public static function configureContainer(LimoncelloContainerInterface $container): void
35 35
     {
36
-        $container[PDO::class] = function (PsrContainerInterface $container) {
36
+        $container[PDO::class] = function(PsrContainerInterface $container) {
37 37
             $settings = $container->get(SettingsProviderInterface::class)->get(C::class);
38 38
             $database = new PDO(
39 39
                 $settings[C::KEY_CONNECTION_STRING],
Please login to merge, or discard this patch.
src/Packages/FileSystem/FileSystemContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public static function configureContainer(LimoncelloContainerInterface $container): void
33 33
     {
34
-        $container[FileSystemInterface::class] = function () {
34
+        $container[FileSystemInterface::class] = function() {
35 35
             return new FileSystem();
36 36
         };
37 37
     }
Please login to merge, or discard this patch.
src/Packages/Authorization/AuthorizationContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public static function configureContainer(LimoncelloContainerInterface $container): void
37 37
     {
38
-        $container[AuthorizationManagerInterface::class] = function (PsrContainerInterface $container) {
38
+        $container[AuthorizationManagerInterface::class] = function(PsrContainerInterface $container) {
39 39
             $settingsProvider = $container->get(SettingsProviderInterface::class);
40 40
             $settings         = $settingsProvider->get(S::class);
41 41
 
Please login to merge, or discard this patch.
src/Packages/L10n/L10nContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public static function configureContainer(LimoncelloContainerInterface $container): void
39 39
     {
40
-        $container[FormatterFactoryInterface::class] = function (PsrContainerInterface $container) {
40
+        $container[FormatterFactoryInterface::class] = function(PsrContainerInterface $container) {
41 41
             $settingsProvider = $container->get(SettingsProviderInterface::class);
42 42
             $settings         = $settingsProvider->get(S::class);
43 43
 
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/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
         $modelSchemas  = new ModelSchemaInfo();
132
-        $registerModel = function ($modelClass) use ($modelSchemas, &$registered, $requireReverseRel) {
132
+        $registerModel = function($modelClass) use ($modelSchemas, &$registered, $requireReverseRel) {
133 133
             /** @var ModelInterface $modelClass */
134 134
             $modelSchemas->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
                     $modelSchemas->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.