Conditions | 2 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
29 | public function findQuotes(SessionParameters $parameters, $newSession) |
||
30 | { |
||
31 | try { |
||
32 | $contents = file_get_contents($this->resourcesDir . '/' . static::RESPONSE_FILE); |
||
33 | |||
34 | $arrayContent = \GuzzleHttp\json_decode( |
||
35 | str_replace("'", '\'', $contents), |
||
36 | true |
||
37 | ); |
||
38 | |||
39 | return (object) $arrayContent; |
||
40 | } catch (\Exception $e) { |
||
41 | // do nothing |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |