| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 74 | private function getDecodedJson() |
||
| 75 | { |
||
| 76 | if (!is_null($this->decoded)) { |
||
| 77 | return $this->decoded; |
||
| 78 | } |
||
| 79 | |||
| 80 | try { |
||
| 81 | return $this->decoded = \GuzzleHttp\json_decode( |
||
| 82 | (string) $this->getHttpResponse()->getBody(), |
||
| 83 | true |
||
| 84 | ); |
||
| 85 | } catch (\InvalidArgumentException $e) { |
||
| 86 | return $this->decoded = array(); |
||
| 87 | } |
||
| 90 |