| Conditions | 3 |
| Paths | 3 |
| Total Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function addDatabaseItems(array &$params, $parent) |
||
|
|
|||
| 24 | { |
||
| 25 | $customItems = $this->getCustomItems(); |
||
| 26 | if (empty($customItems)) { |
||
| 27 | \array_unshift($params['items'], [ |
||
| 28 | '', |
||
| 29 | '', |
||
| 30 | ]); |
||
| 31 | |||
| 32 | return; |
||
| 33 | } |
||
| 34 | |||
| 35 | // Add element |
||
| 36 | foreach ($customItems as $item) { |
||
| 37 | \array_unshift($params['items'], [ |
||
| 38 | $item['dimension'] . ' / ' . $item['title'], |
||
| 39 | $item['identifier'], |
||
| 40 | ]); |
||
| 41 | } |
||
| 42 | \array_unshift($params['items'], [ |
||
| 43 | 'Custom', |
||
| 44 | '--div--', |
||
| 45 | ]); |
||
| 46 | \array_unshift($params['items'], [ |
||
| 47 | '', |
||
| 48 | '', |
||
| 49 | ]); |
||
| 50 | } |
||
| 51 | |||
| 62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.