Skip to content

Commit ee0639d

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing PHPdoc return types
1 parent a8a68f1 commit ee0639d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Helper/Helper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public static function formatTime(int|float $secs)
117117
}
118118
}
119119

120+
/**
121+
* @return string
122+
*/
120123
public static function formatMemory(int $memory)
121124
{
122125
if ($memory >= 1024 * 1024 * 1024) {
@@ -134,6 +137,9 @@ public static function formatMemory(int $memory)
134137
return sprintf('%d B', $memory);
135138
}
136139

140+
/**
141+
* @return string
142+
*/
137143
public static function removeDecoration(OutputFormatterInterface $formatter, ?string $string)
138144
{
139145
$isDecorated = $formatter->isDecorated();

Question/Question.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ public function getNormalizer(): ?callable
265265
return $this->normalizer;
266266
}
267267

268+
/**
269+
* @return bool
270+
*/
268271
protected function isAssoc(array $array)
269272
{
270273
return (bool) \count(array_filter(array_keys($array), 'is_string'));

Style/OutputStyle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public function isDebug(): bool
100100
return $this->output->isDebug();
101101
}
102102

103+
/**
104+
* @return OutputInterface
105+
*/
103106
protected function getErrorOutput()
104107
{
105108
if (!$this->output instanceof ConsoleOutputInterface) {

0 commit comments

Comments
 (0)