Completed
Push — master ( d56146...ac7961 )
by Jared
01:47
created
src/ACLModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         // check the if the requester has the `create`
111 111
         // permission before creating
112
-        static::creating(function (ModelEvent $event) {
112
+        static::creating(function(ModelEvent $event) {
113 113
             $model = $event->getModel();
114 114
 
115 115
             if (!$model->can('create', ACLModel::getRequester())) {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
         // check the if the requester has the `edit`
123 123
         // permission before updating
124
-        static::updating(function (ModelEvent $event) {
124
+        static::updating(function(ModelEvent $event) {
125 125
             $model = $event->getModel();
126 126
 
127 127
             if (!$model->can('edit', ACLModel::getRequester())) {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         // check the if the requester has the `delete`
135 135
         // permission before deleting
136
-        static::deleting(function (ModelEvent $event) {
136
+        static::deleting(function(ModelEvent $event) {
137 137
             $model = $event->getModel();
138 138
 
139 139
             if (!$model->can('delete', ACLModel::getRequester())) {
Please login to merge, or discard this patch.
src/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,13 +260,13 @@
 block discarded – undo
260 260
     {
261 261
         static::$properties = array_replace(self::$timestampProperties, static::$properties);
262 262
 
263
-        self::creating(function (ModelEvent $event) {
263
+        self::creating(function(ModelEvent $event) {
264 264
             $model = $event->getModel();
265 265
             $model->created_at = time();
266 266
             $model->updated_at = time();
267 267
         });
268 268
 
269
-        self::updating(function (ModelEvent $event) {
269
+        self::updating(function(ModelEvent $event) {
270 270
             $event->getModel()->updated_at = time();
271 271
         });
272 272
     }
Please login to merge, or discard this patch.