@@ -113,7 +113,7 @@ |
||
| 113 | 113 | * |
| 114 | 114 | * @return TaggedCache |
| 115 | 115 | */ |
| 116 | - public function getTaggedStore(?array $tags = null): TaggedCache |
|
| 116 | + public function getTaggedStore(? array $tags = null) : TaggedCache |
|
| 117 | 117 | { |
| 118 | 118 | if ($tags !== null) { |
| 119 | 119 | return $this->store->tags($tags); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function register() |
| 33 | 33 | { |
| 34 | - $this->app->singleton('codefocus.managedcache', function () { |
|
| 34 | + $this->app->singleton('codefocus.managedcache', function() { |
|
| 35 | 35 | return $this->managedcache; |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * |
| 132 | 132 | * @return Condition |
| 133 | 133 | */ |
| 134 | - public function relationAttached($model, ?int $modelId = null, $relatedModel = null, ?int $relatedModelId = null): Condition |
|
| 134 | + public function relationAttached($model, ?int $modelId = null, $relatedModel = null, ?int $relatedModelId = null) : Condition |
|
| 135 | 135 | { |
| 136 | 136 | if ($this->isModel($model)) { |
| 137 | 137 | $modelClassName = get_class($model); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * |
| 167 | 167 | * @return Condition |
| 168 | 168 | */ |
| 169 | - public function relationDetached($model, ?int $modelId = null, $relatedModel = null, ?int $relatedModelId = null): Condition |
|
| 169 | + public function relationDetached($model, ?int $modelId = null, $relatedModel = null, ?int $relatedModelId = null) : Condition |
|
| 170 | 170 | { |
| 171 | 171 | if ($this->isModel($model)) { |
| 172 | 172 | $modelClassName = get_class($model); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * |
| 202 | 202 | * @return Condition |
| 203 | 203 | */ |
| 204 | - public function relationUpdated($model, ?int $modelId = null, $relatedModel = null, ?int $relatedModelId = null): Condition |
|
| 204 | + public function relationUpdated($model, ?int $modelId = null, $relatedModel = null, ?int $relatedModelId = null) : Condition |
|
| 205 | 205 | { |
| 206 | 206 | if ($this->isModel($model)) { |
| 207 | 207 | $modelClassName = get_class($model); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @return self |
| 44 | 44 | */ |
| 45 | - public function modelUpdated($model, ?int $modelId = null): self |
|
| 45 | + public function modelUpdated($model, ?int $modelId = null) : self |
|
| 46 | 46 | { |
| 47 | 47 | if ($this->isModel($model)) { |
| 48 | 48 | $modelClassName = get_class($model); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return self |
| 70 | 70 | */ |
| 71 | - public function modelSaved($model, ?int $modelId = null): self |
|
| 71 | + public function modelSaved($model, ?int $modelId = null) : self |
|
| 72 | 72 | { |
| 73 | 73 | if ($this->isModel($model)) { |
| 74 | 74 | $modelClassName = get_class($model); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @return self |
| 96 | 96 | */ |
| 97 | - public function modelDeleted($model, ?int $modelId = null): self |
|
| 97 | + public function modelDeleted($model, ?int $modelId = null) : self |
|
| 98 | 98 | { |
| 99 | 99 | if ($this->isModel($model)) { |
| 100 | 100 | $modelClassName = get_class($model); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * |
| 121 | 121 | * @return self |
| 122 | 122 | */ |
| 123 | - public function modelRestored($model, ?int $modelId = null): self |
|
| 123 | + public function modelRestored($model, ?int $modelId = null) : self |
|
| 124 | 124 | { |
| 125 | 125 | if ($this->isModel($model)) { |
| 126 | 126 | $modelClassName = get_class($model); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | ?int $modelId = null, |
| 154 | 154 | ?string $relatedModelClassName = null, |
| 155 | 155 | ?int $relatedModelId = null |
| 156 | - ): self { |
|
| 156 | + ) : self { |
|
| 157 | 157 | $this->conditions[] = new Condition( |
| 158 | 158 | $eventName, |
| 159 | 159 | $modelClassName, |