Conditions | 5 |
Paths | 9 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
48 | protected static function resolveUserValue($operator, &$value) |
||
49 | { |
||
50 | if (false === QueryHelper::findParamValue($value, $operator)) { |
||
51 | if (is_string($value)) { |
||
52 | $value = self::resolveUserStringValue($value); |
||
53 | } |
||
54 | |||
55 | if ($value instanceof UserElement) { |
||
56 | $value = $value->id; |
||
57 | } |
||
58 | |||
59 | if ($value) { |
||
60 | $value = QueryHelper::assembleParamValue($value, $operator); |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 | |||
77 |