Skip to content

Commit cf3b745

Browse files
authored
Merge pull request #44 from cesargb/analysis-kaKDLA
Apply fixes from StyleCI
2 parents 51af576 + 7a8fe46 commit cf3b745

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

src/Actions/LoginAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class LoginAction extends ResponseAction
1717
/**
1818
* Constructor to action.
1919
*
20-
* @param Illuminate\Contracts\Auth\Authenticatable $user
21-
* @param mixed $httpResponse
22-
* @param string|null $guard
20+
* @param Illuminate\Contracts\Auth\Authenticatable $user
21+
* @param mixed $httpResponse
22+
* @param string|null $guard
2323
*/
2424
public function __construct(Authenticatable $user, $httpResponse = null, string $guard = 'web')
2525
{

src/Actions/ResponseAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class ResponseAction extends ActionAbstract
2222
/**
2323
* Constructor to action.
2424
*
25-
* @param \Illuminate\Database\Eloquent\Model $user
26-
* @param mixed $httpResponse
25+
* @param \Illuminate\Database\Eloquent\Model $user
26+
* @param mixed $httpResponse
2727
*/
2828
public function __construct($httpResponse = null)
2929
{

src/Actions/ViewAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class ViewAction extends ActionAbstract
1313
/**
1414
* Constructor action.
1515
*
16-
* @param \Illuminate\Contracts\Support\Arrayable|array $data
17-
* @param array $mergeData
16+
* @param \Illuminate\Contracts\Support\Arrayable|array $data
17+
* @param array $mergeData
1818
*/
1919
public function __construct(string $view, $data = [], $mergeData = [])
2020
{

src/MagicLink.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function checkAccessCode(?string $accessCode): bool
118118
*/
119119
public function protectedWithAcessCode(): bool
120120
{
121-
return !is_null($this->access_code ?? null);
121+
return ! is_null($this->access_code ?? null);
122122
}
123123

124124
/**
@@ -149,8 +149,7 @@ public function visited()
149149
/**
150150
* Get valid MagicLink by token.
151151
*
152-
* @param string $token
153-
*
152+
* @param string $token
154153
* @return \MagicLink\MagicLink|null
155154
*/
156155
public static function getValidMagicLinkByToken($token)
@@ -179,8 +178,7 @@ public static function getValidMagicLinkByToken($token)
179178
/**
180179
* Get MagicLink by token.
181180
*
182-
* @param string $token
183-
*
181+
* @param string $token
184182
* @return \MagicLink\MagicLink|null
185183
*/
186184
public static function getMagicLinkByToken($token)

tests/Actions/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testResponseCallableWithMagicLink()
128128
{
129129
$magiclink = MagicLink::create(new ResponseAction(
130130
function ($magiclink) {
131-
if (!MagicLink::first()) {
131+
if (! MagicLink::first()) {
132132
return redirect('/');
133133
}
134134

tests/TestCase.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ public function setUp(): void
1616
}
1717

1818
/**
19-
* @param \Illuminate\Foundation\Application $app
20-
*
19+
* @param \Illuminate\Foundation\Application $app
2120
* @return array
2221
*/
2322
protected function getPackageProviders($app)
@@ -30,7 +29,7 @@ protected function getPackageProviders($app)
3029
/**
3130
* Set up the environment.
3231
*
33-
* @param \Illuminate\Foundation\Application $app
32+
* @param \Illuminate\Foundation\Application $app
3433
*/
3534
protected function getEnvironmentSetUp($app)
3635
{
@@ -84,7 +83,7 @@ protected function getEnvironmentSetUp($app)
8483
/**
8584
* Set up the database.
8685
*
87-
* @param \Illuminate\Foundation\Application $app
86+
* @param \Illuminate\Foundation\Application $app
8887
*/
8988
protected function setUpDatabase($app)
9089
{

0 commit comments

Comments
 (0)