Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public static function format($preference, $restrictions) |
||
8 | { |
||
9 | foreach ($restrictions as $restrictionType => $query) { |
||
10 | if (!in_array($restrictionType, ['And', 'Not', 'Or'])) { |
||
11 | $restrictions[$restrictionType] = self::formatExpression($preference, $query); |
||
12 | } else { |
||
13 | $restrictions[$restrictionType] = self::format($preference, $query); |
||
14 | } |
||
15 | } |
||
16 | |||
17 | return $restrictions; |
||
18 | } |
||
19 | |||
48 |