Passed
Pull Request — main (#4)
by
unknown
13:07 queued 09:55
created
src/View/Adapters/LatteAdapter.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
         $auto_refresh = $this->config['auto_refresh'] ?? 'auto';
71 71
         if ($auto_refresh === 'auto') {
72
-            $auto_refresh = ! is_online();
72
+            $auto_refresh = !is_online();
73 73
         }
74 74
         $this->latte->setAutoRefresh($auto_refresh);
75 75
 
Please login to merge, or discard this patch.
src/View/View.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,10 +175,10 @@
 block discarded – undo
175 175
      */
176 176
     public function setAdapter(string $adapter, array $config = []): self
177 177
     {
178
-        if (! array_key_exists($adapter, self::$validAdapters)) {
178
+        if (!array_key_exists($adapter, self::$validAdapters)) {
179 179
             $adapter = 'native';
180 180
         }
181
-        if (empty($this->config['adapters']) || ! is_array($this->config['adapters'])) {
181
+        if (empty($this->config['adapters']) || !is_array($this->config['adapters'])) {
182 182
             $this->config['adapters'] = [];
183 183
         }
184 184
 
Please login to merge, or discard this patch.
src/Event/EventManager.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function __construct(array $events = [])
48 48
     {
49 49
         $this->events = $events;
50
-        if (! array_key_exists(self::WILDCARD, $this->events)) {
50
+        if (!array_key_exists(self::WILDCARD, $this->events)) {
51 51
             $this->events[self::WILDCARD] = [];
52 52
         }
53 53
     }
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function attach(string $event, callable $callback, int $priority = 0): bool
67 67
     {
68
-        if (! array_key_exists($event, $this->events)) {
68
+        if (!array_key_exists($event, $this->events)) {
69 69
             $this->events[$event] = [];
70 70
         }
71
-        if (! array_key_exists($priority, $this->events[$event])) {
71
+        if (!array_key_exists($priority, $this->events[$event])) {
72 72
             $this->events[$event][$priority] = [];
73 73
         }
74 74
 
75
-        if (! in_array($callback, $this->events[$event][$priority], true)) {
75
+        if (!in_array($callback, $this->events[$event][$priority], true)) {
76 76
             $this->events[$event][$priority][] = $callback;
77 77
 
78 78
             return true;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function detach(string $event, callable $callback): bool
96 96
     {
97
-        if (! array_key_exists($event, $this->events) || ! $this->events[$event]) {
97
+        if (!array_key_exists($event, $this->events) || !$this->events[$event]) {
98 98
             return false;
99 99
         }
100 100
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function trigger($event, $target = null, $argv = [])
117 117
     {
118
-        if (! ($event instanceof EventInterface)) {
118
+        if (!($event instanceof EventInterface)) {
119 119
             $event = new Event($event, $target, $argv);
120 120
         } else {
121 121
             if ($target) {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
 
129 129
         $eventName = $event->getName();
130
-        if (! array_key_exists($eventName, $this->events)) {
130
+        if (!array_key_exists($eventName, $this->events)) {
131 131
             $this->events[$eventName] = [];
132 132
         }
133 133
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $result = null;
136 136
 
137 137
         foreach ($events as $priority) {
138
-            if (! is_array($priority)) {
138
+            if (!is_array($priority)) {
139 139
                 continue;
140 140
             }
141 141
 
Please login to merge, or discard this patch.
src/Formatter/Formatter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,19 +53,19 @@
 block discarded – undo
53 53
      */
54 54
     public static function type(string $mime): FormatterInterface
55 55
     {
56
-        if (! array_key_exists($mime, self::$formatters)) {
56
+        if (!array_key_exists($mime, self::$formatters)) {
57 57
             throw FormatException::invalidMime($mime);
58 58
         }
59 59
 
60 60
         $className = self::$formatters[$mime];
61 61
 
62
-        if (! class_exists($className)) {
62
+        if (!class_exists($className)) {
63 63
             throw FormatException::invalidFormatter($className);
64 64
         }
65 65
 
66 66
         $class = new $className();
67 67
 
68
-        if (! $class instanceof FormatterInterface) {
68
+        if (!$class instanceof FormatterInterface) {
69 69
             throw FormatException::invalidFormatter($className);
70 70
         }
71 71
 
Please login to merge, or discard this patch.
src/Formatter/XmlFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         }
44 44
 
45 45
         // Forcez-le à être quelque chose d'utile
46
-        if (! is_array($data) && ! is_object($data)) {
46
+        if (!is_array($data) && !is_object($data)) {
47 47
             $data = (array) $data;
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Formatter/CsvFormatter.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
             return null;
48 48
         }
49 49
 
50
-        if (! is_array($data)) {
50
+        if (!is_array($data)) {
51 51
             $data = (array) $data;
52 52
         }
53 53
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         foreach ($data as $record) {
66 66
             // Si l'enregistrement n'est pas un tableau, alors break.
67 67
             // C'est parce que le 2ème paramètre de fputcsv() doit être un tableau
68
-            if (! is_array($record)) {
68
+            if (!is_array($record)) {
69 69
                 break;
70 70
             }
71 71
 
Please login to merge, or discard this patch.
src/Formatter/JsonFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $callback = Services::request()->getQuery('callback');
33 33
 
34 34
         if (empty($callback)) {
35
-            return json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
35
+            return json_encode($data, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
36 36
         }
37 37
 
38 38
         // Nous n'honorons qu'un rappel jsonp qui sont des identifiants javascript valides
Please login to merge, or discard this patch.
src/Formatter/ArrayFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function format($data)
27 27
     {
28
-        if (! is_array($data)) {
28
+        if (!is_array($data)) {
29 29
             $data = (array) $data;
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Core/App.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
         }
71 71
 
72
-        if ($plugin || ! static::_classExistsInBase($fullname, 'BlitzPHP')) {
72
+        if ($plugin || !static::_classExistsInBase($fullname, 'BlitzPHP')) {
73 73
             return null;
74 74
         }
75 75
 
Please login to merge, or discard this patch.