diff --git a/src/Jenssegers/Mongodb/Model.php b/src/Jenssegers/Mongodb/Model.php index 387c2fd02..e51be8a53 100644 --- a/src/Jenssegers/Mongodb/Model.php +++ b/src/Jenssegers/Mongodb/Model.php @@ -1,15 +1,15 @@ attributes, $key, $value); -return; + return; } parent::setAttribute($key, $value); @@ -353,7 +356,7 @@ public function attributesToArray() /** * Remove one or more fields. * - * @param mixed $columns + * @param mixed $columns * @return int */ public function drop($columns) @@ -406,6 +409,8 @@ public function push() /** * Remove one or more values from an array. * + * @param string $column + * @param mixed $values * @return mixed */ public function pull($column, $values) @@ -446,7 +451,7 @@ protected function pushAttributeValues($column, array $values, $unique = false) } /** - * Rempove one or more values to the underlying attribute value and sync with original. + * Remove one or more values to the underlying attribute value and sync with original. * * @param string $column * @param array $values @@ -474,7 +479,7 @@ protected function pullAttributeValues($column, array $values) /** * Set the parent relation. * - * @param Relation $relation + * @param \Illuminate\Database\Eloquent\Relations\Relation $relation */ public function setParentRelation(Relation $relation) { @@ -484,7 +489,7 @@ public function setParentRelation(Relation $relation) /** * Get the parent relation. * - * @return Relation + * @return \Illuminate\Database\Eloquent\Relations\Relation */ public function getParentRelation() { diff --git a/src/Jenssegers/Mongodb/Relations/EmbedsMany.php b/src/Jenssegers/Mongodb/Relations/EmbedsMany.php index 04f2a42ca..b790abec3 100644 --- a/src/Jenssegers/Mongodb/Relations/EmbedsMany.php +++ b/src/Jenssegers/Mongodb/Relations/EmbedsMany.php @@ -1,16 +1,16 @@ getKeyName() == '_id' and ! $model->getKey()) @@ -54,7 +54,7 @@ public function performInsert(Model $model, array $values) * @param \Illuminate\Database\Eloquent\Model $model * @return Model|bool */ - public function performUpdate(Model $model, array $values) + public function performUpdate(Model $model) { // For deeply nested documents, let the parent handle the changes. if ($this->isNested()) @@ -269,11 +269,10 @@ protected function associateExisting($model) /** * Get a paginator for the "select" statement. * - * @param int $perPage - * @param array $columns + * @param int $perPage * @return \Illuminate\Pagination\Paginator */ - public function paginate($perPage = null, $columns = array('*')) + public function paginate($perPage = null) { $page = Paginator::resolveCurrentPage(); $perPage = $perPage ?: $this->related->getPerPage(); @@ -303,7 +302,7 @@ protected function getEmbedded() /** * Set the embedded records array. * - * @param array $models + * @param array $models * @return void */ protected function setEmbedded($models) diff --git a/src/Jenssegers/Mongodb/Relations/EmbedsOne.php b/src/Jenssegers/Mongodb/Relations/EmbedsOne.php index a24b3b9d6..069fd0525 100644 --- a/src/Jenssegers/Mongodb/Relations/EmbedsOne.php +++ b/src/Jenssegers/Mongodb/Relations/EmbedsOne.php @@ -1,7 +1,7 @@ getKeyName() == '_id' and ! $model->getKey()) @@ -49,9 +49,9 @@ public function performInsert(Model $model, array $values) * Save an existing model and attach it to the parent model. * * @param \Illuminate\Database\Eloquent\Model $model - * @return Model|bool + * @return \Illuminate\Database\Eloquent\Model|bool */ - public function performUpdate(Model $model, array $values) + public function performUpdate(Model $model) { if ($this->isNested()) { @@ -74,7 +74,7 @@ public function performUpdate(Model $model, array $values) /** * Delete an existing model and detach it from the parent model. * - * @param Model $model + * @param \Illuminate\Database\Eloquent\Model $model * @return int */ public function performDelete(Model $model) diff --git a/src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php b/src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php index 2a64e461a..936c9353a 100644 --- a/src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php +++ b/src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php @@ -1,10 +1,9 @@