Passed
Push — object_from_docblock ( 2094fa )
by Luis
09:13
created
src/Templates/TemplateEngine.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Code/Definition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Parser/Code/RelationshipsResolvers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/Processors/ImageProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generators/DigraphGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generators/ClassDiagramGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Generators/StatisticsGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Graphviz/Styles/ThemeName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Parser/Code/Visitors/ClassVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.