@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | protected bool $is_cached; |
13 | 13 | |
14 | - private function __construct(protected int|bool $status, protected ?array $data) |
|
14 | + private function __construct(protected int | bool $status, protected ?array $data) |
|
15 | 15 | { |
16 | 16 | } |
17 | 17 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | public function __construct( |
28 | 28 | protected AbstractRepository $repository, |
29 | - protected CacheInterface|TagAwareCacheInterface $cache, |
|
29 | + protected CacheInterface | TagAwareCacheInterface $cache, |
|
30 | 30 | protected KeyGeneratorInterface $generator, |
31 | 31 | protected array $options = [ |
32 | 32 | ClientOptions::CLIENT_OPTION_REQUEST_HEADERS => [] |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function create(AbstractModel $model): ?AbstractModel |
73 | 73 | { |
74 | 74 | $model = $this->repository->create($model); |
75 | - if ($model?->isCacheable()) { |
|
75 | + if ($model ? ->isCacheable()) { |
|
76 | 76 | return $this->cacheModel($model); |
77 | 77 | } |
78 | 78 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | public function update(AbstractModel $model): ?AbstractModel |
89 | 89 | { |
90 | 90 | $model = $this->repository->update($model); |
91 | - if ($model?->isCacheable()) { |
|
91 | + if ($model ? ->isCacheable()) { |
|
92 | 92 | return $this->cacheModel($model); |
93 | 93 | } |
94 | 94 |