| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | View Code Duplication | private function getCartData($data) |
|
| 16 | { |
||
| 17 | $cart = substr($data, 0, strpos($data, ',')); |
||
| 18 | $cust = substr($data, strpos($data, ',') + 1); |
||
| 19 | |||
| 20 | Analog::log("Cart & customer variables: $data"); |
||
| 21 | $otherCarts = $this->processFindCarts($cart, $cust); |
||
| 22 | |||
| 23 | return $otherCarts; |
||
| 24 | } |
||
| 25 | |||
| 49 | } |
Overwriting private methods is generally fine as long as you also use private visibility. It might still be preferable for understandability to use a different method name.