Skip to content

Commit

Permalink
[CLEANUP] rector: Add strict return type based on returned strict exp…
Browse files Browse the repository at this point in the history
…r type

This applies the rule ReturnTypeFromStrictBoolReturnExprRector. For
Details see:
https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromstrictboolreturnexprrector

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
  • Loading branch information
ziegenberg committed Jun 18, 2024
1 parent 49262ad commit 3a2cd41
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/CSSList/AtRuleBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function render(OutputFormat $oOutputFormat)
/**
* @return bool
*/
public function isRootList()
public function isRootList(): bool
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSSList/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function render(OutputFormat $oOutputFormat = null)
/**
* @return bool
*/
public function isRootList()
public function isRootList(): bool
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSSList/KeyFrame.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function render(OutputFormat $oOutputFormat)
/**
* @return bool
*/
public function isRootList()
public function isRootList(): bool
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Parsing/ParserState.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ private function inputLeft()
*
* @return bool
*/
public function streql($sString1, $sString2, $bCaseInsensitive = true)
public function streql($sString1, $sString2, $bCaseInsensitive = true): bool
{
if ($bCaseInsensitive) {
return $this->strtolower($sString1) === $this->strtolower($sString2);
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/DeclarationBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function setSelectors($mSelector, $oList = null)
*
* @return bool
*/
public function removeSelector($mSelector)
public function removeSelector($mSelector): bool
{
if ($mSelector instanceof Selector) {
$mSelector = $mSelector->getSelector();
Expand Down
2 changes: 1 addition & 1 deletion src/Value/Size.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function isSize()
/**
* @return bool
*/
public function isRelative()
public function isRelative(): bool
{
if (in_array($this->sUnit, self::RELATIVE_SIZE_UNITS, true)) {
return true;
Expand Down

0 comments on commit 3a2cd41

Please sign in to comment.