Conditions | 3 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
40 | public function setUp(ExpressionLanguage $el, string &$expression, array &$values) |
||
41 | { |
||
42 | if ($this->client->getVariables() && preg_match('/variables\./', $expression)) { |
||
43 | //encode and decode to allow access using "variables.name" instead of "variables[name]" |
||
44 | $values['variables'] = json_decode(json_encode($this->client->getVariables())); |
||
45 | } |
||
47 | } |