Passed
Pull Request — master (#458)
by
unknown
02:52
created
src/TokensList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * Gets the previous token. Skips any irrelevant token (whitespaces and
119 119
      * comments).
120 120
      */
121
-    public function getPrevious(): Token|null
121
+    public function getPrevious(): Token | null
122 122
     {
123 123
         for (; $this->idx >= 0; --$this->idx) {
124 124
             if (
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function getPreviousOfType($type)
143 143
     {
144
-        if (! is_array($type)) {
144
+        if (!is_array($type)) {
145 145
             $type = [$type];
146 146
         }
147 147
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function getNextOfType($type)
165 165
     {
166
-        if (! is_array($type)) {
166
+        if (!is_array($type)) {
167 167
             $type = [$type];
168 168
         }
169 169
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param int $type the type of the token
202 202
      * @param int $flag the flag of the token
203 203
      */
204
-    public function getNextOfTypeAndFlag(int $type, int $flag): Token|null
204
+    public function getNextOfTypeAndFlag(int $type, int $flag): Token | null
205 205
     {
206 206
         for (; $this->idx < $this->count; ++$this->idx) {
207 207
             if (($this->tokens[$this->idx]->type === $type) && ($this->tokens[$this->idx]->flags === $flag)) {
Please login to merge, or discard this patch.