Skip to content

Commit 5dca920

Browse files
Merge pull request #26 from richan-fongdasen/analysis-5ZJe0W
Apply fixes from StyleCI [ci skip] [skip ci]
2 parents 3553052 + ef90faa commit 5dca920

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

src/Contracts/VarnishableModel.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ interface VarnishableModel
77
/**
88
* Fill the model with an array of attributes.
99
*
10-
* @param array $attributes
11-
* @return $this
10+
* @param array $attributes
1211
*
1312
* @throws \Illuminate\Database\Eloquent\MassAssignmentException
13+
*
14+
* @return $this
1415
*/
1516
public function fill(array $attributes);
1617

1718
/**
1819
* Get an attribute from the model.
1920
*
20-
* @param string $key
21+
* @param string $key
22+
*
2123
* @return mixed
2224
*/
2325
public function getAttribute($key);
@@ -39,8 +41,9 @@ public function newQuery();
3941
/**
4042
* Set a given attribute on the model.
4143
*
42-
* @param string $key
43-
* @param mixed $value
44+
* @param string $key
45+
* @param mixed $value
46+
*
4447
* @return mixed
4548
*/
4649
public function setAttribute($key, $value);

src/Events/ModelHasUpdated.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ public function __construct(VarnishableModel $model)
5353
* Create dirty eloquent model object
5454
* based on the last saved model data.
5555
*
56-
* @return VarnishableModel
5756
* @throws Exception
57+
*
58+
* @return VarnishableModel
5859
*/
5960
protected function createDirtyModel(): VarnishableModel
6061
{
@@ -92,8 +93,9 @@ protected function getQuery(VarnishableModel $model): Builder
9293
/**
9394
* Model accessor.
9495
*
95-
* @return VarnishableModel
9696
* @throws Exception
97+
*
98+
* @return VarnishableModel
9799
*/
98100
public function model(): VarnishableModel
99101
{
@@ -103,8 +105,9 @@ public function model(): VarnishableModel
103105
/**
104106
* Initialize a new VarnishableModel object.
105107
*
106-
* @return VarnishableModel
107108
* @throws Exception
109+
*
110+
* @return VarnishableModel
108111
*/
109112
protected function newModel(): VarnishableModel
110113
{
@@ -123,8 +126,9 @@ protected function newModel(): VarnishableModel
123126
* Retrieve fresh eloquent model from
124127
* run-time cache or the database.
125128
*
126-
* @return VarnishableModel|null
127129
* @throws Exception
130+
*
131+
* @return VarnishableModel|null
128132
*/
129133
protected function retrieveModel(): ?VarnishableModel
130134
{

src/VarnishableObserver.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public function restored(VarnishableModel $model): void
8383
*
8484
* @param VarnishableModel $model
8585
*
86-
* @return void
8786
* @throws Exception
87+
*
88+
* @return void
8889
*/
8990
public function retrieved(VarnishableModel $model): void
9091
{
@@ -108,8 +109,9 @@ public function saved(VarnishableModel $model): void
108109
*
109110
* @param VarnishableModel $model
110111
*
111-
* @return void
112112
* @throws Exception
113+
*
114+
* @return void
113115
*/
114116
public function wakeup(VarnishableModel $model): void
115117
{

src/VarnishableService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class VarnishableService
3333
* Class constructor.
3434
*
3535
* @param \GuzzleHttp\Client $guzzle
36+
*
3637
* @throws \Psr\Container\ContainerExceptionInterface
3738
* @throws \Psr\Container\NotFoundExceptionInterface
3839
*/
@@ -71,9 +72,10 @@ public function getGuzzle(): Client
7172
/**
7273
* Load the configurations.
7374
*
74-
* @return void
7575
* @throws \Psr\Container\ContainerExceptionInterface
7676
* @throws \Psr\Container\NotFoundExceptionInterface
77+
*
78+
* @return void
7779
*/
7880
public function loadConfig(): void
7981
{

0 commit comments

Comments
 (0)