Skip to content

Commit c4684a9

Browse files
committed
Return type coding standard
1 parent ae369e5 commit c4684a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function endTestSuite(TestSuite $suite)
183183
* @param int $slowThreshold Test execution time at which a test should be considered slow (milliseconds)
184184
* @return bool
185185
*/
186-
protected function isSlow(int $time, int $slowThreshold) : bool
186+
protected function isSlow(int $time, int $slowThreshold): bool
187187
{
188188
return $time >= $slowThreshold;
189189
}
@@ -206,7 +206,7 @@ protected function addSlowTest(TestCase $test, int $time)
206206
*
207207
* @return bool
208208
*/
209-
protected function hasSlowTests() : bool
209+
protected function hasSlowTests(): bool
210210
{
211211
return !empty($this->slow);
212212
}
@@ -217,7 +217,7 @@ protected function hasSlowTests() : bool
217217
* @param float $time
218218
* @return int
219219
*/
220-
protected function toMilliseconds(float $time) : int
220+
protected function toMilliseconds(float $time): int
221221
{
222222
return (int) round($time * 1000);
223223
}
@@ -228,7 +228,7 @@ protected function toMilliseconds(float $time) : int
228228
* @param TestCase $test
229229
* @return string
230230
*/
231-
protected function makeLabel(TestCase $test) : string
231+
protected function makeLabel(TestCase $test): string
232232
{
233233
return sprintf('%s:%s', get_class($test), $test->getName());
234234
}
@@ -238,7 +238,7 @@ protected function makeLabel(TestCase $test) : string
238238
*
239239
* @return int
240240
*/
241-
protected function getReportLength() : int
241+
protected function getReportLength(): int
242242
{
243243
return min(count($this->slow), $this->reportLength);
244244
}
@@ -249,7 +249,7 @@ protected function getReportLength() : int
249249
*
250250
* @return int
251251
*/
252-
protected function getHiddenCount() : int
252+
protected function getHiddenCount(): int
253253
{
254254
$total = count($this->slow);
255255
$showing = $this->getReportLength();
@@ -323,7 +323,7 @@ protected function loadOptions(array $options)
323323
* @param TestCase $test
324324
* @return int
325325
*/
326-
protected function getSlowThreshold(TestCase $test) : int
326+
protected function getSlowThreshold(TestCase $test): int
327327
{
328328
$ann = $test->getAnnotations();
329329

0 commit comments

Comments
 (0)