@@ -183,7 +183,7 @@ public function endTestSuite(TestSuite $suite)
183
183
* @param int $slowThreshold Test execution time at which a test should be considered slow (milliseconds)
184
184
* @return bool
185
185
*/
186
- protected function isSlow (int $ time , int $ slowThreshold ) : bool
186
+ protected function isSlow (int $ time , int $ slowThreshold ): bool
187
187
{
188
188
return $ time >= $ slowThreshold ;
189
189
}
@@ -206,7 +206,7 @@ protected function addSlowTest(TestCase $test, int $time)
206
206
*
207
207
* @return bool
208
208
*/
209
- protected function hasSlowTests () : bool
209
+ protected function hasSlowTests (): bool
210
210
{
211
211
return !empty ($ this ->slow );
212
212
}
@@ -217,7 +217,7 @@ protected function hasSlowTests() : bool
217
217
* @param float $time
218
218
* @return int
219
219
*/
220
- protected function toMilliseconds (float $ time ) : int
220
+ protected function toMilliseconds (float $ time ): int
221
221
{
222
222
return (int ) round ($ time * 1000 );
223
223
}
@@ -228,7 +228,7 @@ protected function toMilliseconds(float $time) : int
228
228
* @param TestCase $test
229
229
* @return string
230
230
*/
231
- protected function makeLabel (TestCase $ test ) : string
231
+ protected function makeLabel (TestCase $ test ): string
232
232
{
233
233
return sprintf ('%s:%s ' , get_class ($ test ), $ test ->getName ());
234
234
}
@@ -238,7 +238,7 @@ protected function makeLabel(TestCase $test) : string
238
238
*
239
239
* @return int
240
240
*/
241
- protected function getReportLength () : int
241
+ protected function getReportLength (): int
242
242
{
243
243
return min (count ($ this ->slow ), $ this ->reportLength );
244
244
}
@@ -249,7 +249,7 @@ protected function getReportLength() : int
249
249
*
250
250
* @return int
251
251
*/
252
- protected function getHiddenCount () : int
252
+ protected function getHiddenCount (): int
253
253
{
254
254
$ total = count ($ this ->slow );
255
255
$ showing = $ this ->getReportLength ();
@@ -323,7 +323,7 @@ protected function loadOptions(array $options)
323
323
* @param TestCase $test
324
324
* @return int
325
325
*/
326
- protected function getSlowThreshold (TestCase $ test ) : int
326
+ protected function getSlowThreshold (TestCase $ test ): int
327
327
{
328
328
$ ann = $ test ->getAnnotations ();
329
329
0 commit comments