Test Failed
Push — master ( a380eb...a52ae2 )
by Hannes
01:59
created
spec/Name/FilesystemNameResolverSpec.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/FilesystemNameResolverSpec.php');
36
-        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__ . '/FilesystemNameResolverSpec.php');
35
+        $toResolve->getNamespaceName()->willReturn(__DIR__.'/../Name/FilesystemNameResolverSpec.php');
36
+        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__.'/FilesystemNameResolverSpec.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('FilesystemNameResolverSpec.php');
43
-        $baseName->getNamespaceName()->willReturn(__DIR__ . '/OtherFile.php');
44
-        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__ . '/FilesystemNameResolverSpec.php');
43
+        $baseName->getNamespaceName()->willReturn(__DIR__.'/OtherFile.php');
44
+        $this->resolve($baseName, $toResolve)->shouldResolveNamespaceTo(__DIR__.'/FilesystemNameResolverSpec.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.
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 getCompleteName(): 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/AnonymousName.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
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     public function getCompleteName(): string
18 18
     {
19
-        return $this->getNamespaceName() . self::NAME_DELIMITER . $this->getShortName();
19
+        return $this->getNamespaceName().self::NAME_DELIMITER.$this->getShortName();
20 20
     }
21 21
 
22 22
     public function getShortName(): string
Please login to merge, or discard this patch.