| Conditions | 6 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 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.