Completed
Push — master ( f35fe5...96816f )
by Jared
03:05 queued 44s
created
src/Validate.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,6 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * Validates an e-mail address.
144 144
      *
145
-     * @param string $email      e-mail address
146 145
      * @param array  $parameters parameters for validation
147 146
      *
148 147
      * @return bool success
@@ -174,7 +173,7 @@  discard block
 block discarded – undo
174 173
      *
175 174
      * @param mixed $value
176 175
      *
177
-     * @return bool
176
+     * @return integer
178 177
      */
179 178
     private static function date(&$value)
180 179
     {
Please login to merge, or discard this patch.
src/Driver/DatabaseDriver.php 2 patches
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.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
 
46 46
         try {
47 47
             return $db->insert($values)
48
-                      ->into($tablename)
49
-                      ->execute() instanceof PDOStatement;
48
+                        ->into($tablename)
49
+                        ->execute() instanceof PDOStatement;
50 50
         } catch (PDOException $original) {
51 51
             $e = new DriverException('An error occurred in the database driver when creating the '.$model::modelName().': '.$original->getMessage());
52 52
             $e->setException($original);
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
 
75 75
         try {
76 76
             $row = $db->select('*')
77
-                      ->from($tablename)
78
-                      ->where($model->ids())
79
-                      ->one();
77
+                        ->from($tablename)
78
+                        ->where($model->ids())
79
+                        ->one();
80 80
         } catch (PDOException $original) {
81 81
             $e = new DriverException('An error occurred in the database driver when loading an instance of '.$model::modelName().': '.$original->getMessage());
82 82
             $e->setException($original);
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 
103 103
         try {
104 104
             return $db->update($tablename)
105
-                      ->values($values)
106
-                      ->where($model->ids())
107
-                      ->execute() instanceof PDOStatement;
105
+                        ->values($values)
106
+                        ->where($model->ids())
107
+                        ->execute() instanceof PDOStatement;
108 108
         } catch (PDOException $original) {
109 109
             $e = new DriverException('An error occurred in the database driver when updating the '.$model::modelName().': '.$original->getMessage());
110 110
             $e->setException($original);
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
 
120 120
         try {
121 121
             return $db->delete($tablename)
122
-                      ->where($model->ids())
123
-                      ->execute() instanceof PDOStatement;
122
+                        ->where($model->ids())
123
+                        ->execute() instanceof PDOStatement;
124 124
         } catch (PDOException $original) {
125 125
             $e = new DriverException('An error occurred in the database driver while deleting the '.$model::modelName().': '.$original->getMessage());
126 126
             $e->setException($original);
Please login to merge, or discard this patch.
src/Query.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     /**
127 127
      * Sets the sort pattern for the query.
128 128
      *
129
-     * @param array|string $sort
129
+     * @param string $sort
130 130
      *
131 131
      * @return self
132 132
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@
 block discarded – undo
379 379
         $uniqueIds = array_unique($ids);
380 380
         $in = 'id IN ('.implode(',', $uniqueIds).')';
381 381
         $models = $modelClass::where($in)
382
-                             ->first(self::MAX_LIMIT);
382
+                                ->first(self::MAX_LIMIT);
383 383
 
384 384
         $result = [];
385 385
         foreach ($models as $model) {
Please login to merge, or discard this patch.
src/ACLModel.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
79 79
         return $this->permissionsCache[$k];
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $permission
84
+     */
82 85
     abstract protected function hasPermission($permission, Model $requester);
83 86
 
84 87
     /**
Please login to merge, or discard this patch.