Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function get($model, $key, $value, $attributes) |
||
19 | { |
||
20 | if (is_null($value)) { |
||
21 | return null; |
||
22 | } |
||
23 | |||
24 | $decoded = parent::get($model, $key, $value, $attributes); |
||
25 | |||
26 | // The encrypter should already json-decode this, but we’ll handle it too just in case. |
||
27 | if (is_string($decoded)) { |
||
28 | $decoded = json_decode($decoded, false); |
||
29 | } |
||
30 | |||
31 | return $decoded; |
||
32 | } |
||
33 | |||
58 |