Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.009 |
Changes | 0 |
1 | <?php |
||
40 | 117 | public function push($type, $value, $reference = null) |
|
41 | { |
||
42 | 117 | $this->stack[$this->count++] = [ |
|
43 | 117 | 'type' => $type, |
|
44 | 117 | 'value' => $value, |
|
45 | 117 | 'reference' => $reference, |
|
46 | ]; |
||
47 | 117 | if ($type == 'Function') { |
|
48 | 45 | $localeFunction = Calculation::localeFunc($value); |
|
49 | 45 | if ($localeFunction != $value) { |
|
50 | $this->stack[($this->count - 1)]['localeValue'] = $localeFunction; |
||
51 | } |
||
52 | } |
||
53 | 117 | } |
|
54 | |||
94 |