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