| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 70 | public function toArray() |
||
| 71 | { |
||
| 72 | $result = array(); |
||
| 73 | foreach ($this as $key => $data) |
||
| 74 | { |
||
| 75 | if ($data === null) { |
||
| 76 | continue; |
||
| 77 | } |
||
| 78 | elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
||
| 79 | $result[$key] = $data; |
||
| 80 | } |
||
| 81 | } |
||
| 82 | |||
| 83 | ksort($result); |
||
| 84 | |||
| 85 | return $result; |
||
| 86 | } |
||
| 87 | } |
||
| 88 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.