Skip to content

Commit 59b5319

Browse files
committed
[CLEANUP] Rector: Change return type based on strict scalar returns - string, int, float or bool
This applies the rule ReturnTypeFromStrictScalarReturnExprRector. For Details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromstrictscalarreturnexprrector Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 3a34389 commit 59b5319

File tree

1 file changed

+12
-41
lines changed

1 file changed

+12
-41
lines changed

src/OutputFormatter.php

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -36,102 +36,73 @@ public function space($sName, $sType = null): string
3636
return $this->prepareSpace($sSpaceString);
3737
}
3838

39-
/**
40-
* @return string
41-
*/
42-
public function spaceAfterRuleName()
39+
public function spaceAfterRuleName(): string
4340
{
4441
return $this->space('AfterRuleName');
4542
}
4643

47-
/**
48-
* @return string
49-
*/
50-
public function spaceBeforeRules()
44+
public function spaceBeforeRules(): string
5145
{
5246
return $this->space('BeforeRules');
5347
}
5448

55-
/**
56-
* @return string
57-
*/
58-
public function spaceAfterRules()
49+
public function spaceAfterRules(): string
5950
{
6051
return $this->space('AfterRules');
6152
}
6253

63-
/**
64-
* @return string
65-
*/
66-
public function spaceBetweenRules()
54+
public function spaceBetweenRules(): string
6755
{
6856
return $this->space('BetweenRules');
6957
}
7058

71-
/**
72-
* @return string
73-
*/
74-
public function spaceBeforeBlocks()
59+
public function spaceBeforeBlocks(): string
7560
{
7661
return $this->space('BeforeBlocks');
7762
}
7863

79-
/**
80-
* @return string
81-
*/
82-
public function spaceAfterBlocks()
64+
public function spaceAfterBlocks(): string
8365
{
8466
return $this->space('AfterBlocks');
8567
}
8668

87-
/**
88-
* @return string
89-
*/
90-
public function spaceBetweenBlocks()
69+
public function spaceBetweenBlocks(): string
9170
{
9271
return $this->space('BetweenBlocks');
9372
}
9473

95-
/**
96-
* @return string
97-
*/
98-
public function spaceBeforeSelectorSeparator()
74+
public function spaceBeforeSelectorSeparator(): string
9975
{
10076
return $this->space('BeforeSelectorSeparator');
10177
}
10278

10379
/**
10480
* @return string
10581
*/
106-
public function spaceAfterSelectorSeparator()
82+
public function spaceAfterSelectorSeparator(): string
10783
{
10884
return $this->space('AfterSelectorSeparator');
10985
}
11086

11187
/**
11288
* @param string $sSeparator
11389
*
114-
* @return string
11590
*/
116-
public function spaceBeforeListArgumentSeparator($sSeparator)
91+
public function spaceBeforeListArgumentSeparator($sSeparator): string
11792
{
11893
return $this->space('BeforeListArgumentSeparator', $sSeparator);
11994
}
12095

12196
/**
12297
* @param string $sSeparator
12398
*
124-
* @return string
12599
*/
126-
public function spaceAfterListArgumentSeparator($sSeparator)
100+
public function spaceAfterListArgumentSeparator($sSeparator): string
127101
{
128102
return $this->space('AfterListArgumentSeparator', $sSeparator);
129103
}
130104

131-
/**
132-
* @return string
133-
*/
134-
public function spaceBeforeOpeningBrace()
105+
public function spaceBeforeOpeningBrace(): string
135106
{
136107
return $this->space('BeforeOpeningBrace');
137108
}

0 commit comments

Comments
 (0)