@@ -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, |