@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | return false; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - if ($create && $this->fireModelEvent('creating') === false) { |
|
| 131 | + if ($create && $this->fireModelEvent('creating') === false) { |
|
| 132 | 132 | return false; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | return false; |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | - if ($create && $this->fireModelEvent('creating') === false) { |
|
| 172 | + if ($create && $this->fireModelEvent('creating') === false) { |
|
| 173 | 173 | return false; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | |
| 184 | 184 | $savePromise = $this->newQuery()->saveAsync(); |
| 185 | 185 | |
| 186 | - $savePromise->then(function ($result) use ($create, $options) { |
|
| 186 | + $savePromise->then(function($result) use ($create, $options) { |
|
| 187 | 187 | if (array_get($result, '@metadata.statusCode') === 200) { |
| 188 | 188 | $this->exists = true; |
| 189 | 189 | $this->wasRecentlyCreated = $create; |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | |
| 254 | 254 | $deletePromise = $this->newQuery()->deleteAsync(); |
| 255 | 255 | |
| 256 | - $deletePromise->then(function () { |
|
| 256 | + $deletePromise->then(function() { |
|
| 257 | 257 | $this->fireModelEvent('deleted', false); |
| 258 | 258 | }); |
| 259 | 259 | |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | |
| 271 | 271 | public function refresh() |
| 272 | 272 | { |
| 273 | - if (! $this->exists) { |
|
| 273 | + if (!$this->exists) { |
|
| 274 | 274 | return $this; |
| 275 | 275 | } |
| 276 | 276 | |