@@ -160,7 +160,7 @@ |
||
160 | 160 | // cache the local properties |
161 | 161 | $item = $this->getCacheItem(); |
162 | 162 | $item->set($this->_values) |
163 | - ->expiresAfter($this->getCacheTTL()); |
|
163 | + ->expiresAfter($this->getCacheTTL()); |
|
164 | 164 | |
165 | 165 | self::$cachePool->save($item); |
166 | 166 |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | // check the if the requester has the `create` |
113 | 113 | // permission before creating |
114 | - static::creating(function (ModelEvent $event) { |
|
114 | + static::creating(function(ModelEvent $event) { |
|
115 | 115 | $model = $event->getModel(); |
116 | 116 | |
117 | 117 | $permission = self::PERMISSION_CREATE; |
@@ -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 | $permission = self::PERMISSION_UPDATE; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | // check the if the requester has the `delete` |
139 | 139 | // permission before deleting |
140 | - static::deleting(function (ModelEvent $event) { |
|
140 | + static::deleting(function(ModelEvent $event) { |
|
141 | 141 | $model = $event->getModel(); |
142 | 142 | |
143 | 143 | $permission = self::PERMISSION_DELETE; |
@@ -189,13 +189,13 @@ |
||
189 | 189 | static::$casts['updated_at'] = self::TYPE_DATE; |
190 | 190 | } |
191 | 191 | |
192 | - self::creating(function (ModelEvent $event) { |
|
192 | + self::creating(function(ModelEvent $event) { |
|
193 | 193 | $model = $event->getModel(); |
194 | 194 | $model->created_at = Carbon::now(); |
195 | 195 | $model->updated_at = Carbon::now(); |
196 | 196 | }); |
197 | 197 | |
198 | - self::updating(function (ModelEvent $event) { |
|
198 | + self::updating(function(ModelEvent $event) { |
|
199 | 199 | $event->getModel()->updated_at = Carbon::now(); |
200 | 200 | }); |
201 | 201 | } |