@@ -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 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | return false; |
164 | 164 | } |
165 | 165 | |
166 | - if ($create && $this->fireModelEvent('creating') === false) { |
|
166 | + if ($create && $this->fireModelEvent('creating') === false) { |
|
167 | 167 | return false; |
168 | 168 | } |
169 | 169 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | $savePromise = $this->newQuery()->saveAsync(); |
179 | 179 | |
180 | - $savePromise->then(function ($result) use ($create, $options) { |
|
180 | + $savePromise->then(function($result) use ($create, $options) { |
|
181 | 181 | if (array_get($result, '@metadata.statusCode') === 200) { |
182 | 182 | $this->exists = true; |
183 | 183 | $this->wasRecentlyCreated = $create; |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | |
237 | 237 | public function refresh() |
238 | 238 | { |
239 | - if (! $this->exists) { |
|
239 | + if (!$this->exists) { |
|
240 | 240 | return $this; |
241 | 241 | } |
242 | 242 |