| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.2109 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 2 | public function getEquipmentArray() |
|
| 29 | { |
||
| 30 | 2 | $list = SystemTypes::orderBy('cat_id', 'ASC')->orderBy('name', 'ASC')->get(); |
|
| 31 | |||
| 32 | 2 | $newList = []; |
|
| 33 | 2 | foreach($list as $item) |
|
| 34 | { |
||
| 35 | $newList[] = [ |
||
| 36 | 'value' => $item->sys_id, |
||
| 37 | 'text' => $item->name, |
||
| 38 | ]; |
||
| 39 | } |
||
| 40 | |||
| 41 | 2 | return $newList; |
|
| 42 | } |
||
| 56 |