Passed
Push — main ( ebfbeb...970435 )
by Dimitri
04:29
created
src/Loader/FileLocator.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $loader = Services::locator();
40 40
 
41
-        if (! is_array($filenames)) {
41
+        if (!is_array($filenames)) {
42 42
             $filenames = [$filenames];
43 43
         }
44 44
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 }
83 83
 
84 84
                 // Les helpers au niveau de l'application doivent remplacer tous les autres
85
-                if (! empty($appHelper)) {
85
+                if (!empty($appHelper)) {
86 86
                     $includes[] = $appHelper;
87 87
                     $loaded[]   = $filename;
88 88
                 }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 $includes = [...$includes, ...$localIncludes];
92 92
 
93 93
                 // Et celui par défaut du système doit être ajouté en dernier.
94
-                if (! empty($systemHelper)) {
94
+                if (!empty($systemHelper)) {
95 95
                     $includes[] = $systemHelper;
96 96
                     $loaded[]   = $filename;
97 97
                 }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 			$schema = null;
163 163
 		}
164 164
 
165
-        if (empty($schema) || ! ($schema instanceof Schema)) {
165
+        if (empty($schema) || !($schema instanceof Schema)) {
166 166
             $schema = Expect::mixed();
167 167
         }
168 168
 
@@ -180,16 +180,16 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public static function model(string $model, ?ConnectionInterface $connection = null)
182 182
     {
183
-        if (! class_exists($model) && ! Text::endsWith($model, 'Model')) {
183
+        if (!class_exists($model) && !Text::endsWith($model, 'Model')) {
184 184
             $model .= 'Model';
185 185
         }
186 186
 
187
-        if (! class_exists($model)) {
187
+        if (!class_exists($model)) {
188 188
             $model = str_replace(APP_NAMESPACE . '\\Models\\', '', $model);
189 189
             $model = APP_NAMESPACE . '\\Models\\' . $model;
190 190
         }
191 191
 
192
-        if (! class_exists($model)) {
192
+        if (!class_exists($model)) {
193 193
             throw LoadException::modelNotFound($model);
194 194
         }
195 195
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     protected static function verifyPreferApp(array $options, string $name): bool
219 219
     {
220 220
         // Tout element sans restriction passe
221
-        if (! $options['preferApp']) {
221
+        if (!$options['preferApp']) {
222 222
             return true;
223 223
         }
224 224
 
Please login to merge, or discard this patch.