Completed
Push — work-fleets ( 96df87...6cc592 )
by SuperNova.WS
06:02
created

V2UnitList::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 17
ccs 0
cts 2
cp 0
crap 2
rs 9.4285
1
<?php
2
3
namespace V2Unit;
4
5
class V2UnitList extends \SplObjectStorage {
6
7
  public function load($location) {
0 ignored issues
show
Unused Code introduced by
The parameter $location is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
8
    /**
9
     *
10
     *
11
12
13
     foreach(unitsInLocation($location) as $unit_row) {
14
       $unit_obj = new V2Unit()->load($unit_row);
15
        $this->attach($unit_obj, $unit_obj->dbId);
16
     }
17
18
19
20
21
     *
22
     */
23
  }
24
25
}
26