@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $this->twig = $twig ?? new Twig(new FilesystemLoader(__DIR__ . '/../resources/templates')); |
| 25 | 25 | $this->twig->addFilter(new Filter( |
| 26 | 26 | 'whitespace', |
| 27 | - static fn (string $html): ?string => preg_replace('/\s\s+/', '', $html) |
|
| 27 | + static fn(string $html): ?string => preg_replace('/\s\s+/', '', $html) |
|
| 28 | 28 | )); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | try { |
| 35 | 35 | return $this->twig->render($template, $values); |
| 36 | - } catch (LoaderError | RuntimeError | SyntaxError $e) { |
|
| 36 | + } catch (LoaderError | RuntimeError | SyntaxError $e) { |
|
| 37 | 37 | throw new TemplateFailure($e); |
| 38 | 38 | } |
| 39 | 39 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | return \count(array_filter( |
| 42 | 42 | $this->methods, |
| 43 | - static fn (Method $method): bool => $method->hasVisibility($modifier) |
|
| 43 | + static fn(Method $method): bool => $method->hasVisibility($modifier) |
|
| 44 | 44 | )); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | public function addExternalDefinitionsTo(Codebase $codebase): void |
| 28 | 28 | { |
| 29 | - array_map(static fn (RelationshipsResolver $resolver) => $resolver->resolve($codebase), $this->resolvers); |
|
| 29 | + array_map(static fn(RelationshipsResolver $resolver) => $resolver->resolve($codebase), $this->resolvers); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** @param RelationshipsResolver[] $resolvers */ |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $process = new Process([$this->name->command(), '-Tpng', '-o', $outputFile, $inputFile]); |
| 74 | 74 | $process->run(); |
| 75 | - if (! $process->isSuccessful()) { |
|
| 75 | + if (!$process->isSuccessful()) { |
|
| 76 | 76 | throw ImageGenerationFailure::withOutput($process->getErrorOutput()); |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | ->pipe($this->findCode) |
| 53 | 53 | ->pipe($this->parseCode) |
| 54 | 54 | ->pipe($this->createDigraph) |
| 55 | - ->pipe(fn (OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath())); |
|
| 55 | + ->pipe(fn(OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath())); |
|
| 56 | 56 | |
| 57 | 57 | $pipeline->process($input->codebaseDirectory()); |
| 58 | 58 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | ->pipe($this->parseCode) |
| 51 | 51 | ->pipe($this->createDigraph) |
| 52 | 52 | ->pipe($this->createClassDiagram) |
| 53 | - ->pipe(fn (OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath())); |
|
| 53 | + ->pipe(fn(OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath())); |
|
| 54 | 54 | |
| 55 | 55 | $pipeline->process($input->codebaseDirectory()); |
| 56 | 56 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | ->pipe($this->findCode) |
| 48 | 48 | ->pipe($this->parseCode) |
| 49 | 49 | ->pipe($this->calculateStatistics) |
| 50 | - ->pipe(fn (OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath())); |
|
| 50 | + ->pipe(fn(OutputContent $content) => $this->saveFile->saveTo($content, $input->filePath())); |
|
| 51 | 51 | |
| 52 | 52 | $pipeline->process($input->codebaseDirectory()); |
| 53 | 53 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function __construct(string $name) |
| 18 | 18 | { |
| 19 | - if (! \in_array($name, self::VALID_NAMES, true)) { |
|
| 19 | + if (!\in_array($name, self::VALID_NAMES, true)) { |
|
| 20 | 20 | throw UnknownTheme::named($name, self::VALID_NAMES); |
| 21 | 21 | } |
| 22 | 22 | $this->name = $name; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function leaveNode(Node $node) |
| 26 | 26 | { |
| 27 | - if (! $node instanceof Class_) { |
|
| 27 | + if (!$node instanceof Class_) { |
|
| 28 | 28 | return null; |
| 29 | 29 | } |
| 30 | 30 | if ($node->isAnonymous()) { |