Passed
Push — main ( ebfbeb...970435 )
by Dimitri
04:29
created
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.
src/Core/Application.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
             ->requireDirectory(APP_PATH, Checker::CHECK_IS_READABLE);
123 123
 
124 124
         $output = $checker->check();
125
-        if (! $checker->isSatisfied()) {
125
+        if (!$checker->isSatisfied()) {
126 126
             echo '<h3>An error encourred</h3>';
127 127
 
128 128
             exit(implode('<br/> ', $checker->getErrors()));
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
     public function run(bool $return_response = false)
82 82
     {
83
-		return Services::singleton(Dispatcher::class)->run(null, $return_response);
83
+        return Services::singleton(Dispatcher::class)->run(null, $return_response);
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
src/Debug/Toolbar/Collectors/BaseCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      */
109 109
     public function timelineData(): array
110 110
     {
111
-        if (! $this->hasTimeline) {
111
+        if (!$this->hasTimeline) {
112 112
             return [];
113 113
         }
114 114
 
Please login to merge, or discard this patch.
src/Debug/Toolbar/Collectors/LogsCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     protected function collectLogs()
79 79
     {
80
-        if (! empty($this->data)) {
80
+        if (!empty($this->data)) {
81 81
             return $this->data;
82 82
         }
83 83
 
Please login to merge, or discard this patch.
src/Debug/Toolbar/Collectors/EventsCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         foreach (EventManager::getPerformanceLogs() as $row) {
91 91
             $key = $row['event'];
92 92
 
93
-            if (! array_key_exists($key, $data['events'])) {
93
+            if (!array_key_exists($key, $data['events'])) {
94 94
                 $data['events'][$key] = [
95 95
                     'event'    => $key,
96 96
                     'duration' => number_format(($row['end'] - $row['start']) * 1000, 2),
Please login to merge, or discard this patch.