Test Failed
Pull Request — main (#17)
by Dimitri
16:16 queued 22s
created
src/Debug/Toolbar/Collectors/EventsCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         foreach (EventManager::getPerformanceLogs() as $row) {
74 74
             $key = $row['event'];
75 75
 
76
-            if (! array_key_exists($key, $data['events'])) {
76
+            if (!array_key_exists($key, $data['events'])) {
77 77
                 $data['events'][$key] = [
78 78
                     'event'    => $key,
79 79
                     'duration' => ($row['end'] - $row['start']) * 1000,
Please login to merge, or discard this patch.
src/Cli/Commands/Housekeeping/ClearLogs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $force = array_key_exists('force', $params) || $this->option('force');
49 49
 
50
-        if (! $force && ! $this->confirm('Êtes-vous sûr de vouloir supprimer les logs?')) {
50
+        if (!$force && !$this->confirm('Êtes-vous sûr de vouloir supprimer les logs?')) {
51 51
             // @codeCoverageIgnoreStart
52 52
             $this->fail('Suppression des logs interrompue.');
53 53
             $this->fail('Si vous le souhaitez, utilisez l\'option "-force" pour forcer la suppression de tous les fichiers de log.');
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         helper('filesystem');
61 61
 
62
-        if (! delete_files(STORAGE_PATH . 'logs', false, true)) {
62
+        if (!delete_files(STORAGE_PATH . 'logs', false, true)) {
63 63
             // @codeCoverageIgnoreStart
64 64
             $this->error('Erreur lors de la suppression des fichiers de logs.')->eol();
65 65
 
Please login to merge, or discard this patch.
src/Cli/Commands/Housekeeping/ClearDebugbar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         helper('filesystem');
42 42
 
43
-        if (! delete_files(FRAMEWORK_STORAGE_PATH . 'debugbar')) {
43
+        if (!delete_files(FRAMEWORK_STORAGE_PATH . 'debugbar')) {
44 44
             // @codeCoverageIgnoreStart
45 45
             $this->error('Erreur lors de la suppression des fichiers de la debugbar.')->eol();
46 46
 
Please login to merge, or discard this patch.
src/Spec/CliOutputHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public static function setUpBeforeClass(): void
26 26
     {
27
-        if (! is_dir($dirname = pathinfo(static::$ou, PATHINFO_DIRNAME))) {
27
+        if (!is_dir($dirname = pathinfo(static::$ou, PATHINFO_DIRNAME))) {
28 28
             mkdir($dirname, 0o777, true);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Security/Encryption/Encryption.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             'Sodium' => extension_loaded('sodium') && version_compare(SODIUM_LIBRARY_VERSION, '1.0.14', '>='),
83 83
         ];
84 84
 
85
-        if (! in_array($this->driver, $this->drivers, true) || (array_key_exists($this->driver, $this->handlers) && ! $this->handlers[$this->driver])) {
85
+        if (!in_array($this->driver, $this->drivers, true) || (array_key_exists($this->driver, $this->handlers) && !$this->handlers[$this->driver])) {
86 86
             throw EncryptionException::noHandlerAvailable($this->driver);
87 87
         }
88 88
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             throw EncryptionException::noDriverRequested();
121 121
         }
122 122
 
123
-        if (! in_array($this->driver, $this->drivers, true)) {
123
+        if (!in_array($this->driver, $this->drivers, true)) {
124 124
             throw EncryptionException::unKnownHandler($this->driver);
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Security/Encryption/Handlers/OpenSSLHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         $data     = self::substr($data, $hmacLength);
126 126
         $hmacCalc = \hash_hmac($this->digest, $data, $authKey, $this->rawData);
127 127
 
128
-        if (! hash_equals($hmacKey, $hmacCalc)) {
128
+        if (!hash_equals($hmacKey, $hmacCalc)) {
129 129
             throw EncryptionException::authenticationFailed();
130 130
         }
131 131
 
Please login to merge, or discard this patch.
src/Cli/Commands/Generators/Views/middleware.tpl.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,10 +11,13 @@  discard block
 block discarded – undo
11 11
 use Psr\Http\Server\RequestHandlerInterface;
12 12
 
13 13
 class {class} extends BaseMiddleware implements MiddlewareInterface
14
-<?php else: ?>
14
+<?php else {
15
+    : ?>
15 16
 
16 17
 class {class} extends BaseMiddleware
17
-<?php endif; ?>
18
+<?php endif;
19
+}
20
+?>
18 21
 {
19 22
     /**
20 23
      * Traitez une demande de serveur entrante.
@@ -26,16 +29,22 @@  discard block
 block discarded – undo
26 29
      */
27 30
 <?php if ($standard === 'psr15'): ?>
28 31
     public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
29
-<?php else: ?>
32
+<?php else {
33
+    : ?>
30 34
     public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next): ResponseInterface
31
-<?php endif; ?>
35
+<?php endif;
36
+}
37
+?>
32 38
     {
33 39
         //
34 40
 
35 41
 <?php if ($standard === 'psr15'): ?>
36 42
         return $handler->handle($request);
37
-<?php else: ?>
43
+<?php else {
44
+    : ?>
38 45
         return $next($request, $response);
39
-<?php endif; ?>
46
+<?php endif;
47
+}
48
+?>
40 49
     }
41 50
 }
Please login to merge, or discard this patch.
src/Cli/Commands/Generators/Middleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     {
79 79
         $standard = $this->option('standard', 'psr15');
80 80
 
81
-        if (! in_array($standard, ['psr15', 'psr7'], true)) {
81
+        if (!in_array($standard, ['psr15', 'psr7'], true)) {
82 82
             // @codeCoverageIgnoreStart
83 83
             $standard = $this->choice(lang('CLI.generator.middlewareStandard'), ['psr15', 'psr7'], 'psr15');
84 84
             $this->eol();
Please login to merge, or discard this patch.
src/Cli/Commands/Generators/Views/controller.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 class {class} extends {extends}
8 8
 {
9
-<?php if (! empty($invokable)): ?>
9
+<?php if (!empty($invokable)): ?>
10 10
 	/**
11 11
 	 * Traitement
12 12
 	 *
Please login to merge, or discard this patch.