Completed
Push — master ( dd27be...6d56bb )
by Jared
01:29
created
src/ACLModel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())) {
Please login to merge, or discard this patch.
src/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.