| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 2 | public function getAllEquipmentNoCat($collection = false) |
|
| 17 | { |
||
| 18 | 2 | $sysList = SystemTypes::orderBy('cat_id', 'ASC')->orderBy('name', 'ASC')->get(); |
|
| 19 | 2 | Log::debug('Equipment list gathered without category list. Data Gathered - ', array($sysList)); |
|
| 20 | |||
| 21 | 2 | if($collection) |
|
| 22 | { |
||
| 23 | 2 | return new SystemTypesCollection($sysList); |
|
| 24 | } |
||
| 25 | |||
| 26 | return $sysList; |
||
| 27 | } |
||
| 38 |