aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerafim <nesk@xakep.ru>2017-10-27 11:58:36 +0300
committerSerafim <nesk@xakep.ru>2017-10-27 11:58:36 +0300
commitde036d5ccfbfaca21c350537d25d0a0f247930eb (patch)
treebb11035fc15930aee41d8c0e46464193599a954a
parent683ef45e443d851ae0243c21ca5987bc74657811 (diff)
downloadCompiler-de036d5ccfbfaca21c350537d25d0a0f247930eb.zip
Compiler-de036d5ccfbfaca21c350537d25d0a0f247930eb.tar.gz
Compiler-de036d5ccfbfaca21c350537d25d0a0f247930eb.tar.bz2
Avoid a double call of current()
-rw-r--r--Llk/Parser.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Llk/Parser.php b/Llk/Parser.php
index d827cbf..ec35d1d 100644
--- a/Llk/Parser.php
+++ b/Llk/Parser.php
@@ -324,8 +324,10 @@ class Parser
}
}
- $namespace = $this->_tokenSequence->current()['namespace'];
- $offset = $this->_tokenSequence->current()['offset'];
+ $current = $this->_tokenSequence->current();
+
+ $namespace = $current['namespace'];
+ $offset = $current['offset'];
$zzeRule = clone $zeRule;
$zzeRule->setValue($value);