Passed
Push — main ( 7ca792...577f5e )
by Dimitri
03:34
created
src/Config/Database.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
             $group = on_test() ? 'test' : (on_prod() ? 'production' : 'development');
58 58
         }
59 59
 
60
-        if (! isset($config[$group]) && strpos($group, 'custom-') === false) {
60
+        if (!isset($config[$group]) && strpos($group, 'custom-') === false) {
61 61
             $group = 'default';
62 62
         }
63 63
 
64
-        if (is_string($group) && ! isset($config[$group]) && strpos($group, 'custom-') !== 0) {
64
+        if (is_string($group) && !isset($config[$group]) && strpos($group, 'custom-') !== 0) {
65 65
             throw new InvalidArgumentException($group . ' is not a valid database connection group.');
66 66
         }
67 67
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $config = $config[$group];
73 73
 
74
-        if (str_contains($config['driver'], 'sqlite') && $config['database'] !== ':memory:' && ! str_contains($config['database'], DS)) {
74
+        if (str_contains($config['driver'], 'sqlite') && $config['database'] !== ':memory:' && !str_contains($config['database'], DS)) {
75 75
             $config['database'] = APP_STORAGE_PATH . $config['database'];
76 76
         }
77 77
 
Please login to merge, or discard this patch.
src/Http/Request.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         try {
38 38
             return $this->validation($rules, $messages)->safe();  
39
-        }
40
-        catch (DimtrovichValidationException $e) {
39
+        } catch (DimtrovichValidationException $e) {
41 40
             $th = new ValidationException($e->getMessage());
42 41
             $th->setErrors([$e->getMessage()]);
43 42
             throw $th;
Please login to merge, or discard this patch.
src/Router/Dispatcher.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             $controller = $routes->getDefaultController();
178 178
         }
179 179
 
180
-        if (! $fullName && is_string($controller)) {
180
+        if (!$fullName && is_string($controller)) {
181 181
             $controller = str_replace($routes->getDefaultNamespace(), '', $controller);
182 182
         }
183 183
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
                 require_once $routes_file;
279 279
             }
280 280
         }
281
-        if (empty($routes) || ! ($routes instanceof RouteCollection)) {
281
+        if (empty($routes) || !($routes instanceof RouteCollection)) {
282 282
             $routes = Services::routes();
283 283
         }
284 284
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
          */
307 307
         $this->gatherOutput($this->middleware->handle($this->request));
308 308
 
309
-        if (! $returnResponse) {
309
+        if (!$returnResponse) {
310 310
             $this->sendResponse();
311 311
         }
312 312
 
@@ -354,14 +354,14 @@  discard block
 block discarded – undo
354 354
             return;
355 355
         }
356 356
 
357
-        if (is_cli() && ! on_test()) {
357
+        if (is_cli() && !on_test()) {
358 358
             // @codeCoverageIgnoreStart
359 359
             // $this->request = Services::clirequest($this->config);
360 360
             // @codeCoverageIgnoreEnd
361 361
         }
362 362
 
363 363
         $version = $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1';
364
-        if (! is_numeric($version)) {
364
+        if (!is_numeric($version)) {
365 365
             $version = substr($version, strpos($version, '/') + 1);
366 366
         }
367 367
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
         // Supposons le succès jusqu'à preuve du contraire.
381 381
         $this->response = Services::response()->withStatus(200);
382 382
 
383
-        if (! is_cli() || on_test()) {
383
+        if (!is_cli() || on_test()) {
384 384
         }
385 385
 
386 386
         $this->response = $this->response->withProtocolVersion($this->request->getProtocolVersion());
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     {
417 417
         if ($cachedResponse = Services::cache()->read($this->generateCacheName())) {
418 418
             $cachedResponse = unserialize($cachedResponse);
419
-            if (! is_array($cachedResponse) || ! isset($cachedResponse['output']) || ! isset($cachedResponse['headers'])) {
419
+            if (!is_array($cachedResponse) || !isset($cachedResponse['output']) || !isset($cachedResponse['headers'])) {
420 420
                 throw new FrameworkException('Error unserializing page cache');
421 421
             }
422 422
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
      */
546 546
     protected function determinePath(): string
547 547
     {
548
-        if (! empty($this->path)) {
548
+        if (!empty($this->path)) {
549 549
             return $this->path;
550 550
         }
551 551
 
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
         }
600 600
 
601 601
         // Essayez de charger automatiquement la classe
602
-        if (! class_exists($this->controller, true) || $this->method[0] === '_') {
602
+        if (!class_exists($this->controller, true) || $this->method[0] === '_') {
603 603
             throw PageNotFoundException::controllerNotFound($this->controller, $this->method);
604 604
         }
605 605
 
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
         // Affiche l'erreur 404
688 688
         $this->response = $this->response->withStatus($e->getCode());
689 689
 
690
-        if (! on_test()) {
690
+        if (!on_test()) {
691 691
             // @codeCoverageIgnoreStart
692 692
             if (ob_get_level() > 0) {
693 693
                 ob_end_flush();
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
             ob_end_flush(); // @codeCoverageIgnore
700 700
         }
701 701
 
702
-        throw PageNotFoundException::pageNotFound(! on_prod() || is_cli() ? $e->getMessage() : '');
702
+        throw PageNotFoundException::pageNotFound(!on_prod() || is_cli() ? $e->getMessage() : '');
703 703
     }
704 704
 
705 705
     /**
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
     public function storePreviousURL($uri)
755 755
     {
756 756
         // Ignorer les requĂŞtes CLI
757
-        if (is_cli() && ! on_test()) {
757
+        if (is_cli() && !on_test()) {
758 758
             return; // @codeCoverageIgnore
759 759
         }
760 760
 
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
         $this->middleware = Services::injector()->make(Middleware::class, ['response' => $this->response]);
856 856
         
857 857
         $middlewaresFile = CONFIG_PATH . 'middlewares.php';
858
-        if (file_exists($middlewaresFile) && ! in_array($middlewaresFile, get_included_files(), true)) {
858
+        if (file_exists($middlewaresFile) && !in_array($middlewaresFile, get_included_files(), true)) {
859 859
             $middleware = require $middlewaresFile;
860 860
             if (is_callable($middleware)) {
861 861
                 $middlewareQueue = $middleware($this->middleware, $this->request);
@@ -874,11 +874,11 @@  discard block
 block discarded – undo
874 874
      */
875 875
     private function spoofRequestMethod(): callable
876 876
     {
877
-        return static function (ServerRequestInterface $request, ResponseInterface $response, callable $next) {
877
+        return static function(ServerRequestInterface $request, ResponseInterface $response, callable $next) {
878 878
             $post = $request->getParsedBody();
879 879
 
880 880
             // Ne fonctionne qu'avec les formulaires POST
881
-            if (strtoupper($request->getMethod()) === 'POST' && ! empty($post['_method'])) {
881
+            if (strtoupper($request->getMethod()) === 'POST' && !empty($post['_method'])) {
882 882
                 // Accepte seulement PUT, PATCH, DELETE
883 883
                 if (in_array(strtoupper($post['_method']), ['PUT', 'PATCH', 'DELETE'], true)) {
884 884
                     $request = $request->withMethod($post['_method']);
@@ -893,15 +893,15 @@  discard block
 block discarded – undo
893 893
     {
894 894
         $_this = $this;
895 895
 
896
-        return static function (ServerRequestInterface $request, ResponseInterface $response, callable $next) use($_this): ResponseInterface {
896
+        return static function(ServerRequestInterface $request, ResponseInterface $response, callable $next) use($_this): ResponseInterface {
897 897
             try {
898 898
                 $returned = $_this->startController($request, $response);
899 899
 
900 900
                 // Closure controller has run in startController().
901
-                if (! is_callable($_this->controller)) {
901
+                if (!is_callable($_this->controller)) {
902 902
                     $controller = $_this->createController($request, $response);
903 903
 
904
-                    if (! method_exists($controller, '_remap') && ! is_callable([$controller, $_this->method], false)) {
904
+                    if (!method_exists($controller, '_remap') && !is_callable([$controller, $_this->method], false)) {
905 905
                         throw PageNotFoundException::methodNotFound($_this->method);
906 906
                     }
907 907
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -828,8 +828,7 @@  discard block
 block discarded – undo
828 828
             
829 829
         try {
830 830
             $response = $response->withBody(to_stream($returned));
831
-        }
832
-        catch (InvalidArgumentException $e) {
831
+        } catch (InvalidArgumentException $e) {
833 832
         }
834 833
     
835 834
         return $response;
@@ -917,8 +916,7 @@  discard block
 block discarded – undo
917 916
                 Services::event()->trigger('post_system');
918 917
 
919 918
                 return $_this->formatResponse($response, $returned);
920
-            }
921
-            catch (ValidationException $e) {
919
+            } catch (ValidationException $e) {
922 920
                 $code   = $e->getCode();
923 921
                 $errors = $e->getErrors();
924 922
                 if (empty($errors)) {
@@ -929,8 +927,7 @@  discard block
 block discarded – undo
929 927
                     if (strtoupper($request->getMethod()) === 'POST') {
930 928
                         if (is_subclass_of($_this->controller, ApplicationController::class)) {
931 929
                             return Services::redirection()->back()->withInput()->withErrors($errors)->withStatus($code);
932
-                        }
933
-                        else if (is_subclass_of($_this->controller, RestController::class)) {
930
+                        } else if (is_subclass_of($_this->controller, RestController::class)) {
934 931
                             return $_this->formatResponse($response->withStatus($code), [
935 932
                                 'success' => false,
936 933
                                 'code'    => $code,
@@ -938,8 +935,7 @@  discard block
 block discarded – undo
938 935
                             ]);
939 936
                         }
940 937
                     }
941
-                }
942
-                else if (strtoupper($request->getMethod()) === 'POST') {
938
+                } else if (strtoupper($request->getMethod()) === 'POST') {
943 939
                     return Services::redirection()->back()->withInput()->withErrors($errors)->withStatus($code);
944 940
                 }
945 941
 
Please login to merge, or discard this patch.
src/Mail/MailerInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public const ENCRYPTION_TLS = 'tls';
21 21
 
22 22
     /**
23
-	 * Ajoute un texte alternatif pour le message en cas de nom prise en charge du html
23
+     * Ajoute un texte alternatif pour le message en cas de nom prise en charge du html
24 24
      */
25 25
     public function alt(string $content): self;
26 26
     
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function header(array|string $name, ?string $value = null): self;
55 55
     
56 56
     /**
57
-	 * Defini le message Ă  envoyer au format html
57
+     * Defini le message Ă  envoyer au format html
58 58
      */
59 59
     public function html(string $content): self;
60 60
     
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
     public function init(array $config): self;
65 65
     
66 66
     /**
67
-	 * Renvoie l'identifiant du dernier mail envoyé
67
+     * Renvoie l'identifiant du dernier mail envoyé
68 68
      */
69 69
     public function lastId(): string;
70 70
     
71 71
     /**
72
-	 * Defini le message Ă  envoyer
72
+     * Defini le message Ă  envoyer
73 73
      */
74 74
     public function message(string $message) : self;
75 75
     
@@ -94,17 +94,17 @@  discard block
 block discarded – undo
94 94
     public function sign(string $cert_filename, string $key_filename, string $key_pass, string $extracerts_filename = ''): self;
95 95
 
96 96
     /**
97
-	 * Defini le sujet du mail
97
+     * Defini le sujet du mail
98 98
      */
99 99
     public function subject(string $subject): self;
100 100
     
101 101
     /**
102
-	 * Defini le message Ă  envoyer au format texte
102
+     * Defini le message Ă  envoyer au format texte
103 103
      */
104 104
     public function text(string $content): self;
105 105
     
106 106
     /**
107
-	 * Ajoute l'adresse de destination (To) du mail
107
+     * Ajoute l'adresse de destination (To) du mail
108 108
      */
109 109
     public function to(array|string $address, bool|string $name = '', bool $set = false): self;
110 110
 }
Please login to merge, or discard this patch.
src/Mail/Adapters/SymfonyMailer.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     ];
19 19
 
20 20
     /**
21
-	 * @var Email
22
-	 */
21
+     * @var Email
22
+     */
23 23
     protected $mailer;
24 24
 
25 25
     private ?Mailer $transporter = null;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
 
149 149
     /**
150
-	 * {@inheritDoc}
150
+     * {@inheritDoc}
151 151
      */
152 152
     public function alt(string $content) : self
153 153
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     }
156 156
 
157 157
     /**
158
-	 * {@inheritDoc}
158
+     * {@inheritDoc}
159 159
      */
160 160
     public function attachment(array|string $path, string $name = '', string $encoding = '', string $disposition = 'attachment'): self
161 161
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     }
188 188
 
189 189
     /**
190
-	 * {@inheritDoc}
190
+     * {@inheritDoc}
191 191
      */
192 192
     public function cc(array|string $address, bool|string $name = '', bool $set = false): self
193 193
     {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     }
204 204
 
205 205
     /**
206
-	 * {@inheritDoc}
206
+     * {@inheritDoc}
207 207
      */
208 208
     public function from(string $address, string $name = ''): self
209 209
     {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     }
214 214
 
215 215
     /**
216
-	 * {@inheritDoc}
216
+     * {@inheritDoc}
217 217
      */
218 218
     public function header(array|string $name, ?string $value = null): self
219 219
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     }
240 240
     
241 241
     /**
242
-	 * {@inheritDoc}
242
+     * {@inheritDoc}
243 243
      */
244 244
     public function message(string $message): self
245 245
     {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     }
248 248
 
249 249
     /**
250
-	 * {@inheritDoc}
250
+     * {@inheritDoc}
251 251
      */
252 252
     public function replyTo(array|string $address, bool|string $name = '', bool $set = false): self
253 253
     {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     }
290 290
 
291 291
     /**
292
-	 * {@inheritDoc}
292
+     * {@inheritDoc}
293 293
      */
294 294
     public function subject(string $subject) : self
295 295
     {
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     }
310 310
 
311 311
     /**
312
-	 * {@inheritDoc}
312
+     * {@inheritDoc}
313 313
      */
314 314
     public function to(array|string $address, bool|string $name = '', bool $set = false): self
315 315
     {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     }
326 326
 
327 327
     /**
328
-	 * {@inheritDoc}
328
+     * {@inheritDoc}
329 329
      */
330 330
     public function lastId(): string
331 331
     {
Please login to merge, or discard this patch.
src/Mail/Adapters/PHPMailer.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
     ];
16 16
 
17 17
     /**
18
-	 * @var Mailer
19
-	 */
18
+     * @var Mailer
19
+     */
20 20
     protected $mailer;
21 21
 
22 22
     public function __construct(bool $debug = false)
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
 
148 148
     /**
149
-	 * {@inheritDoc}
149
+     * {@inheritDoc}
150 150
      */
151 151
     public function alt(string $content) : self
152 152
     {
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-	 * {@inheritDoc}
160
-	 *
159
+     * {@inheritDoc}
160
+     *
161 161
      * @throws \PHPMailer\PHPMailer\Exception
162 162
      */
163 163
     public function attachment(array|string $path, string $name = '', string $encoding = Mailer::ENCODING_BASE64, string $disposition = 'attachment'): self
@@ -194,8 +194,8 @@  discard block
 block discarded – undo
194 194
     }
195 195
 
196 196
     /**
197
-	 * {@inheritDoc}
198
-	 *
197
+     * {@inheritDoc}
198
+     *
199 199
      * @throws \PHPMailer\PHPMailer\Exception
200 200
      */
201 201
     public function cc(array|string $address, bool|string $name = '', bool $set = false): self
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
     }
215 215
 
216 216
     /**
217
-	 * {@inheritDoc}
218
-	 *
217
+     * {@inheritDoc}
218
+     *
219 219
      * @throws \PHPMailer\PHPMailer\Exception
220 220
      */
221 221
     public function from(string $address, string $name = '') : self
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
     }
227 227
 
228 228
     /**
229
-	 * {@inheritDoc}
230
-	 *
229
+     * {@inheritDoc}
230
+     *
231 231
      * @throws \PHPMailer\PHPMailer\Exception
232 232
      */
233 233
     public function header(array|string $name, ?string $value = null) : self
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     }
255 255
     
256 256
     /**
257
-	 * {@inheritDoc}
257
+     * {@inheritDoc}
258 258
      */
259 259
     public function lastId(): string
260 260
     {
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     }
263 263
     
264 264
     /**
265
-	 * {@inheritDoc}
265
+     * {@inheritDoc}
266 266
      */
267 267
     public function message(string $message): self
268 268
     {
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
     }
273 273
 
274 274
     /**
275
-	 * {@inheritDoc}
276
-	 *
275
+     * {@inheritDoc}
276
+     *
277 277
      * @throws \PHPMailer\PHPMailer\Exception
278 278
      */
279 279
     public function replyTo(array|string $address, bool|string $name = '', bool $set = false): self
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     }
310 310
 
311 311
     /**
312
-	 * {@inheritDoc}
312
+     * {@inheritDoc}
313 313
      */
314 314
     public function subject(string $subject): self
315 315
     {
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
     }
330 330
 
331 331
     /**
332
-	 * {@inheritDoc}
333
-	 *
332
+     * {@inheritDoc}
333
+     *
334 334
      * @throws \PHPMailer\PHPMailer\Exception
335 335
      */
336 336
     public function to(array|string $address, bool|string $name = '', bool $set = false): self
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         parent::__construct($debug);
25 25
 
26 26
         $this->mailer = new Mailer();
27
-        $this->mailer->SMTPAuth   = true;
27
+        $this->mailer->SMTPAuth = true;
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
src/Mail/Adapters/AbstractAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
             if (empty($dependency['class']) || empty($dependency['package'])) {
32 32
                 throw new InvalidArgumentException('Invalid dependencies property');
33 33
             }            
34
-            if (! is_string($dependency['class']) || ! is_string($dependency['package'])) {
34
+            if (!is_string($dependency['class']) || !is_string($dependency['package'])) {
35 35
                 throw new InvalidArgumentException('Invalid dependencies property');
36 36
             }
37 37
 
38
-            if (! class_exists($dependency['class'])) {
38
+            if (!class_exists($dependency['class'])) {
39 39
                 throw new RuntimeException(lang('Mail.dependancyNotFound', [$dependency['class'], static::class, $dependency['package']]));
40 40
             }
41 41
         }
Please login to merge, or discard this patch.
src/Mail/Mail.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-	 * {@inheritDoc}
126
+     * {@inheritDoc}
127 127
      */
128 128
     public function alt(string $content) : self
129 129
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 
135 135
     /**
136
-	 * {@inheritDoc}
136
+     * {@inheritDoc}
137 137
      */
138 138
     public function attachment(array|string $path, string $name = '', string $encoding = '', string $disposition = 'attachment'): self
139 139
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-	 * {@inheritDoc}
156
+     * {@inheritDoc}
157 157
      */
158 158
     public function cc(array|string $address, bool|string $name = '', bool $set = false): self
159 159
     {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     }
164 164
 
165 165
     /**
166
-	 * {@inheritDoc}
166
+     * {@inheritDoc}
167 167
      */
168 168
     public function from(string $address, string $name = ''): self
169 169
     {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-	 * {@inheritDoc}
176
+     * {@inheritDoc}
177 177
      */
178 178
     public function header(array|string $name, ?string $value = null): self
179 179
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     }
202 202
 
203 203
     /**
204
-	 * {@inheritDoc}
204
+     * {@inheritDoc}
205 205
      */
206 206
     public function message(string $message): self
207 207
     {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     }
214 214
 
215 215
     /**
216
-	 * {@inheritDoc}
216
+     * {@inheritDoc}
217 217
      */
218 218
     public function replyTo(array|string $address, bool|string $name = '', bool $set = false): self
219 219
     {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     }
242 242
 
243 243
     /**
244
-	 * {@inheritDoc}
244
+     * {@inheritDoc}
245 245
      */
246 246
     public function subject(string $subject) : self
247 247
     {
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     }
262 262
 
263 263
     /**
264
-	 * {@inheritDoc}
264
+     * {@inheritDoc}
265 265
      */
266 266
     public function to(array|string $address, bool|string $name = '', bool $set = false): self
267 267
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
      */
90 90
     protected function factory(): AbstractAdapter
91 91
     {
92
-        if (! empty($this->adapter)) {
92
+        if (!empty($this->adapter)) {
93 93
             return $this->adapter;
94 94
         }
95 95
 
96
-        $handler  = $this->config['handler'] ?? null;
96
+        $handler = $this->config['handler'] ?? null;
97 97
 
98 98
         if (empty($handler)) {
99 99
             throw new InvalidArgumentException(lang('Mail.undefinedHandler'));
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $handler = static::$validHandlers[$handler];
104 104
         }
105 105
 
106
-        if (! class_exists($handler)) {
106
+        if (!class_exists($handler)) {
107 107
             throw new InvalidArgumentException(lang('Mail.invalidHandler', [$handler]));
108 108
         }
109 109
         
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             $debug = on_dev();
113 113
         }
114 114
 
115
-        if (! is_subclass_of($handler, AbstractAdapter::class)) {
115
+        if (!is_subclass_of($handler, AbstractAdapter::class)) {
116 116
             throw new InvalidArgumentException(lang('Mail.handlerMustExtendClass', [$handler, AbstractAdapter::class]));
117 117
         }
118 118
         
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
         // N'est-il pas namespaced ? on cherche le dossier en fonction du parametre "view_base"
281 281
         if (strpos($view, '\\') === false) {
282 282
             $path = $this->config['view_base'] ?? '';
283
-            if (! empty($path)) {
283
+            if (!empty($path)) {
284 284
                 $path .= '/';
285 285
             }
286 286
         }
Please login to merge, or discard this patch.