Passed
Push — master ( 98c468...65840f )
by Christian
02:19
created
src/Report/Console/TimePeriodFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
         $weeksPassed = floor($daysPassed / 7);
27 27
         $daysPassed = $daysPassed % 7;
28 28
 
29
-        $timePassed = $daysPassed.' days';
29
+        $timePassed = $daysPassed . ' days';
30 30
         if ($weeksPassed) {
31
-            $timePassed = $weeksPassed.' weeks and '.$timePassed;
31
+            $timePassed = $weeksPassed . ' weeks and ' . $timePassed;
32 32
         }
33 33
 
34 34
         return $timePassed;
Please login to merge, or discard this patch.
src/Report/Html/TemplateFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
     public static function getTemplate(string $file): \Text_Template
8 8
     {
9
-        return new \Text_Template(__DIR__.'/Template/'.$file, '{{', '}}');
9
+        return new \Text_Template(__DIR__ . '/Template/' . $file, '{{', '}}');
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
src/FilePosition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
     public static function createPosition(string $file, int $line): string
8 8
     {
9
-        return $file.':'.$line;
9
+        return $file . ':' . $line;
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
src/Source/TombstoneVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
     private function visitMethodNode(ClassMethod $node): void
71 71
     {
72
-        $methodName = $this->currentClass.($node->isStatic() ? '::' : '->').$node->name;
72
+        $methodName = $this->currentClass . ($node->isStatic() ? '::' : '->') . $node->name;
73 73
         $this->currentMethod[] = $methodName;
74 74
     }
75 75
 
Please login to merge, or discard this patch.
src/PathTools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             $path = preg_replace('#^(\\.[/\\\\])+#', '', $path);
21 21
         }
22 22
 
23
-        return self::normalizeDirectorySeparator($rootDir.($path ? DIRECTORY_SEPARATOR.$path : ''));
23
+        return self::normalizeDirectorySeparator($rootDir . ($path ? DIRECTORY_SEPARATOR.$path : ''));
24 24
     }
25 25
 
26 26
     private static function normalizeDirectorySeparator(string $path): string
Please login to merge, or discard this patch.
src/Report/PhpReportGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
     public function generate(AnalyzerResult $result): void
25 25
     {
26 26
         $serialized = str_replace("'", "\\'", serialize($result));
27
-        file_put_contents($this->filePath, "<?php return unserialize('".$serialized."');");
27
+        file_put_contents($this->filePath, "<?php return unserialize('" . $serialized . "');");
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Report/ReportExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
             }
33 33
             $generatorName = $reportGenerator->getName();
34 34
             ++$i;
35
-            $this->output->write('Generate '.$generatorName.' report... ');
35
+            $this->output->write('Generate ' . $generatorName . ' report... ');
36 36
             try {
37 37
                 $reportGenerator->generate($result);
38 38
                 $this->output->writeln('Done');
39 39
             } catch (\Exception $e) {
40
-                $this->output->writeln('Could not generate '.$generatorName.' report: '.$e->getMessage());
40
+                $this->output->writeln('Could not generate ' . $generatorName . ' report: ' . $e->getMessage());
41 41
             }
42 42
         }
43 43
     }
Please login to merge, or discard this patch.
src/Source/TombstoneExtractor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,19 +36,19 @@
 block discarded – undo
36 36
     {
37 37
         $this->visitor->setCurrentFile($filePath);
38 38
         if (!is_readable($filePath)) {
39
-            throw new TombstoneExtractionException('File "'.$filePath.'" is not readable.');
39
+            throw new TombstoneExtractionException('File "' . $filePath . '" is not readable.');
40 40
         }
41 41
 
42 42
         try {
43 43
             $code = file_get_contents($filePath);
44 44
             $stmts = $this->parser->parse($code);
45 45
             if (null === $stmts) {
46
-                throw new TombstoneExtractionException('PHP code in "'.$filePath.'" could not be parsed.');
46
+                throw new TombstoneExtractionException('PHP code in "' . $filePath . '" could not be parsed.');
47 47
             }
48 48
 
49 49
             $this->traverser->traverse($stmts);
50 50
         } catch (Error $e) {
51
-            throw new TombstoneExtractionException('PHP code in "'.$filePath.'" could not be parsed.', null, $e);
51
+            throw new TombstoneExtractionException('PHP code in "' . $filePath . '" could not be parsed.', null, $e);
52 52
         }
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
src/Config/YamlConfigProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         }
30 30
 
31 31
         if (isset($config['source']['directories'])) {
32
-            $config['source']['directories'] = array_map(function (string $directory) use ($configFileDir): string {
32
+            $config['source']['directories'] = array_map(function(string $directory) use ($configFileDir): string {
33 33
                 return PathTools::makePathAbsolute($directory, $configFileDir);
34 34
             }, $config['source']['directories']);
35 35
         }
Please login to merge, or discard this patch.