| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | private static function formatFieldURI($preference, $expression) |
||
| 32 | { |
||
| 33 | $formattedRestrictionType = []; |
||
| 34 | |||
| 35 | foreach ($expression as $key => $value) { |
||
| 36 | if ($value === false) { |
||
| 37 | $value = 'false'; |
||
| 38 | } |
||
| 39 | $formattedRestrictionType[] = array( |
||
| 40 | 'FieldURI' => array('FieldURI' => API\FieldURIManager::getFieldUriByName($key, $preference)), |
||
| 41 | 'FieldURIOrConstant' => array('Constant' => array('Value' => (string)$value)) |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 45 | return $formattedRestrictionType; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |