@@ -21,7 +21,7 @@ |
||
21 | 21 | $listeners = $this->listenerProvider->getListenersForEvent($event); |
22 | 22 | |
23 | 23 | array_map( |
24 | - function (callable $listener) use ($event): void { |
|
24 | + function(callable $listener) use ($event): void { |
|
25 | 25 | $listener($event); |
26 | 26 | }, |
27 | 27 | $listeners |
@@ -32,12 +32,12 @@ |
||
32 | 32 | $resultsParser = new ResultAnalyser($this->collectedFactory); |
33 | 33 | |
34 | 34 | array_map( |
35 | - fn ($currentParser) => $cumulativeParserResult->append($currentParser->parseFile($filePath)), |
|
35 | + fn($currentParser) => $cumulativeParserResult->append($currentParser->parseFile($filePath)), |
|
36 | 36 | $this->parserList |
37 | 37 | ); |
38 | 38 | |
39 | 39 | array_map( |
40 | - fn ($currentParser) => $resultsParser->append($currentParser), |
|
40 | + fn($currentParser) => $resultsParser->append($currentParser), |
|
41 | 41 | iterator_to_array($cumulativeParserResult->getResultCollectionReadable(), true) |
42 | 42 | ); |
43 | 43 |
@@ -62,8 +62,8 @@ |
||
62 | 62 | $totalResult = new ResultAnalyser($this->collectedFactory); |
63 | 63 | |
64 | 64 | \array_map( |
65 | - fn (PathInterface $file) => \array_map( |
|
66 | - fn (ResultProcessedFileInterface $processedFile) => $totalResult->append($processedFile), |
|
65 | + fn(PathInterface $file) => \array_map( |
|
66 | + fn(ResultProcessedFileInterface $processedFile) => $totalResult->append($processedFile), |
|
67 | 67 | \iterator_to_array($analyser->execute($file)->getResultCollected()->getIterator()) |
68 | 68 | ), |
69 | 69 | $filesToAnalyser->getFileLoaded() |
@@ -117,7 +117,7 @@ |
||
117 | 117 | /** |
118 | 118 | * @param array-key $key |
119 | 119 | * @param mixed $value |
120 | - */ |
|
120 | + */ |
|
121 | 121 | function (string $key, $value) use ($db, $fetchStrategy) { |
122 | 122 | |
123 | 123 | /** @var string $checkValue */ |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | |
49 | 49 | public function load(): void |
50 | 50 | { |
51 | - $fetchValue = function (string|int $key, string|int $value): string { |
|
51 | + $fetchValue = function(string | int $key, string | int $value): string { |
|
52 | 52 | return (string)$value; |
53 | 53 | }; |
54 | 54 | |
55 | 55 | /** @psalm-suppress MissingClosureParamType */ |
56 | - $fetchKey = function (string|int $key, $value): string { |
|
56 | + $fetchKey = function(string | int $key, $value): string { |
|
57 | 57 | return (string)$key; |
58 | 58 | }; |
59 | 59 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | /** @psalm-suppress UnusedVariable */ |
66 | 66 | array_map( |
67 | - function (string $class) use ($internalClass): void { |
|
67 | + function(string $class) use ($internalClass): void { |
|
68 | 68 | $aClass = new ReflectionClass($class); |
69 | 69 | if ($aClass->isInternal()) { |
70 | 70 | $internalClass[$class] = $aClass->getName(); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @param array-key $key |
119 | 119 | * @param mixed $value |
120 | 120 | */ |
121 | - function (string $key, $value) use ($db, $fetchStrategy) { |
|
121 | + function(string $key, $value) use ($db, $fetchStrategy) { |
|
122 | 122 | |
123 | 123 | /** @var string $checkValue */ |
124 | 124 | $checkValue = $fetchStrategy($key, $value); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function __sleep(): array |
49 | 49 | { |
50 | - throw new \BadMethodCallException('Cannot serialize '.__CLASS__); |
|
50 | + throw new \BadMethodCallException('Cannot serialize ' . __CLASS__); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function __wakeup(): void |
60 | 60 | { |
61 | - throw new \BadMethodCallException('Cannot unserialize '.__CLASS__); |
|
61 | + throw new \BadMethodCallException('Cannot unserialize ' . __CLASS__); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $builtInReporters[] = sprintf( |
42 | 42 | '%s\\%s%s', |
43 | 43 | __NAMESPACE__, |
44 | - $relativeNamespace ? $relativeNamespace.'\\' : '', |
|
44 | + $relativeNamespace ? $relativeNamespace . '\\' : '', |
|
45 | 45 | $file->getBasename('.php') |
46 | 46 | ); |
47 | 47 | } |
@@ -53,6 +53,6 @@ |
||
53 | 53 | */ |
54 | 54 | protected function toRegex(string $str) |
55 | 55 | { |
56 | - return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/'; |
|
56 | + return $this->isRegex($str) ? $str : '/' . preg_quote($str, '/') . '/'; |
|
57 | 57 | } |
58 | 58 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | return $this->prettyString; |
55 | 55 | } |
56 | 56 | |
57 | - return (string) $this; |
|
57 | + return (string)$this; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |