@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | /** |
238 | 238 | * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException |
239 | 239 | */ |
240 | - function ($left, $right) { |
|
240 | + function($left, $right) { |
|
241 | 241 | return $this->cmpDefectPriorityAndTime($left, $right); |
242 | 242 | } |
243 | 243 | ); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException |
254 | 254 | */ |
255 | - function ($left, $right) { |
|
255 | + function($left, $right) { |
|
256 | 256 | return $this->cmpDuration($left, $right); |
257 | 257 | } |
258 | 258 | ); |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | /** |
268 | 268 | * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException |
269 | 269 | */ |
270 | - function ($left, $right) { |
|
270 | + function($left, $right) { |
|
271 | 271 | return $this->cmpSize($left, $right); |
272 | 272 | } |
273 | 273 | ); |
@@ -164,7 +164,7 @@ |
||
164 | 164 | // @codeCoverageIgnoreEnd |
165 | 165 | |
166 | 166 | $cache = ErrorHandler::invokeIgnoringWarnings( |
167 | - static function () use ($cacheData) { |
|
167 | + static function() use ($cacheData) { |
|
168 | 168 | return @unserialize($cacheData, ['allowed_classes' => [self::class]]); |
169 | 169 | } |
170 | 170 | ); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | parent::__construct($iterator); |
33 | 33 | |
34 | 34 | foreach ($suite->getGroupDetails() as $group => $tests) { |
35 | - if (in_array((string) $group, $groups, true)) { |
|
35 | + if (in_array((string)$group, $groups, true)) { |
|
36 | 36 | $testHashes = array_map( |
37 | 37 | 'spl_object_hash', |
38 | 38 | $tests |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $accepted = $set >= $this->filterMin && $set <= $this->filterMax; |
81 | 81 | } |
82 | 82 | |
83 | - return (bool) $accepted; |
|
83 | + return (bool)$accepted; |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | $matches[1] |
100 | 100 | ); |
101 | 101 | |
102 | - $this->filterMin = (int) $matches[2]; |
|
103 | - $this->filterMax = (int) $matches[3]; |
|
102 | + $this->filterMin = (int)$matches[2]; |
|
103 | + $this->filterMax = (int)$matches[3]; |
|
104 | 104 | } else { |
105 | 105 | $filter = sprintf( |
106 | 106 | '%s.*with data set #%s$', |
@@ -161,13 +161,13 @@ |
||
161 | 161 | |
162 | 162 | case 'callable': |
163 | 163 | case 'closure': |
164 | - return static function (): void { |
|
164 | + return static function(): void { |
|
165 | 165 | }; |
166 | 166 | |
167 | 167 | case 'traversable': |
168 | 168 | case 'generator': |
169 | 169 | case 'iterable': |
170 | - $generator = static function (): \Generator { |
|
170 | + $generator = static function(): \Generator { |
|
171 | 171 | yield; |
172 | 172 | }; |
173 | 173 |
@@ -116,8 +116,8 @@ discard block |
||
116 | 116 | |
117 | 117 | if ($this->afterMatchBuilderId !== null) { |
118 | 118 | $matcher = $invocation->getObject() |
119 | - ->__phpunit_getInvocationHandler() |
|
120 | - ->lookupMatcher($this->afterMatchBuilderId); |
|
119 | + ->__phpunit_getInvocationHandler() |
|
120 | + ->lookupMatcher($this->afterMatchBuilderId); |
|
121 | 121 | |
122 | 122 | if (!$matcher) { |
123 | 123 | throw new MatchBuilderNotFoundException($this->afterMatchBuilderId); |
@@ -166,8 +166,8 @@ discard block |
||
166 | 166 | { |
167 | 167 | if ($this->afterMatchBuilderId !== null) { |
168 | 168 | $matcher = $invocation->getObject() |
169 | - ->__phpunit_getInvocationHandler() |
|
170 | - ->lookupMatcher($this->afterMatchBuilderId); |
|
169 | + ->__phpunit_getInvocationHandler() |
|
170 | + ->lookupMatcher($this->afterMatchBuilderId); |
|
171 | 171 | |
172 | 172 | if (!$matcher) { |
173 | 173 | throw new MatchBuilderNotFoundException($this->afterMatchBuilderId); |
@@ -902,7 +902,7 @@ |
||
902 | 902 | if ($className === '') { |
903 | 903 | do { |
904 | 904 | $className = $prefix . $type . '_' . |
905 | - substr(md5((string) mt_rand()), 0, 8); |
|
905 | + substr(md5((string) mt_rand()), 0, 8); |
|
906 | 906 | } while (class_exists($className, false)); |
907 | 907 | } |
908 | 908 |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | |
118 | 118 | if (null !== $methods) { |
119 | 119 | foreach ($methods as $method) { |
120 | - if (!preg_match('~[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*~', (string) $method)) { |
|
121 | - throw new InvalidMethodNameException((string) $method); |
|
120 | + if (!preg_match('~[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*~', (string)$method)) { |
|
121 | + throw new InvalidMethodNameException((string)$method); |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } catch (\ReflectionException $e) { |
135 | 135 | throw new ReflectionException( |
136 | 136 | $e->getMessage(), |
137 | - (int) $e->getCode(), |
|
137 | + (int)$e->getCode(), |
|
138 | 138 | $e |
139 | 139 | ); |
140 | 140 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } catch (\ReflectionException $e) { |
203 | 203 | throw new ReflectionException( |
204 | 204 | $e->getMessage(), |
205 | - (int) $e->getCode(), |
|
205 | + (int)$e->getCode(), |
|
206 | 206 | $e |
207 | 207 | ); |
208 | 208 | } |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | } catch (SoapFault $e) { |
387 | 387 | throw new RuntimeException( |
388 | 388 | $e->getMessage(), |
389 | - (int) $e->getCode(), |
|
389 | + (int)$e->getCode(), |
|
390 | 390 | $e |
391 | 391 | ); |
392 | 392 | } |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | } catch (\ReflectionException $e) { |
474 | 474 | throw new ReflectionException( |
475 | 475 | $e->getMessage(), |
476 | - (int) $e->getCode(), |
|
476 | + (int)$e->getCode(), |
|
477 | 477 | $e |
478 | 478 | ); |
479 | 479 | } |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | } catch (\ReflectionException $e) { |
504 | 504 | throw new ReflectionException( |
505 | 505 | $e->getMessage(), |
506 | - (int) $e->getCode(), |
|
506 | + (int)$e->getCode(), |
|
507 | 507 | $e |
508 | 508 | ); |
509 | 509 | } |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | } catch (\ReflectionException $e) { |
534 | 534 | throw new ReflectionException( |
535 | 535 | $e->getMessage(), |
536 | - (int) $e->getCode(), |
|
536 | + (int)$e->getCode(), |
|
537 | 537 | $e |
538 | 538 | ); |
539 | 539 | } |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | } catch (\ReflectionException $e) { |
564 | 564 | throw new ReflectionException( |
565 | 565 | $e->getMessage(), |
566 | - (int) $e->getCode(), |
|
566 | + (int)$e->getCode(), |
|
567 | 567 | $e |
568 | 568 | ); |
569 | 569 | } |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | } catch (\ReflectionException $e) { |
601 | 601 | throw new ReflectionException( |
602 | 602 | $e->getMessage(), |
603 | - (int) $e->getCode(), |
|
603 | + (int)$e->getCode(), |
|
604 | 604 | $e |
605 | 605 | ); |
606 | 606 | } |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | } catch (\ReflectionException $e) { |
628 | 628 | throw new ReflectionException( |
629 | 629 | $e->getMessage(), |
630 | - (int) $e->getCode(), |
|
630 | + (int)$e->getCode(), |
|
631 | 631 | $e |
632 | 632 | ); |
633 | 633 | } |
@@ -694,7 +694,7 @@ discard block |
||
694 | 694 | } catch (\ReflectionException $e) { |
695 | 695 | throw new ReflectionException( |
696 | 696 | $e->getMessage(), |
697 | - (int) $e->getCode(), |
|
697 | + (int)$e->getCode(), |
|
698 | 698 | $e |
699 | 699 | ); |
700 | 700 | } |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | } catch (\ReflectionException $e) { |
717 | 717 | throw new ReflectionException( |
718 | 718 | $e->getMessage(), |
719 | - (int) $e->getCode(), |
|
719 | + (int)$e->getCode(), |
|
720 | 720 | $e |
721 | 721 | ); |
722 | 722 | } |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | } catch (\ReflectionException $e) { |
733 | 733 | throw new ReflectionException( |
734 | 734 | $e->getMessage(), |
735 | - (int) $e->getCode(), |
|
735 | + (int)$e->getCode(), |
|
736 | 736 | $e |
737 | 737 | ); |
738 | 738 | } |
@@ -773,7 +773,7 @@ discard block |
||
773 | 773 | } catch (\ReflectionException $e) { |
774 | 774 | throw new ReflectionException( |
775 | 775 | $e->getMessage(), |
776 | - (int) $e->getCode(), |
|
776 | + (int)$e->getCode(), |
|
777 | 777 | $e |
778 | 778 | ); |
779 | 779 | } |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | } catch (\ReflectionException $e) { |
813 | 813 | throw new ReflectionException( |
814 | 814 | $e->getMessage(), |
815 | - (int) $e->getCode(), |
|
815 | + (int)$e->getCode(), |
|
816 | 816 | $e |
817 | 817 | ); |
818 | 818 | } |
@@ -902,7 +902,7 @@ discard block |
||
902 | 902 | if ($className === '') { |
903 | 903 | do { |
904 | 904 | $className = $prefix . $type . '_' . |
905 | - substr(md5((string) mt_rand()), 0, 8); |
|
905 | + substr(md5((string)mt_rand()), 0, 8); |
|
906 | 906 | } while (class_exists($className, false)); |
907 | 907 | } |
908 | 908 | |
@@ -973,7 +973,7 @@ discard block |
||
973 | 973 | } catch (TemplateException $e) { |
974 | 974 | throw new RuntimeException( |
975 | 975 | $e->getMessage(), |
976 | - (int) $e->getCode(), |
|
976 | + (int)$e->getCode(), |
|
977 | 977 | $e |
978 | 978 | ); |
979 | 979 | } |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | } catch (TemplateException $e) { |
253 | 253 | throw new RuntimeException( |
254 | 254 | $e->getMessage(), |
255 | - (int) $e->getCode(), |
|
255 | + (int)$e->getCode(), |
|
256 | 256 | $e |
257 | 257 | ); |
258 | 258 | } |
@@ -369,12 +369,12 @@ discard block |
||
369 | 369 | private static function exportDefaultValue(ReflectionParameter $parameter): string |
370 | 370 | { |
371 | 371 | try { |
372 | - return (string) var_export($parameter->getDefaultValue(), true); |
|
372 | + return (string)var_export($parameter->getDefaultValue(), true); |
|
373 | 373 | // @codeCoverageIgnoreStart |
374 | 374 | } catch (\ReflectionException $e) { |
375 | 375 | throw new ReflectionException( |
376 | 376 | $e->getMessage(), |
377 | - (int) $e->getCode(), |
|
377 | + (int)$e->getCode(), |
|
378 | 378 | $e |
379 | 379 | ); |
380 | 380 | } |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | $types = []; |
387 | 387 | |
388 | 388 | foreach ($union->getTypes() as $type) { |
389 | - if ((string) $type === 'self') { |
|
389 | + if ((string)$type === 'self') { |
|
390 | 390 | $types[] = $self; |
391 | 391 | } else { |
392 | 392 | $types[] = $type; |
@@ -235,7 +235,7 @@ |
||
235 | 235 | } |
236 | 236 | |
237 | 237 | $configurableMethodNames = array_map( |
238 | - static function (ConfigurableMethod $configurable) { |
|
238 | + static function(ConfigurableMethod $configurable) { |
|
239 | 239 | return strtolower($configurable->getName()); |
240 | 240 | }, |
241 | 241 | $this->configurableMethods |