@@ -124,7 +124,7 @@ protected function isSlow(int $time, int $slowThreshold): bool
124
124
*
125
125
* @param int $time Test execution time that was considered slow, in milliseconds
126
126
*/
127
- protected function addSlowTest (string $ test , int $ time )
127
+ protected function addSlowTest (string $ test , int $ time ): void
128
128
{
129
129
$ label = $ this ->makeLabel ($ test );
130
130
@@ -193,15 +193,15 @@ protected function getHiddenCount(): int
193
193
/**
194
194
* Renders slowness report header.
195
195
*/
196
- protected function renderHeader ()
196
+ protected function renderHeader (): void
197
197
{
198
198
echo sprintf ("\n\nYou should really speed up these slow tests (>%sms)... \n" , $ this ->slowThreshold );
199
199
}
200
200
201
201
/**
202
202
* Renders slowness report body.
203
203
*/
204
- protected function renderBody ()
204
+ protected function renderBody (): void
205
205
{
206
206
$ slowTests = $ this ->slow ;
207
207
@@ -217,7 +217,7 @@ protected function renderBody()
217
217
/**
218
218
* Renders slowness report footer.
219
219
*/
220
- protected function renderFooter ()
220
+ protected function renderFooter (): void
221
221
{
222
222
if ($ hidden = $ this ->getHiddenCount ()) {
223
223
printf ("...and there %s %s more above your threshold hidden from view \n" , $ hidden == 1 ? 'is ' : 'are ' , $ hidden );
@@ -227,7 +227,7 @@ protected function renderFooter()
227
227
/**
228
228
* Populate options into class internals.
229
229
*/
230
- protected function loadOptions (array $ options )
230
+ protected function loadOptions (array $ options ): void
231
231
{
232
232
$ this ->slowThreshold = $ options ['slowThreshold ' ] ?? 500 ;
233
233
$ this ->reportLength = $ options ['reportLength ' ] ?? 10 ;
0 commit comments