Test Failed
Push — master ( bc5b04...424213 )
by Hannes
03:21
created
spec/Name/ExampleNameSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace spec\hanneskod\readmetester\Name;
6 6
 
Please login to merge, or discard this patch.
spec/Name/FilesystemResolverSpec.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace spec\hanneskod\readmetester\Name;
6 6
 
@@ -32,16 +32,16 @@  discard block
 block discarded – undo
32 32
     function it_returns_expanded_paths(NameInterface $baseName, NameInterface $toResolve)
33 33
     {
34 34
         $toResolve->getShortName()->willReturn('');
35
-        $toResolve->getNamespaceName()->willReturn(__DIR__ . '/../Name/FilesystemResolverSpec.php');
36
-        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__ . '/FilesystemResolverSpec.php');
35
+        $toResolve->getNamespaceName()->willReturn(__DIR__.'/../Name/FilesystemResolverSpec.php');
36
+        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__.'/FilesystemResolverSpec.php');
37 37
     }
38 38
 
39 39
     function it_prepends_basepath_if_applicable(NameInterface $baseName, NameInterface $toResolve)
40 40
     {
41 41
         $toResolve->getShortName()->willReturn('');
42 42
         $toResolve->getNamespaceName()->willReturn('FilesystemResolverSpec.php');
43
-        $baseName->getNamespaceName()->willReturn(__DIR__ . '/OtherFile.php');
44
-        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__ . '/FilesystemResolverSpec.php');
43
+        $baseName->getNamespaceName()->willReturn(__DIR__.'/OtherFile.php');
44
+        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__.'/FilesystemResolverSpec.php');
45 45
     }
46 46
 
47 47
     function it_ignores_if_unable_to_resolve(NameInterface $baseName, NameInterface $toResolve)
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function getMatchers(): array
55 55
     {
56 56
         return [
57
-            'resolveNamespaceTo' => function (NameInterface $name, string $namespace) {
57
+            'resolveNamespaceTo' => function(NameInterface $name, string $namespace) {
58 58
                 return $name->getNamespaceName() == $namespace;
59 59
             },
60 60
         ];
Please login to merge, or discard this patch.
spec/Name/NamespaceNameSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace spec\hanneskod\readmetester\Name;
6 6
 
Please login to merge, or discard this patch.
src/SourceFileIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\readmetester;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->filename)) as $fileInfo) {
30 30
             $basePath = (string)realpath($this->filename);
31 31
             if (in_array(strtolower($fileInfo->getExtension()), ['md', 'mdown', 'markdown'])) {
32
-                $displayPath = rtrim($this->filename, '/') . str_replace($basePath, '', $fileInfo->getRealPath());
32
+                $displayPath = rtrim($this->filename, '/').str_replace($basePath, '', $fileInfo->getRealPath());
33 33
                 yield $displayPath => $this->readFile($fileInfo->getRealPath());
34 34
             }
35 35
         }
Please login to merge, or discard this patch.
src/Name/NamespaceName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\readmetester\Name;
6 6
 
Please login to merge, or discard this patch.
src/Name/ExampleName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\readmetester\Name;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function getName(): string
22 22
     {
23
-        return $this->getNamespaceName() . self::NAME_DELIMITER . $this->getShortName();
23
+        return $this->getNamespaceName().self::NAME_DELIMITER.$this->getShortName();
24 24
     }
25 25
 
26 26
     public function getShortName(): string
Please login to merge, or discard this patch.
src/Name/FilesystemResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\readmetester\Name;
6 6
 
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
             return new ExampleName($toResolve->getShortName(), (string)realpath($toResolve->getNamespaceName()));
16 16
         }
17 17
 
18
-        $resolved = dirname($baseName->getNamespaceName()) . DIRECTORY_SEPARATOR . $toResolve->getNamespaceName();
18
+        $resolved = dirname($baseName->getNamespaceName()).DIRECTORY_SEPARATOR.$toResolve->getNamespaceName();
19 19
 
20 20
         if (is_file($resolved)) {
21 21
             return new ExampleName($toResolve->getShortName(), (string)realpath($resolved));
Please login to merge, or discard this patch.