@@ -268,7 +268,6 @@ discard block |
||
| 268 | 268 | /** |
| 269 | 269 | * Returns a prefixed where statement. |
| 270 | 270 | * |
| 271 | - * @param string $columns |
|
| 272 | 271 | * @param string $tablename |
| 273 | 272 | * |
| 274 | 273 | * @return string |
@@ -296,7 +295,6 @@ discard block |
||
| 296 | 295 | /** |
| 297 | 296 | * Returns a prefixed sort statement. |
| 298 | 297 | * |
| 299 | - * @param string $columns |
|
| 300 | 298 | * @param string $tablename |
| 301 | 299 | * |
| 302 | 300 | * @return string |
@@ -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())) { |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | |
| 158 | 158 | // cache the local properties |
| 159 | 159 | $this->getCacheItem() |
| 160 | - ->set($this->_values, $this->getCacheTTL()); |
|
| 160 | + ->set($this->_values, $this->getCacheTTL()); |
|
| 161 | 161 | |
| 162 | 162 | return $this; |
| 163 | 163 | } |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | * @param string $error |
| 145 | 145 | * @param string|false $locale |
| 146 | 146 | * |
| 147 | - * @return array |
|
| 147 | + * @return string |
|
| 148 | 148 | */ |
| 149 | 149 | private function parse($property, $error, $locale) |
| 150 | 150 | { |
@@ -106,7 +106,6 @@ discard block |
||
| 106 | 106 | * of parameters to be specified. This example would generate |
| 107 | 107 | * [['numeric', []], ['range', [10, 30]]]. |
| 108 | 108 | * |
| 109 | - * @param string $requirements |
|
| 110 | 109 | * |
| 111 | 110 | * @return array |
| 112 | 111 | */ |
@@ -221,7 +220,6 @@ discard block |
||
| 221 | 220 | /** |
| 222 | 221 | * Validates an e-mail address. |
| 223 | 222 | * |
| 224 | - * @param string $email e-mail address |
|
| 225 | 223 | * @param array $parameters parameters for validation |
| 226 | 224 | * |
| 227 | 225 | * @return bool success |
@@ -251,7 +249,7 @@ discard block |
||
| 251 | 249 | * |
| 252 | 250 | * @param mixed $value |
| 253 | 251 | * |
| 254 | - * @return bool |
|
| 252 | + * @return integer |
|
| 255 | 253 | */ |
| 256 | 254 | private function date($value) |
| 257 | 255 | { |