Completed
Push — master ( 64090c...a7a57c )
by William
18s queued 15s
created
src/Utils/CLI.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         foreach ($longopts as $value) {
41 41
             $value = rtrim($value, ':');
42
-            if (! isset($params[$value])) {
42
+            if (!isset($params[$value])) {
43 43
                 continue;
44 44
             }
45 45
 
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
         }
85 85
 
86 86
         $this->mergeLongOpts($params, $longopts);
87
-        if (! isset($params['f'])) {
87
+        if (!isset($params['f'])) {
88 88
             $params['f'] = 'cli';
89 89
         }
90 90
 
91
-        if (! in_array($params['f'], ['html', 'cli', 'text'])) {
91
+        if (!in_array($params['f'], ['html', 'cli', 'text'])) {
92 92
             echo "ERROR: Invalid value for format!\n";
93 93
 
94 94
             return false;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             return 0;
114 114
         }
115 115
 
116
-        if (! isset($params['q'])) {
116
+        if (!isset($params['q'])) {
117 117
             $stdIn = $this->readStdin();
118 118
 
119 119
             if ($stdIn) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             Context::load($params['c']);
188 188
         }
189 189
 
190
-        if (! isset($params['q'])) {
190
+        if (!isset($params['q'])) {
191 191
             $stdIn = $this->readStdin();
192 192
 
193 193
             if ($stdIn) {
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             return 0;
262 262
         }
263 263
 
264
-        if (! isset($params['q'])) {
264
+        if (!isset($params['q'])) {
265 265
             $stdIn = $this->readStdin();
266 266
 
267 267
             if ($stdIn) {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         return 1;
298 298
     }
299 299
 
300
-    public function readStdin(): string|false|null
300
+    public function readStdin(): string | false | null
301 301
     {
302 302
         $read = [STDIN];
303 303
         $write = [];
Please login to merge, or discard this patch.
src/Utils/Tokens.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         // Flags.
50
-        return ! isset($pattern['flags'])
51
-            || (! (($pattern['flags'] & $token->flags) === 0));
50
+        return !isset($pattern['flags'])
51
+            || (!(($pattern['flags'] & $token->flags) === 0));
52 52
     }
53 53
 
54 54
     /**
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
      * @param Token[] $replace
57 57
      */
58 58
     public static function replaceTokens(
59
-        TokensList|string|UtfString $list,
59
+        TokensList | string | UtfString $list,
60 60
         array $find,
61 61
         array $replace
62
-    ): TokensList|string {
62
+    ): TokensList | string {
63 63
         /**
64 64
          * Whether the first parameter is a list.
65 65
          */
66 66
         $isList = $list instanceof TokensList;
67 67
 
68 68
         // Parsing the tokens.
69
-        if (! $isList) {
69
+        if (!$isList) {
70 70
             $list = Lexer::getTokens($list);
71 71
         }
72 72
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     ++$j;
125 125
                 }
126 126
 
127
-                if (! static::match($list->tokens[$j], $find[$k])) {
127
+                if (!static::match($list->tokens[$j], $find[$k])) {
128 128
                     // This token does not match the pattern.
129 129
                     break;
130 130
                 }
Please login to merge, or discard this patch.