Total Complexity | 10 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Warehouse extends \Migrations\Parser { |
||
15 | |||
16 | public function parse() { |
||
17 | if (is_array($this->data) && empty($this->data['@attributes'])) { |
||
18 | foreach ($this->data as $warehouseCount) { |
||
19 | $this->parseWarehouse($warehouseCount); |
||
20 | } |
||
21 | } elseif (is_array($this->data) && !empty($this->data['@attributes'])) { |
||
22 | $this->parseWarehouse($this->data); |
||
23 | } |
||
24 | } |
||
25 | |||
26 | function parseWarehouse($warehouseCount) { |
||
43 | } |
||
44 | } |
||
50 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.