Skip to content

Commit

Permalink
Merge pull request #137 from imanghafoori1/analysis-ka3EOj
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
imanghafoori1 authored Jan 30, 2022
2 parents d5f5296 + edea0d5 commit cdc2eb1
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Core/ChainCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function commitChain()
* initialize the chain.
*
* @param $manager
* @param array $values
* @param string $param
* @param array $values
* @param string $param
*/
public function init($manager, array $values, string $param = 'default')
{
Expand Down
7 changes: 3 additions & 4 deletions src/Plugins/Conditions/RequestValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ class RequestValidation
/**
* Validate the given request with the given rules.
*
* @param array|callable $rules
* @param array $messages
* @param array $customAttributes
*
* @param array|callable $rules
* @param array $messages
* @param array $customAttributes
* @return \Imanghafoori\HeyMan\Reactions\Validator
*/
public function yourRequestShouldBeValid($rules, array $messages = [], array $customAttributes = [])
Expand Down
9 changes: 4 additions & 5 deletions src/Plugins/Reactions/Redirect/RedirectionMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@ final class RedirectionMsg
/**
* Redirector constructor.
*
* @param Redirector $redirect
* @param Redirector $redirect
*/
public function __construct(Redirector $redirect)
{
$this->redirect = $redirect;
}

/**
* @param string $method
* @param array $parameters
* @param string $method
* @param array $parameters
* @return $this
*
* @throws \BadMethodCallException
*
* @return $this
*/
public function __call($method, $parameters)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Reactions/Redirect/Redirector.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Redirector
/**
* Responder constructor.
*
* @param PreReactions $reaction
* @param PreReactions $reaction
*/
public function __construct($reaction)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ final class EloquentSituations
/**
* @param $method
* @param $model
*
* @return array
*/
public function normalize($method, $model)
Expand Down
2 changes: 1 addition & 1 deletion src/Reactions/TerminateWith.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TerminateWith
/**
* Termination constructor.
*
* @param \Imanghafoori\HeyMan\Reactions\PreReactions $reactions
* @param \Imanghafoori\HeyMan\Reactions\PreReactions $reactions
*/
public function __construct($reactions)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reactions/Then.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Then
/**
* Termination constructor.
*
* @param \Imanghafoori\HeyMan\Reactions\PreReactions $reactions
* @param \Imanghafoori\HeyMan\Reactions\PreReactions $reactions
*/
public function __construct($reactions)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Switching/Consider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function allChecks()

/**
* @param $key
* @param callable|null $closure
* @param callable|null $closure
*/
private function turn($key, callable $closure = null)
{
Expand Down
3 changes: 1 addition & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
/**
* Resolve a service from the container.
*
* @param string $name
*
* @param string $name
* @return mixed
*/
function resolve($name)
Expand Down

0 comments on commit cdc2eb1

Please sign in to comment.