@@ -142,7 +142,6 @@ discard block |
||
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 |
||
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 | { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | // check the if the requester has the `create` |
111 | 111 | // permission before creating |
112 | - static::creating(function (ModelEvent $event) { |
|
112 | + static::creating(function(ModelEvent $event) { |
|
113 | 113 | $model = $event->getModel(); |
114 | 114 | |
115 | 115 | if (!$model->can('create', ACLModel::getRequester())) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | // check the if the requester has the `edit` |
123 | 123 | // permission before updating |
124 | - static::updating(function (ModelEvent $event) { |
|
124 | + static::updating(function(ModelEvent $event) { |
|
125 | 125 | $model = $event->getModel(); |
126 | 126 | |
127 | 127 | if (!$model->can('edit', ACLModel::getRequester())) { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | // check the if the requester has the `delete` |
135 | 135 | // permission before deleting |
136 | - static::deleting(function (ModelEvent $event) { |
|
136 | + static::deleting(function(ModelEvent $event) { |
|
137 | 137 | $model = $event->getModel(); |
138 | 138 | |
139 | 139 | if (!$model->can('delete', ACLModel::getRequester())) { |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | |
38 | 38 | if (self::$cachePool) { |
39 | 39 | // First, attempts to load the model from the caching layer. |
40 | - // If that fails, then attempts to load the model from the |
|
41 | - // database layer. |
|
40 | + // If that fails, then attempts to load the model from the |
|
41 | + // database layer. |
|
42 | 42 | $item = $this->getCacheItem(); |
43 | 43 | $values = $item->get(); |
44 | 44 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | // cache the local properties |
164 | 164 | $this->getCacheItem() |
165 | - ->set($this->_values, $this->getCacheTTL()); |
|
165 | + ->set($this->_values, $this->getCacheTTL()); |
|
166 | 166 | |
167 | 167 | return $this; |
168 | 168 | } |
@@ -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 |