| @@ -272,7 +272,6 @@ discard block | ||
| 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 | ||
| 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 | 
| @@ -260,13 +260,13 @@ | ||
| 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 | } | 
| @@ -181,7 +181,6 @@ discard block | ||
| 181 | 181 | /** | 
| 182 | 182 | * Validates an e-mail address. | 
| 183 | 183 | * | 
| 184 | - * @param string $email e-mail address | |
| 185 | 184 | * @param array $parameters parameters for validation | 
| 186 | 185 | * | 
| 187 | 186 | * @return bool success | 
| @@ -213,7 +212,7 @@ discard block | ||
| 213 | 212 | * | 
| 214 | 213 | * @param mixed $value | 
| 215 | 214 | * | 
| 216 | - * @return bool | |
| 215 | + * @return integer | |
| 217 | 216 | */ | 
| 218 | 217 | private function date(&$value) | 
| 219 | 218 |      { | 
| @@ -487,7 +487,7 @@ | ||
| 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) { | 
| @@ -129,7 +129,7 @@ | ||
| 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 | */ | 
| @@ -112,7 +112,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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())) { |