Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
percymamedy committed Sep 15, 2021
1 parent 810a1a0 commit 7c709de
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 41 deletions.
1 change: 1 addition & 0 deletions src/Annotations/EloquentModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class EloquentModel
* use for the repository.
*
* @Required
*
* @var string
*/
public $target;
Expand Down
21 changes: 8 additions & 13 deletions src/Concerns/IsRepositorable.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ trait IsRepositorable
/**
* Sets the Model to the Repo.
*
* @param Model $model
*
* @param Model $model
* @return self
*/
public function setModel(Model $model)
Expand All @@ -40,10 +39,9 @@ public function getModel()
/**
* Update a Model in the database.
*
* @param array $values
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
* @param array $options
*
* @param array $values
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
* @param array $options
* @return bool
*/
public function update(array $values, $idOrModel, array $options = [])
Expand All @@ -58,8 +56,7 @@ public function update(array $values, $idOrModel, array $options = [])
/**
* Delete a record from the database.
*
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
*
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
* @return bool|null
*
* @throws \Exception
Expand All @@ -76,9 +73,8 @@ public function delete($idOrModel)
/**
* Find a Model or Models Using some criteria.
*
* @param array $criteria
* @param array $columns
*
* @param array $criteria
* @param array $columns
* @return \Illuminate\Database\Eloquent\Collection|null
*/
public function findBy($criteria = [], $columns = ['*'])
Expand All @@ -101,8 +97,7 @@ public function findBy($criteria = [], $columns = ['*'])
/**
* Return response from repository.
*
* @param mixed $value
*
* @param mixed $value
* @return mixed
*/
protected function response($value)
Expand Down
3 changes: 1 addition & 2 deletions src/Concerns/IsRepositoryBootable.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ protected function getEloquentModelByAnnotation()
/**
* Find the first Eloquent Model specified by the annotations.
*
* @param Collection $annotations
*
* @param Collection $annotations
* @return Model
*/
protected function findFirstEloquentModel(Collection $annotations)
Expand Down
5 changes: 2 additions & 3 deletions src/Concerns/IsRepositoryScopable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ trait IsRepositoryScopable
* Whenever a function is called we try to
* scope it to the model.
*
* @param string $name
* @param mixed $arguments
*
* @param string $name
* @param mixed $arguments
* @return $this
*/
public function __call($name, $arguments)
Expand Down
5 changes: 2 additions & 3 deletions src/Console/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ protected function getStub()
/**
* Replace the namespace for the given stub.
*
* @param string $stub
* @param string $name
*
* @param string $stub
* @param string $name
* @return $this
*/
protected function replaceNamespace(&$stub, $name)
Expand Down
15 changes: 6 additions & 9 deletions src/Contracts/RepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,26 @@ interface RepositoryInterface
/**
* Update a Model in the database.
*
* @param array $values
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
* @param array $options
*
* @param array $values
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
* @param array $options
* @return bool
*/
public function update(array $values, $idOrModel, array $options = []);

/**
* Delete a record from the database.
*
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
*
* @param \Illuminate\Database\Eloquent\Model|mixed $idOrModel
* @return mixed
*/
public function delete($idOrModel);

/**
* Find a Model or Models Using some criteria.
*
* @param array $criteria
* @param array $columns
*
* @param array $criteria
* @param array $columns
* @return \Illuminate\Database\Eloquent\Collection|null
*/
public function findBy($criteria = [], $columns = ['*']);
Expand Down
6 changes: 3 additions & 3 deletions src/Exceptions/InvalidModelException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class InvalidModelException extends \RuntimeException
/**
* InvalidModelException constructor.
*
* @param string $message
* @param int $code
* @param Exception|null $previous
* @param string $message
* @param int $code
* @param Exception|null $previous
*/
public function __construct($message = '', $code = 0, Exception $previous = null)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Exceptions/UnspecifiedModelException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class UnspecifiedModelException extends \RuntimeException
/**
* UnspecifiedModelException constructor.
*
* @param string $message
* @param int $code
* @param Exception|null $previous
* @param string $message
* @param int $code
* @param Exception|null $previous
*/
public function __construct($message = '', $code = 0, Exception $previous = null)
{
Expand Down
5 changes: 2 additions & 3 deletions tests/Fixtures/Models/Scopes/IsActive.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ class IsActive implements Scope
/**
* Apply the scope to a given Eloquent query builder.
*
* @param \Illuminate\Database\Eloquent\Builder $builder
* @param \Illuminate\Database\Eloquent\Model $model
*
* @param \Illuminate\Database\Eloquent\Builder $builder
* @param \Illuminate\Database\Eloquent\Model $model
* @return void
*/
public function apply(Builder $builder, Model $model)
Expand Down
3 changes: 1 addition & 2 deletions tests/TestMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ protected function tearDown(): void
/**
* Define environment setup.
*
* @param \Illuminate\Foundation\Application $app
*
* @param \Illuminate\Foundation\Application $app
* @return void
*/
protected function getEnvironmentSetUp($app)
Expand Down

0 comments on commit 7c709de

Please sign in to comment.