| Conditions | 5 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | private function json_unwrap( &$any ) { |
||
| 50 | if ( is_array( $any ) ) { |
||
| 51 | foreach ( $any as $k => $v ) { |
||
| 52 | if ( '__o' === $k ) { |
||
| 53 | continue; |
||
| 54 | } |
||
| 55 | $any[ $k ] = $this->json_unwrap( $v ); |
||
| 56 | } |
||
| 57 | |||
| 58 | if ( isset( $any['__o'] ) ) { |
||
| 59 | unset( $any['__o'] ); |
||
| 60 | $any = (object) $any; |
||
| 61 | } |
||
| 62 | } |
||
| 63 | |||
| 64 | return $any; |
||
| 65 | } |
||
| 66 | } |