Skip to content

Commit 3a34389

Browse files
authored
[CLEANUP] Rector: Add strict return type based native function or class method return (#602)
This applies the rule ReturnTypeFromStrictNativeCallRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromstrictnativecallrector Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent b3a5b52 commit 3a34389

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/OutputFormatter.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ public function __construct(OutputFormat $oFormat)
2020
/**
2121
* @param string $sName
2222
* @param string|null $sType
23-
*
24-
* @return string
2523
*/
26-
public function space($sName, $sType = null)
24+
public function space($sName, $sType = null): string
2725
{
2826
$sSpaceString = $this->oFormat->get("Space$sName");
2927
// If $sSpaceString is an array, we have multiple values configured
@@ -235,10 +233,8 @@ public function comments(Commentable $oCommentable): string
235233

236234
/**
237235
* @param string $sSpaceString
238-
*
239-
* @return string
240236
*/
241-
private function prepareSpace($sSpaceString)
237+
private function prepareSpace($sSpaceString): string
242238
{
243239
return str_replace("\n", "\n" . $this->indent(), $sSpaceString);
244240
}

0 commit comments

Comments
 (0)