Skip to content

Commit

Permalink
inspection: remove returns on parent:void methods
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Feb 27, 2024
1 parent 255040b commit 551cc5f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 33 deletions.
52 changes: 26 additions & 26 deletions src/User/Service/SessionHistory/SessionHistoryDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public function getHasSessionId()
}

/** @inheritdoc */
public function setHasSessionId($value)
public function setHasSessionId($value) : void
{
return $this->session->setHasSessionId($value);
$this->session->setHasSessionId($value);
}

/** @inheritdoc */
Expand All @@ -85,9 +85,9 @@ public function getId()
}

/** @inheritdoc */
public function setId($value)
public function setId($value) : void
{
return $this->session->setId($value);
$this->session->setId($value);
}

/** @inheritdoc */
Expand Down Expand Up @@ -125,9 +125,9 @@ public function getName()
}

/** @inheritdoc */
public function setName($value)
public function setName($value) : void
{
return $this->session->setName($value);
$this->session->setName($value);
}

/** @inheritdoc */
Expand All @@ -137,9 +137,9 @@ public function getSavePath()
}

/** @inheritdoc */
public function setSavePath($value)
public function setSavePath($value) : void
{
return $this->session->setSavePath($value);
$this->session->setSavePath($value);
}

/** @inheritdoc */
Expand All @@ -149,9 +149,9 @@ public function getCookieParams()
}

/** @inheritdoc */
public function setCookieParams(array $value)
public function setCookieParams(array $value) : void
{
return $this->session->setCookieParams($value);
$this->session->setCookieParams($value);
}

/** @inheritdoc */
Expand All @@ -161,9 +161,9 @@ public function getUseCookies()
}

/** @inheritdoc */
public function setUseCookies($value)
public function setUseCookies($value) : void
{
return $this->session->setUseCookies($value);
$this->session->setUseCookies($value);
}

/** @inheritdoc */
Expand All @@ -173,9 +173,9 @@ public function getGCProbability()
}

/** @inheritdoc */
public function setGCProbability($value)
public function setGCProbability($value) : void
{
return $this->session->setGCProbability($value);
$this->session->setGCProbability($value);
}

/** @inheritdoc */
Expand All @@ -185,9 +185,9 @@ public function getUseTransparentSessionID()
}

/** @inheritdoc */
public function setUseTransparentSessionID($value)
public function setUseTransparentSessionID($value) : void
{
return $this->session->setUseTransparentSessionID($value);
$this->session->setUseTransparentSessionID($value);
}

/** @inheritdoc */
Expand All @@ -197,9 +197,9 @@ public function getTimeout()
}

/** @inheritdoc */
public function setTimeout($value)
public function setTimeout($value) : void
{
return $this->session->setTimeout($value);
$this->session->setTimeout($value);
}

/** @inheritdoc */
Expand Down Expand Up @@ -313,9 +313,9 @@ public function remove($key)
}

/** @inheritdoc */
public function removeAll()
public function removeAll() : void
{
return $this->session->removeAll();
$this->session->removeAll();
}

/** @inheritdoc */
Expand All @@ -337,15 +337,15 @@ public function getAllFlashes($delete = false)
}

/** @inheritdoc */
public function setFlash($key, $value = true, $removeAfterAccess = true)
public function setFlash($key, $value = true, $removeAfterAccess = true) : void
{
return $this->session->setFlash($key, $value, $removeAfterAccess);
$this->session->setFlash($key, $value, $removeAfterAccess);
}

/** @inheritdoc */
public function addFlash($key, $value = true, $removeAfterAccess = true)
public function addFlash($key, $value = true, $removeAfterAccess = true) : void
{
return $this->session->addFlash($key, $value, $removeAfterAccess);
$this->session->addFlash($key, $value, $removeAfterAccess);
}

/** @inheritdoc */
Expand All @@ -355,9 +355,9 @@ public function removeFlash($key)
}

/** @inheritdoc */
public function removeAllFlashes()
public function removeAllFlashes() : void
{
return $this->session->removeAllFlashes();
$this->session->removeAllFlashes();
}

/** @inheritdoc */
Expand Down
4 changes: 1 addition & 3 deletions src/User/Validator/TwoFactorEmailValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ class TwoFactorEmailValidator extends TwoFactorCodeValidator
*/
public function __construct(User $user, $code, $cycles = 0)
{
$this->user = $user;
$this->code = $code;
$this->cycles = $cycles;
parent::__construct($user, $code, $cycles);
$this->type = 'email';
}

Expand Down
5 changes: 1 addition & 4 deletions src/User/Validator/TwoFactorTextMessageValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ class TwoFactorTextMessageValidator extends TwoFactorCodeValidator
*/
public function __construct(User $user, $code, $cycles = 0)
{
$this->user = $user;

$this->code = $code;
$this->cycles = $cycles;
parent::__construct($user, $code, $cycles);
$this->type = 'sms';
}

Expand Down

0 comments on commit 551cc5f

Please sign in to comment.