We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
43 | public function getObject(string $name, bool $compressed = false, bool $nullable = false) : mixed { |
||
44 | $object = $this->getField($name); |
||
45 | if ($nullable === true && $object === null) { |
||
46 | return null; |
||
47 | } |
||
48 | if ($compressed === true) { |
||
49 | $object = gzuncompress($object); |
||
|
|||
50 | } |
||
51 | return unserialize($object); |
||
52 | } |
||
59 |