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 |
||
15 | 2 | public function getAllEquipmentNoCat($collection = false) |
|
16 | { |
||
17 | 2 | $sysList = SystemTypes::orderBy('cat_id', 'ASC')->orderBy('name', 'ASC')->get(); |
|
18 | 2 | Log::debug('Equipment list gathered without category list. Data Gathered - ', array($sysList)); |
|
19 | |||
20 | 2 | if($collection) |
|
21 | { |
||
22 | 2 | return new SystemTypesCollection($sysList); |
|
23 | } |
||
24 | |||
25 | return $sysList; |
||
26 | } |
||
28 |