| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | protected function obj2array ( &$_instance ) { |
||
| 32 | $clone = (array) $_instance; |
||
| 33 | $return = []; |
||
| 34 | $return['___SOURCE_KEYS_'] = $clone; |
||
| 35 | while ( list ($key, $value) = each ($clone) ) { |
||
| 36 | $temp = explode ("\0", $key); |
||
| 37 | $newkey = $temp[count($temp)-1]; |
||
| 38 | $return[$newkey] = &$return['___SOURCE_KEYS_'][$key]; |
||
| 39 | } |
||
| 40 | return $return; |
||
| 41 | } |
||
| 42 | protected function importObject( $_object ) { |
||
| 48 |
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.