Browse Source

Avoid a double call of current()

pull/76/head
Serafim 1 year ago
parent
commit
de036d5ccf
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Llk/Parser.php

+ 4
- 2
Llk/Parser.php View File

@@ -324,8 +324,10 @@ class Parser
324 324
                 }
325 325
             }
326 326
 
327
-            $namespace = $this->_tokenSequence->current()['namespace'];
328
-            $offset = $this->_tokenSequence->current()['offset'];
327
+            $current = $this->_tokenSequence->current();
328
+
329
+            $namespace = $current['namespace'];
330
+            $offset = $current['offset'];
329 331
 
330 332
             $zzeRule   = clone $zeRule;
331 333
             $zzeRule->setValue($value);

Loading…
Cancel
Save