Completed
Push — master ( 4b8ba8...e8c0c9 )
by BruceScrutinizer
01:58
created
src/Parser/PhpFileParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 final class PhpFileParser implements ParserInterface
16 16
 {
17
-    private const ONLY_ONE_ENTRY=1;
17
+    private const ONLY_ONE_ENTRY = 1;
18 18
 
19 19
     /** @var \PhpParser\Parser  */
20 20
     private $parser;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     private function fetchAst(PathInterface $pathFile): array
76 76
     {
77 77
         $code = $pathFile->get();
78
-        $keyEntryForCache = sha1($code).'.'.base64_encode($pathFile->get());
78
+        $keyEntryForCache = sha1($code) . '.' . base64_encode($pathFile->get());
79 79
 
80 80
         if (!$this->cache->has($keyEntryForCache)) {
81 81
             $code = \file_get_contents($pathFile->get());
Please login to merge, or discard this patch.
src/Result/ResultCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
 
8 8
     /** @var array<ResultInterface>  */
9
-    private $listResult ;
9
+    private $listResult;
10 10
 
11 11
     public function __construct()
12 12
     {
Please login to merge, or discard this patch.
src/Parser/Node/PhpNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
         $this->matchKey = new BooleanMatchKey();
60 60
         $this->matchValue = new BooleanMatchValue();
61 61
 
62
-        $this->listNodeProcessor[UseUse::class] = static function (Node $node): string {
62
+        $this->listNodeProcessor[UseUse::class] = static function(Node $node): string {
63 63
 
64 64
             /** @var UseUse $node*/
65 65
             return $node->name->toCodeString();
66 66
         };
67 67
 
68
-        $this->listNodeProcessor[FullyQualified::class] = static function (Node $node): string {
68
+        $this->listNodeProcessor[FullyQualified::class] = static function(Node $node): string {
69 69
 
70 70
             /** @var FullyQualified $node*/
71 71
             return $node->toCodeString();
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
     private function pushError(Entry $val, Node $node): void
162 162
     {
163
-        $err = new ErrorResult($node->getLine(), $val->get(). \PHP_EOL, self::ERR);
163
+        $err = new ErrorResult($node->getLine(), $val->get() . \PHP_EOL, self::ERR);
164 164
         $this->resultCollector->addResult($err);
165 165
     }
166 166
 
Please login to merge, or discard this patch.
src/Result/ErrorResult.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(int $line, string $use, int $type)
18 18
     {
19
-        $this->line =  $line;
19
+        $this->line = $line;
20 20
         $this->use = $use;
21 21
         $this->type = $type;
22 22
     }
Please login to merge, or discard this patch.