@@ -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); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * |
28 | 28 | * @return array |
29 | 29 | */ |
30 | - protected function getModelClassNameAndId($model, ?int $modelId = null): array |
|
30 | + protected function getModelClassNameAndId($model, ?int $modelId = null) : array |
|
31 | 31 | { |
32 | 32 | if ($this->isModel($model)) { |
33 | 33 | return [ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @return self |
47 | 47 | */ |
48 | - public function modelUpdated($model, ?int $modelId = null): self |
|
48 | + public function modelUpdated($model, ?int $modelId = null) : self |
|
49 | 49 | { |
50 | 50 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
51 | 51 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @return self |
68 | 68 | */ |
69 | - public function modelSaved($model, ?int $modelId = null): self |
|
69 | + public function modelSaved($model, ?int $modelId = null) : self |
|
70 | 70 | { |
71 | 71 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
72 | 72 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @return self |
89 | 89 | */ |
90 | - public function modelDeleted($model, ?int $modelId = null): self |
|
90 | + public function modelDeleted($model, ?int $modelId = null) : self |
|
91 | 91 | { |
92 | 92 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
93 | 93 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @return self |
110 | 110 | */ |
111 | - public function modelRestored($model, ?int $modelId = null): self |
|
111 | + public function modelRestored($model, ?int $modelId = null) : self |
|
112 | 112 | { |
113 | 113 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
114 | 114 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | ?int $modelId = null, |
136 | 136 | $relatedModel, |
137 | 137 | ?int $relatedModelId = null |
138 | - ): self { |
|
138 | + ) : self { |
|
139 | 139 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
140 | 140 | list($relatedModelClassName, $relatedModelId) = $this->getModelClassNameAndId($relatedModel, $relatedModelId); |
141 | 141 | $this->conditions[] = new Condition( |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | ?int $modelId = null, |
166 | 166 | $relatedModel, |
167 | 167 | ?int $relatedModelId = null |
168 | - ): self { |
|
168 | + ) : self { |
|
169 | 169 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
170 | 170 | list($relatedModelClassName, $relatedModelId) = $this->getModelClassNameAndId($relatedModel, $relatedModelId); |
171 | 171 | $this->conditions[] = new Condition( |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | ?int $modelId = null, |
196 | 196 | $relatedModel, |
197 | 197 | ?int $relatedModelId = null |
198 | - ): self { |
|
198 | + ) : self { |
|
199 | 199 | list($modelClassName, $modelId) = $this->getModelClassNameAndId($model, $modelId); |
200 | 200 | list($relatedModelClassName, $relatedModelId) = $this->getModelClassNameAndId($relatedModel, $relatedModelId); |
201 | 201 | $this->conditions[] = new Condition( |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | ?int $modelId = null, |
227 | 227 | ?string $relatedModelClassName = null, |
228 | 228 | ?int $relatedModelId = null |
229 | - ): self { |
|
229 | + ) : self { |
|
230 | 230 | $this->conditions[] = new Condition( |
231 | 231 | $eventName, |
232 | 232 | $modelClassName, |
@@ -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 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ?int $modelId = null, |
39 | 39 | ?string $relatedModelName = null, |
40 | 40 | ?int $relatedModelId = null |
41 | - ) { |
|
41 | + ){ |
|
42 | 42 | $this->eventName = $eventName; |
43 | 43 | $this->modelName = $modelName; |
44 | 44 | $this->modelId = $modelId; |