| Total Complexity | 8 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | trait ManagesBricksAjax |
||
| 9 | { |
||
| 10 | protected function formatResults(array $items, bool $prefixTitle = true): array |
||
| 11 | { |
||
| 12 | $results = []; |
||
| 13 | foreach ($items as $id => $title) { |
||
| 14 | $display = $prefixTitle && is_numeric($id) |
||
| 15 | ? "$id: $title" |
||
| 16 | : $title; |
||
| 17 | $results["id::$id"] = $display; |
||
| 18 | } |
||
| 19 | return $results; |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function missingIds(array $results, array $required): array |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function verifyNonce(): void |
||
| 38 | } |
||
| 39 | } |
||
| 41 |