@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Retrieves an entity by its id. |
| 35 | 35 | * |
| 36 | - * @param Identity|Model $id |
|
| 36 | + * @param Identity $id |
|
| 37 | 37 | * @param Fields|null $fields |
| 38 | 38 | * |
| 39 | 39 | * @return array |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * Returns whether an entity with the given id exists. |
| 101 | 101 | * |
| 102 | - * @param Identity|Model $id |
|
| 102 | + * @param Identity $id |
|
| 103 | 103 | * |
| 104 | 104 | * @return bool |
| 105 | 105 | */ |
@@ -133,9 +133,9 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Adds a new entity to the storage. |
| 135 | 135 | * |
| 136 | - * @param Identity|Model $value |
|
| 136 | + * @param Identity $value |
|
| 137 | 137 | * |
| 138 | - * @return mixed |
|
| 138 | + * @return Identity |
|
| 139 | 139 | */ |
| 140 | 140 | public function add(Identity $value) |
| 141 | 141 | { |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | /** |
| 184 | 184 | * Removes the entity with the given id. |
| 185 | 185 | * |
| 186 | - * @param Identity|Model $id |
|
| 186 | + * @param Identity $id |
|
| 187 | 187 | * |
| 188 | 188 | * @return bool |
| 189 | 189 | */ |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $capsule = new Capsule(); |
| 18 | 18 | |
| 19 | 19 | //Adds MongoDb support. |
| 20 | -$capsule->getDatabaseManager()->extend('mongodb', function ($config) { |
|
| 20 | +$capsule->getDatabaseManager()->extend('mongodb', function($config) { |
|
| 21 | 21 | return new Jenssegers\Mongodb\Connection($config); |
| 22 | 22 | }); |
| 23 | 23 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | private static function removeEmptyFilters(array $filters) |
| 58 | 58 | { |
| 59 | - $filters = array_filter($filters, function ($v) { |
|
| 59 | + $filters = array_filter($filters, function($v) { |
|
| 60 | 60 | return count($v) > 0; |
| 61 | 61 | }); |
| 62 | 62 | |