@@ -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 |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | /** |
266 | 266 | * Sets the driver for all models. |
267 | 267 | * |
268 | - * @param Model\Driver\DriverInterface $driver |
|
268 | + * @param DriverInterface $driver |
|
269 | 269 | */ |
270 | 270 | public static function setDriver(DriverInterface $driver) |
271 | 271 | { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Gets the driver for all models. |
277 | 277 | * |
278 | - * @return Model\Driver\DriverInterface |
|
278 | + * @return DriverInterface |
|
279 | 279 | */ |
280 | 280 | public static function getDriver() |
281 | 281 | { |
@@ -983,7 +983,7 @@ discard block |
||
983 | 983 | /** |
984 | 984 | * Generates a new query instance. |
985 | 985 | * |
986 | - * @return Model\Query |
|
986 | + * @return Query |
|
987 | 987 | */ |
988 | 988 | public static function query() |
989 | 989 | { |
@@ -1111,7 +1111,7 @@ discard block |
||
1111 | 1111 | * @param string $foreignKey identifying key on foreign model |
1112 | 1112 | * @param string $localKey identifying key on local model |
1113 | 1113 | * |
1114 | - * @return Relation |
|
1114 | + * @return HasOne |
|
1115 | 1115 | */ |
1116 | 1116 | public function hasOne($model, $foreignKey = '', $localKey = '') |
1117 | 1117 | { |
@@ -1136,7 +1136,7 @@ discard block |
||
1136 | 1136 | * @param string $foreignKey identifying key on foreign model |
1137 | 1137 | * @param string $localKey identifying key on local model |
1138 | 1138 | * |
1139 | - * @return Relation |
|
1139 | + * @return BelongsTo |
|
1140 | 1140 | */ |
1141 | 1141 | public function belongsTo($model, $foreignKey = '', $localKey = '') |
1142 | 1142 | { |
@@ -1161,7 +1161,7 @@ discard block |
||
1161 | 1161 | * @param string $foreignKey identifying key on foreign model |
1162 | 1162 | * @param string $localKey identifying key on local model |
1163 | 1163 | * |
1164 | - * @return Relation |
|
1164 | + * @return HasMany |
|
1165 | 1165 | */ |
1166 | 1166 | public function hasMany($model, $foreignKey = '', $localKey = '') |
1167 | 1167 | { |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | * @param string $foreignKey identifying key on foreign model |
1187 | 1187 | * @param string $localKey identifying key on local model |
1188 | 1188 | * |
1189 | - * @return Relation |
|
1189 | + * @return BelongsToMany |
|
1190 | 1190 | */ |
1191 | 1191 | public function belongsToMany($model, $foreignKey = '', $localKey = '') |
1192 | 1192 | { |
@@ -1306,7 +1306,7 @@ discard block |
||
1306 | 1306 | * |
1307 | 1307 | * @param string $eventName |
1308 | 1308 | * |
1309 | - * @return Model\ModelEvent |
|
1309 | + * @return \Symfony\Component\EventDispatcher\Event |
|
1310 | 1310 | */ |
1311 | 1311 | protected function dispatch($eventName) |
1312 | 1312 | { |
@@ -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 | } |