Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
76 | 8 | public function parseLiteral($valueNode, ?array $variables = null) |
|
77 | { |
||
78 | 8 | if ($valueNode instanceof StringValueNode || $valueNode instanceof IntValueNode) { |
|
79 | 4 | return $valueNode->value; |
|
80 | } |
||
81 | |||
82 | // Intentionally without message, as all information already in wrapped Exception |
||
83 | 4 | throw new Exception(); |
|
84 | } |
||
86 |