Passed
Push — main ( 1df9d5...7e4c53 )
by Dimitri
03:09
created
src/Router/RouteBuilder.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $this->collection->presenter($name, $this->attributes + $options);
205 205
 
206
-		$this->attributes = [];
206
+        $this->attributes = [];
207 207
     }
208 208
 
209 209
     /**
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     {
242 242
         $this->collection->resource($name, $this->attributes + $options);
243 243
 
244
-		$this->attributes = [];
244
+        $this->attributes = [];
245 245
     }
246 246
 
247 247
     /**
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     {
290 290
         $this->collection->{$method}($from, $to, $this->attributes + $options);
291 291
 
292
-		$this->attributes = [];
292
+        $this->attributes = [];
293 293
 
294 294
         return $this;
295 295
     }
Please login to merge, or discard this patch.
src/Config/Config.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
      */
31 31
     private static array $loaded = [];
32 32
 
33
-	/**
34
-	 * Different registrars decouverts.
35
-	 * 
36
-	 * Les registrars sont des mecanismes permettant aux packages externe de definir un elements de configuration
37
-	 */
38
-	private static array $registrars = [];
33
+    /**
34
+     * Different registrars decouverts.
35
+     * 
36
+     * Les registrars sont des mecanismes permettant aux packages externe de definir un elements de configuration
37
+     */
38
+    private static array $registrars = [];
39 39
 
40 40
     /**
41 41
      * Drapeau permettant de savoir si la config a deja ete initialiser
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 $configurations = (array) require $file;
143 143
             }
144 144
 
145
-			$configurations = Arr::merge(self::$registrars[$config] ?? [], $configurations);
145
+            $configurations = Arr::merge(self::$registrars[$config] ?? [], $configurations);
146 146
 
147 147
             if (empty($schema)) {
148 148
                 $schema = self::schema($config);
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             return;
224 224
         }
225 225
 
226
-		$this->loadRegistrar();
226
+        $this->loadRegistrar();
227 227
         $this->load(['app']);
228 228
 
229 229
         ini_set('log_errors', 1);
@@ -236,35 +236,35 @@  discard block
 block discarded – undo
236 236
         self::$initialized = true;
237 237
     }
238 238
 
239
-	/**
240
-	 * Charges les registrars disponible pour l'application.
241
-	 * Les registrars sont des mecanismes permettant aux packages externe de definir un elements de configuration
242
-	 */
243
-	private function loadRegistrar() 
244
-	{
245
-		$autoloader = new Autoloader(['psr4' => [APP_NAMESPACE => APP_PATH]]);
246
-		$locator    = new Locator($autoloader->initialize());
247
-
248
-		$registrarsFiles = $locator->search('Config/Registrar.php');
249
-
250
-		foreach ($registrarsFiles as $file) {
251
-			$class   = new ReflectionClass($locator->getClassname($file));
252
-			$methods = $class->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC);
253
-
254
-			foreach ($methods as $method) {
255
-				if (!($method->isPublic() && $method->isStatic())) {
256
-					continue;
257
-				}
258
-
259
-				if (!is_array($result = $method->invoke(null))) {
260
-					continue;
261
-				}
262
-
263
-				$name                    = $method->getName();
264
-				self::$registrars[$name] = Arr::merge(self::$registrars[$name] ?? [], $result);
265
-			}
266
-		}
267
-	}
239
+    /**
240
+     * Charges les registrars disponible pour l'application.
241
+     * Les registrars sont des mecanismes permettant aux packages externe de definir un elements de configuration
242
+     */
243
+    private function loadRegistrar() 
244
+    {
245
+        $autoloader = new Autoloader(['psr4' => [APP_NAMESPACE => APP_PATH]]);
246
+        $locator    = new Locator($autoloader->initialize());
247
+
248
+        $registrarsFiles = $locator->search('Config/Registrar.php');
249
+
250
+        foreach ($registrarsFiles as $file) {
251
+            $class   = new ReflectionClass($locator->getClassname($file));
252
+            $methods = $class->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC);
253
+
254
+            foreach ($methods as $method) {
255
+                if (!($method->isPublic() && $method->isStatic())) {
256
+                    continue;
257
+                }
258
+
259
+                if (!is_array($result = $method->invoke(null))) {
260
+                    continue;
261
+                }
262
+
263
+                $name                    = $method->getName();
264
+                self::$registrars[$name] = Arr::merge(self::$registrars[$name] ?? [], $result);
265
+            }
266
+        }
267
+    }
268 268
 
269 269
     /**
270 270
      * Initialise l'URL
Please login to merge, or discard this patch.
spec/application/app/Config/mail.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return [
4
-   'from'       => ['address' => '[email protected]', 'name' => 'Example'],
5
-   'handler'    => 'phpmailer',
6
-   'view_dir'   => 'emails',
7
-   'template'   => '',
8
-   'dsn'        => '',
9
-   'protocol'   => \BlitzPHP\Mail\Mail::PROTOCOL_SENDMAIL,
10
-   'host'       => 'localhost',
11
-   'username'   => '',
12
-   'password'   => '',
13
-   'port'       => 25,
14
-   'timeout'    => 5,
15
-   'encryption' => \BlitzPHP\Mail\Mail::ENCRYPTION_NONE,
16
-   'mailType'   => 'html',
17
-   'charset'    => \BlitzPHP\Mail\Mail::CHARSET_UTF8,
18
-   'priority'   => \BlitzPHP\Mail\Mail::PRIORITY_NORMAL,
4
+    'from'       => ['address' => '[email protected]', 'name' => 'Example'],
5
+    'handler'    => 'phpmailer',
6
+    'view_dir'   => 'emails',
7
+    'template'   => '',
8
+    'dsn'        => '',
9
+    'protocol'   => \BlitzPHP\Mail\Mail::PROTOCOL_SENDMAIL,
10
+    'host'       => 'localhost',
11
+    'username'   => '',
12
+    'password'   => '',
13
+    'port'       => 25,
14
+    'timeout'    => 5,
15
+    'encryption' => \BlitzPHP\Mail\Mail::ENCRYPTION_NONE,
16
+    'mailType'   => 'html',
17
+    'charset'    => \BlitzPHP\Mail\Mail::CHARSET_UTF8,
18
+    'priority'   => \BlitzPHP\Mail\Mail::PRIORITY_NORMAL,
19 19
 ];
Please login to merge, or discard this patch.