@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | // check the if the requester has the `create` |
114 | 114 | // permission before creating |
115 | - static::creating(function (ModelEvent $event) { |
|
115 | + static::creating(function(ModelEvent $event) { |
|
116 | 116 | $model = $event->getModel(); |
117 | 117 | |
118 | 118 | if (!$model->can('create', ACLModelRequester::get())) { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | // check the if the requester has the `edit` |
126 | 126 | // permission before updating |
127 | - static::updating(function (ModelEvent $event) { |
|
127 | + static::updating(function(ModelEvent $event) { |
|
128 | 128 | $model = $event->getModel(); |
129 | 129 | |
130 | 130 | if (!$model->can('edit', ACLModelRequester::get())) { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | // check the if the requester has the `delete` |
138 | 138 | // permission before deleting |
139 | - static::deleting(function (ModelEvent $event) { |
|
139 | + static::deleting(function(ModelEvent $event) { |
|
140 | 140 | $model = $event->getModel(); |
141 | 141 | |
142 | 142 | if (!$model->can('delete', ACLModelRequester::get())) { |
@@ -205,13 +205,13 @@ |
||
205 | 205 | protected function initialize() |
206 | 206 | { |
207 | 207 | if (property_exists(static::class, 'autoTimestamps')) { |
208 | - self::creating(function (ModelEvent $event) { |
|
208 | + self::creating(function(ModelEvent $event) { |
|
209 | 209 | $model = $event->getModel(); |
210 | 210 | $model->created_at = time(); |
211 | 211 | $model->updated_at = time(); |
212 | 212 | }); |
213 | 213 | |
214 | - self::updating(function (ModelEvent $event) { |
|
214 | + self::updating(function(ModelEvent $event) { |
|
215 | 215 | $event->getModel()->updated_at = time(); |
216 | 216 | }); |
217 | 217 | } |