@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | // install the preSetHook listener |
267 | 267 | // DEPRECATED: Use event listeners instead |
268 | 268 | if (method_exists($this, 'preSetHook')) { |
269 | - static::updating(function (ModelEvent $modelEvent) { |
|
269 | + static::updating(function(ModelEvent $modelEvent) { |
|
270 | 270 | $model = $modelEvent->getModel(); |
271 | 271 | if (!$model->preSetHook($model->_unsaved)) { |
272 | 272 | $modelEvent->stopPropagation(); |
@@ -315,13 +315,13 @@ discard block |
||
315 | 315 | { |
316 | 316 | static::$properties = array_replace(self::$timestampProperties, static::$properties); |
317 | 317 | |
318 | - self::creating(function (ModelEvent $event) { |
|
318 | + self::creating(function(ModelEvent $event) { |
|
319 | 319 | $model = $event->getModel(); |
320 | 320 | $model->created_at = time(); |
321 | 321 | $model->updated_at = time(); |
322 | 322 | }); |
323 | 323 | |
324 | - self::updating(function (ModelEvent $event) { |
|
324 | + self::updating(function(ModelEvent $event) { |
|
325 | 325 | $event->getModel()->updated_at = time(); |
326 | 326 | }); |
327 | 327 | } |