Conditions | 4 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function parse() { |
||
17 | if (!\Tools::isAssoc($this->data['Остаток'])) { |
||
18 | foreach ($this->data['Остаток'] as $warehouseCount) { |
||
19 | $this->parseWarehouse($warehouseCount['Склад']); |
||
20 | } |
||
21 | } elseif (is_array($this->data['Остаток'])) { |
||
22 | $this->parseWarehouse($this->data['Остаток']['Склад']); |
||
23 | } |
||
24 | } |
||
25 | |||
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.