Completed
Push — master ( c0da4a...5fac92 )
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/Driver/DatabaseDriver.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Pulsar\Driver;
13 13
 
14 14
 use JAQB\ConnectionManager;
15
-use JAQB\Exception\JAQBException;
16 15
 use JAQB\QueryBuilder;
17 16
 use PDOException;
18 17
 use PDOStatement;
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
@@ -228,13 +228,13 @@
 block discarded – undo
228 228
     {
229 229
         static::$properties = array_replace(self::AUTO_TIMESTAMPS, static::$properties);
230 230
 
231
-        self::creating(function (ModelEvent $event) {
231
+        self::creating(function(ModelEvent $event) {
232 232
             $model = $event->getModel();
233 233
             $model->created_at = time();
234 234
             $model->updated_at = time();
235 235
         });
236 236
 
237
-        self::updating(function (ModelEvent $event) {
237
+        self::updating(function(ModelEvent $event) {
238 238
             $event->getModel()->updated_at = time();
239 239
         });
240 240
     }
Please login to merge, or discard this patch.