@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function create(AbstractModel $model): ?AbstractModel |
69 | 69 | { |
70 | 70 | $model = $this->repository->create($model); |
71 | - if ($model?->isCacheable()) { |
|
71 | + if ($model ? ->isCacheable()) { |
|
72 | 72 | return $this->cacheModel($model); |
73 | 73 | } |
74 | 74 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function update(AbstractModel $model): ?AbstractModel |
85 | 85 | { |
86 | 86 | $model = $this->repository->update($model); |
87 | - if ($model?->isCacheable()) { |
|
87 | + if ($model ? ->isCacheable()) { |
|
88 | 88 | return $this->cacheModel($model); |
89 | 89 | } |
90 | 90 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | return $ret; |
34 | 34 | } |
35 | 35 | |
36 | - public function getStatus(): int|bool |
|
36 | + public function getStatus(): int | bool |
|
37 | 37 | { |
38 | 38 | return $this->status; |
39 | 39 | } |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | public static function extractPrefix(string $method): string |
175 | 175 | { |
176 | - preg_match('/[A-Z]/', $method, $matches, PREG_OFFSET_CAPTURE ); |
|
176 | + preg_match('/[A-Z]/', $method, $matches, PREG_OFFSET_CAPTURE); |
|
177 | 177 | return substr($method, 0, $matches[0][1]); |
178 | 178 | } |
179 | 179 |