Completed
Push — master ( e311cb...18f318 )
by Jared
11:52
created
src/Query.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@
 block discarded – undo
487 487
 
488 488
         $in = $foreignKey.' IN ('.implode(',', $uniqueIds).')';
489 489
         $models = $modelClass::where($in)
490
-                             ->first(self::MAX_LIMIT);
490
+                                ->first(self::MAX_LIMIT);
491 491
 
492 492
         $result = [];
493 493
         foreach ($models as $model) {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     /**
130 130
      * Sets the sort pattern for the query.
131 131
      *
132
-     * @param array|string $sort
132
+     * @param string $sort
133 133
      *
134 134
      * @return $this
135 135
      */
Please login to merge, or discard this patch.
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/AbstractDriver.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -272,7 +272,6 @@  discard block
 block discarded – undo
272 272
     /**
273 273
      * Returns a prefixed where statement.
274 274
      *
275
-     * @param string $columns
276 275
      * @param string $tablename
277 276
      *
278 277
      * @return array
@@ -300,7 +299,6 @@  discard block
 block discarded – undo
300 299
     /**
301 300
      * Returns a prefixed sort statement.
302 301
      *
303
-     * @param string $columns
304 302
      * @param string $tablename
305 303
      *
306 304
      * @return array
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/Type.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
      *
119 119
      * @param mixed $value
120 120
      *
121
-     * @return object
121
+     * @return \stdClass
122 122
      */
123 123
     public static function to_object($value): \stdClass
124 124
     {
Please login to merge, or discard this patch.
src/Model.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,13 +205,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,6 @@
 block discarded – undo
177 177
     /**
178 178
      * Creates a new model object.
179 179
      *
180
-     * @param array|string|Model|false $id     ordered array of ids or comma-separated id string
181 180
      * @param array                    $values optional key-value map to pre-seed model
182 181
      */
183 182
     public function __construct(array $values = [])
Please login to merge, or discard this patch.
src/Relation/Pivot.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
      */
26 26
     private $tablename;
27 27
 
28
+    /**
29
+     * @param string $tablename
30
+     */
28 31
     public function setTablename($tablename)
29 32
     {
30 33
         $this->tablename = $tablename;
Please login to merge, or discard this patch.