Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
41 | private function prepareSearch(string $soql): string |
||
42 | { |
||
43 | if (false === (preg_match_all( |
||
44 | '/' . self::VARIABLE_OPENING . '(.*?)' . self::VARIABLE_CLOSING . '/', |
||
45 | $soql, |
||
46 | $matches |
||
47 | ))) { |
||
48 | return $soql; |
||
49 | } |
||
50 | |||
51 | $replace = $this->getReplacingAttributes($matches[1]); |
||
52 | |||
53 | return str_ireplace(array_keys($replace), array_values($replace), $soql); |
||
54 | } |
||
55 | |||
74 |