@@ -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 |
@@ -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 | } |
@@ -915,7 +915,7 @@ discard block |
||
915 | 915 | /** |
916 | 916 | * Generates a new query instance. |
917 | 917 | * |
918 | - * @return Model\Query |
|
918 | + * @return Query |
|
919 | 919 | */ |
920 | 920 | public static function query() |
921 | 921 | { |
@@ -1046,7 +1046,7 @@ discard block |
||
1046 | 1046 | * @param string $foreignKey identifying key on foreign model |
1047 | 1047 | * @param string $localKey identifying key on local model |
1048 | 1048 | * |
1049 | - * @return Relation |
|
1049 | + * @return HasOne |
|
1050 | 1050 | */ |
1051 | 1051 | public function hasOne($model, $foreignKey = '', $localKey = '') |
1052 | 1052 | { |
@@ -1071,7 +1071,7 @@ discard block |
||
1071 | 1071 | * @param string $foreignKey identifying key on foreign model |
1072 | 1072 | * @param string $localKey identifying key on local model |
1073 | 1073 | * |
1074 | - * @return Relation |
|
1074 | + * @return BelongsTo |
|
1075 | 1075 | */ |
1076 | 1076 | public function belongsTo($model, $foreignKey = '', $localKey = '') |
1077 | 1077 | { |
@@ -1096,7 +1096,7 @@ discard block |
||
1096 | 1096 | * @param string $foreignKey identifying key on foreign model |
1097 | 1097 | * @param string $localKey identifying key on local model |
1098 | 1098 | * |
1099 | - * @return Relation |
|
1099 | + * @return HasMany |
|
1100 | 1100 | */ |
1101 | 1101 | public function hasMany($model, $foreignKey = '', $localKey = '') |
1102 | 1102 | { |
@@ -1121,7 +1121,7 @@ discard block |
||
1121 | 1121 | * @param string $foreignKey identifying key on foreign model |
1122 | 1122 | * @param string $localKey identifying key on local model |
1123 | 1123 | * |
1124 | - * @return Relation |
|
1124 | + * @return BelongsToMany |
|
1125 | 1125 | */ |
1126 | 1126 | public function belongsToMany($model, $foreignKey = '', $localKey = '') |
1127 | 1127 | { |
@@ -1241,7 +1241,7 @@ discard block |
||
1241 | 1241 | * |
1242 | 1242 | * @param string $eventName |
1243 | 1243 | * |
1244 | - * @return Model\ModelEvent |
|
1244 | + * @return \Symfony\Component\EventDispatcher\Event |
|
1245 | 1245 | */ |
1246 | 1246 | protected function dispatch($eventName) |
1247 | 1247 | { |
@@ -12,10 +12,8 @@ |
||
12 | 12 | |
13 | 13 | use BadMethodCallException; |
14 | 14 | use ICanBoogie\Inflector; |
15 | -use InvalidArgumentException; |
|
16 | 15 | use Pulsar\Driver\DriverInterface; |
17 | 16 | use Pulsar\Exception\DriverMissingException; |
18 | -use Pulsar\Exception\NotFoundException; |
|
19 | 17 | use Pulsar\Relation\HasOne; |
20 | 18 | use Pulsar\Relation\BelongsTo; |
21 | 19 | use Pulsar\Relation\HasMany; |