Skip to content

Commit

Permalink
Merge pull request #44 from cesargb/analysis-kaKDLA
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
cesargb committed Sep 20, 2021
2 parents 51af576 + 7a8fe46 commit cf3b745
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/Actions/LoginAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class LoginAction extends ResponseAction
/**
* Constructor to action.
*
* @param Illuminate\Contracts\Auth\Authenticatable $user
* @param mixed $httpResponse
* @param string|null $guard
* @param Illuminate\Contracts\Auth\Authenticatable $user
* @param mixed $httpResponse
* @param string|null $guard
*/
public function __construct(Authenticatable $user, $httpResponse = null, string $guard = 'web')
{
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/ResponseAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class ResponseAction extends ActionAbstract
/**
* Constructor to action.
*
* @param \Illuminate\Database\Eloquent\Model $user
* @param mixed $httpResponse
* @param \Illuminate\Database\Eloquent\Model $user
* @param mixed $httpResponse
*/
public function __construct($httpResponse = null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Actions/ViewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class ViewAction extends ActionAbstract
/**
* Constructor action.
*
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
* @param \Illuminate\Contracts\Support\Arrayable|array $data
* @param array $mergeData
*/
public function __construct(string $view, $data = [], $mergeData = [])
{
Expand Down
8 changes: 3 additions & 5 deletions src/MagicLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function checkAccessCode(?string $accessCode): bool
*/
public function protectedWithAcessCode(): bool
{
return !is_null($this->access_code ?? null);
return ! is_null($this->access_code ?? null);
}

/**
Expand Down Expand Up @@ -149,8 +149,7 @@ public function visited()
/**
* Get valid MagicLink by token.
*
* @param string $token
*
* @param string $token
* @return \MagicLink\MagicLink|null
*/
public static function getValidMagicLinkByToken($token)
Expand Down Expand Up @@ -179,8 +178,7 @@ public static function getValidMagicLinkByToken($token)
/**
* Get MagicLink by token.
*
* @param string $token
*
* @param string $token
* @return \MagicLink\MagicLink|null
*/
public static function getMagicLinkByToken($token)
Expand Down
2 changes: 1 addition & 1 deletion tests/Actions/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function testResponseCallableWithMagicLink()
{
$magiclink = MagicLink::create(new ResponseAction(
function ($magiclink) {
if (!MagicLink::first()) {
if (! MagicLink::first()) {
return redirect('/');
}

Expand Down
7 changes: 3 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function setUp(): void
}

/**
* @param \Illuminate\Foundation\Application $app
*
* @param \Illuminate\Foundation\Application $app
* @return array
*/
protected function getPackageProviders($app)
Expand All @@ -30,7 +29,7 @@ protected function getPackageProviders($app)
/**
* Set up the environment.
*
* @param \Illuminate\Foundation\Application $app
* @param \Illuminate\Foundation\Application $app
*/
protected function getEnvironmentSetUp($app)
{
Expand Down Expand Up @@ -84,7 +83,7 @@ protected function getEnvironmentSetUp($app)
/**
* Set up the database.
*
* @param \Illuminate\Foundation\Application $app
* @param \Illuminate\Foundation\Application $app
*/
protected function setUpDatabase($app)
{
Expand Down

0 comments on commit cf3b745

Please sign in to comment.