Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed Feb 13, 2022
1 parent 3553052 commit ef90faa
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
13 changes: 8 additions & 5 deletions src/Contracts/VarnishableModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ interface VarnishableModel
/**
* Fill the model with an array of attributes.
*
* @param array $attributes
* @return $this
* @param array $attributes
*
* @throws \Illuminate\Database\Eloquent\MassAssignmentException
*
* @return $this
*/
public function fill(array $attributes);

/**
* Get an attribute from the model.
*
* @param string $key
* @param string $key
*
* @return mixed
*/
public function getAttribute($key);
Expand All @@ -39,8 +41,9 @@ public function newQuery();
/**
* Set a given attribute on the model.
*
* @param string $key
* @param mixed $value
* @param string $key
* @param mixed $value
*
* @return mixed
*/
public function setAttribute($key, $value);
Expand Down
12 changes: 8 additions & 4 deletions src/Events/ModelHasUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public function __construct(VarnishableModel $model)
* Create dirty eloquent model object
* based on the last saved model data.
*
* @return VarnishableModel
* @throws Exception
*
* @return VarnishableModel
*/
protected function createDirtyModel(): VarnishableModel
{
Expand Down Expand Up @@ -92,8 +93,9 @@ protected function getQuery(VarnishableModel $model): Builder
/**
* Model accessor.
*
* @return VarnishableModel
* @throws Exception
*
* @return VarnishableModel
*/
public function model(): VarnishableModel
{
Expand All @@ -103,8 +105,9 @@ public function model(): VarnishableModel
/**
* Initialize a new VarnishableModel object.
*
* @return VarnishableModel
* @throws Exception
*
* @return VarnishableModel
*/
protected function newModel(): VarnishableModel
{
Expand All @@ -123,8 +126,9 @@ protected function newModel(): VarnishableModel
* Retrieve fresh eloquent model from
* run-time cache or the database.
*
* @return VarnishableModel|null
* @throws Exception
*
* @return VarnishableModel|null
*/
protected function retrieveModel(): ?VarnishableModel
{
Expand Down
6 changes: 4 additions & 2 deletions src/VarnishableObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ public function restored(VarnishableModel $model): void
*
* @param VarnishableModel $model
*
* @return void
* @throws Exception
*
* @return void
*/
public function retrieved(VarnishableModel $model): void
{
Expand All @@ -108,8 +109,9 @@ public function saved(VarnishableModel $model): void
*
* @param VarnishableModel $model
*
* @return void
* @throws Exception
*
* @return void
*/
public function wakeup(VarnishableModel $model): void
{
Expand Down
4 changes: 3 additions & 1 deletion src/VarnishableService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class VarnishableService
* Class constructor.
*
* @param \GuzzleHttp\Client $guzzle
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
Expand Down Expand Up @@ -71,9 +72,10 @@ public function getGuzzle(): Client
/**
* Load the configurations.
*
* @return void
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*
* @return void
*/
public function loadConfig(): void
{
Expand Down

0 comments on commit ef90faa

Please sign in to comment.