Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Translator/tests/TranslatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $container = new Container();
78 78
         $container->bind(TranslatorConfig::class, new TranslatorConfig([
79 79
             'locale'    => 'en',
80
-            'directory' => __DIR__ . '/fixtures/locales/',
80
+            'directory' => __DIR__.'/fixtures/locales/',
81 81
             'loaders'   => [
82 82
                 'php' => PhpFileLoader::class,
83 83
                 'po'  => PoFileLoader::class,
Please login to merge, or discard this patch.
src/Translator/tests/TraitTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         $this->container->bind(TranslatorConfig::class, new TranslatorConfig([
46 46
             'locale'    => 'en',
47
-            'directory' => __DIR__ . '/fixtures/locales/',
47
+            'directory' => __DIR__.'/fixtures/locales/',
48 48
             'loaders'   => [
49 49
                 'php' => PhpFileLoader::class,
50 50
                 'po'  => PoFileLoader::class,
Please login to merge, or discard this patch.
src/Views/tests/LoaderTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $this->expectException(LoaderException::class);
25 25
 
26 26
         $loader = new ViewLoader([
27
-            'default' => __DIR__ . '/fixtures/default',
27
+            'default' => __DIR__.'/fixtures/default',
28 28
         ]);
29 29
 
30 30
         $loader->exists('view');
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->expectException(LoaderException::class);
36 36
 
37 37
         $loader = new ViewLoader([
38
-            'default' => __DIR__ . '/fixtures/default',
38
+            'default' => __DIR__.'/fixtures/default',
39 39
         ]);
40 40
 
41 41
         $loader->list();
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $this->expectException(LoaderException::class);
47 47
 
48 48
         $loader = new ViewLoader([
49
-            'default' => __DIR__ . '/fixtures/default',
49
+            'default' => __DIR__.'/fixtures/default',
50 50
         ]);
51 51
 
52 52
         $loader->load('view');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function testExists(): void
56 56
     {
57 57
         $loader = new ViewLoader([
58
-            'default' => __DIR__ . '/fixtures/default',
58
+            'default' => __DIR__.'/fixtures/default',
59 59
         ]);
60 60
 
61 61
         $loader = $loader->withExtension('php');
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function testList(): void
87 87
     {
88 88
         $loader = new ViewLoader([
89
-            'default' => __DIR__ . '/fixtures/default',
89
+            'default' => __DIR__.'/fixtures/default',
90 90
         ]);
91 91
 
92 92
         $loader = $loader->withExtension('php');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $this->expectException(LoaderException::class);
104 104
 
105 105
         $loader = new ViewLoader([
106
-            'default' => __DIR__ . '/fixtures/default',
106
+            'default' => __DIR__.'/fixtures/default',
107 107
         ]);
108 108
 
109 109
         $loader = $loader->withExtension('php');
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function testLoad(): void
147 147
     {
148 148
         $loader = new ViewLoader([
149
-            'default' => __DIR__ . '/fixtures/default',
149
+            'default' => __DIR__.'/fixtures/default',
150 150
         ]);
151 151
 
152 152
         $loader = $loader->withExtension('php');
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
     public function testMultipleNamespaces(): void
170 170
     {
171 171
         $loader = new ViewLoader([
172
-            'default' => __DIR__ . '/fixtures/default',
173
-            'other'   => __DIR__ . '/fixtures/other',
172
+            'default' => __DIR__.'/fixtures/default',
173
+            'other'   => __DIR__.'/fixtures/other',
174 174
 
175 175
         ]);
176 176
 
Please login to merge, or discard this patch.
src/Views/tests/ManagerTest.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@
 block discarded – undo
36 36
         $manager->addEngine(new NativeEngine($this->container, 'dark.php'));
37 37
 
38 38
         $ext = [];
39
-        foreach ($manager->getEngines() as $e) {
39
+        foreach ($manager->getEngines() as $e)
40
+        {
40 41
             $ext[] = $e->getLoader()->getExtension();
41 42
         }
42 43
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $manager->addEngine(new NativeEngine($this->container, 'dark.php'));
28 28
 
29 29
         $ext = [];
30
-        foreach ($manager->getEngines() as $e) {
30
+        foreach ($manager->getEngines() as $e){
31 31
             $ext[] = $e->getLoader()->getExtension();
32 32
         }
33 33
 
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
                         'directory' => '/tmp',
123 123
                     ],
124 124
                     'namespaces' => [
125
-                        'default' => __DIR__ . '/fixtures/default',
126
-                        'other' => __DIR__ . '/fixtures/other',
125
+                        'default' => __DIR__.'/fixtures/default',
126
+                        'other' => __DIR__.'/fixtures/other',
127 127
                     ],
128 128
                     'dependencies' => [
129 129
 
Please login to merge, or discard this patch.
src/Views/tests/NativeTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     public function testGet(): void
25 25
     {
26 26
         $loader = new ViewLoader([
27
-            'default' => __DIR__ . '/fixtures/default',
28
-            'other'   => __DIR__ . '/fixtures/other',
27
+            'default' => __DIR__.'/fixtures/default',
28
+            'other'   => __DIR__.'/fixtures/other',
29 29
         ]);
30 30
 
31 31
         $loader = $loader->withExtension('php');
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     public function testRenderWithValue(): void
52 52
     {
53 53
         $loader = new ViewLoader([
54
-            'default' => __DIR__ . '/fixtures/default',
55
-            'other'   => __DIR__ . '/fixtures/other',
54
+            'default' => __DIR__.'/fixtures/default',
55
+            'other'   => __DIR__.'/fixtures/other',
56 56
 
57 57
         ]);
58 58
 
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
         $this->expectException(RenderException::class);
71 71
 
72 72
         $loader = new ViewLoader([
73
-            'default' => __DIR__ . '/fixtures/default',
74
-            'other'   => __DIR__ . '/fixtures/other',
73
+            'default' => __DIR__.'/fixtures/default',
74
+            'other'   => __DIR__.'/fixtures/other',
75 75
 
76 76
         ]);
77 77
 
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
     public function testRenderBufferWithValue(): void
89 89
     {
90 90
         $loader = new ViewLoader([
91
-            'default' => __DIR__ . '/fixtures/default',
92
-            'other'   => __DIR__ . '/fixtures/other',
91
+            'default' => __DIR__.'/fixtures/default',
92
+            'other'   => __DIR__.'/fixtures/other',
93 93
 
94 94
         ]);
95 95
 
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
         $this->expectException(RenderException::class);
108 108
 
109 109
         $loader = new ViewLoader([
110
-            'default' => __DIR__ . '/fixtures/default',
111
-            'other'   => __DIR__ . '/fixtures/other',
110
+            'default' => __DIR__.'/fixtures/default',
111
+            'other'   => __DIR__.'/fixtures/other',
112 112
 
113 113
         ]);
114 114
 
Please login to merge, or discard this patch.
src/Views/tests/CacheTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,8 +130,8 @@
 block discarded – undo
130 130
     protected function getView(ContextInterface $context, string $path): ViewInterface
131 131
     {
132 132
         $loader = new ViewLoader([
133
-            'default' => __DIR__ . '/fixtures/default',
134
-            'other'   => __DIR__ . '/fixtures/other',
133
+            'default' => __DIR__.'/fixtures/default',
134
+            'other'   => __DIR__.'/fixtures/other',
135 135
         ]);
136 136
 
137 137
         $engine = new NativeEngine(new Container());
Please login to merge, or discard this patch.
src/Views/src/Traits/ProcessorTrait.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     private function process(ViewSource $source, ContextInterface $context): ViewSource
31 31
     {
32
-        foreach ($this->processors as $processor) {
32
+        foreach ($this->processors as $processor){
33 33
             $source = $processor->process($source, $context);
34 34
         }
35 35
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@
 block discarded – undo
29 29
      */
30 30
     private function process(ViewSource $source, ContextInterface $context): ViewSource
31 31
     {
32
-        foreach ($this->processors as $processor) {
32
+        foreach ($this->processors as $processor)
33
+        {
33 34
             $source = $processor->process($source, $context);
34 35
         }
35 36
 
Please login to merge, or discard this patch.
src/Scaffolder/tests/App/TestApp.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,13 @@
 block discarded – undo
61 61
      */
62 62
     protected function mapDirectories(array $directories): array
63 63
     {
64
-        if (!isset($directories['root'])) {
64
+        if (!isset($directories['root']))
65
+        {
65 66
             throw new Boot\Exception\BootException('Missing required directory `root`.');
66 67
         }
67 68
 
68
-        if (!isset($directories['app'])) {
69
+        if (!isset($directories['app']))
70
+        {
69 71
             $directories['app'] = $directories['root'] . '/';
70 72
         }
71 73
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,19 +48,19 @@
 block discarded – undo
48 48
      */
49 49
     protected function mapDirectories(array $directories): array
50 50
     {
51
-        if (!isset($directories['root'])) {
51
+        if (!isset($directories['root'])){
52 52
             throw new Boot\Exception\BootException('Missing required directory `root`.');
53 53
         }
54 54
 
55
-        if (!isset($directories['app'])) {
56
-            $directories['app'] = $directories['root'] . '/';
55
+        if (!isset($directories['app'])){
56
+            $directories['app'] = $directories['root'].'/';
57 57
         }
58 58
 
59 59
         return \array_merge([
60
-            'vendor'  => $directories['root'] . '/vendor/',
61
-            'runtime' => $directories['root'] . '/runtime/',
62
-            'config'  => $directories['app'] . '/config/',
63
-            'resources' => $directories['root'] . '/resources/',
60
+            'vendor'  => $directories['root'].'/vendor/',
61
+            'runtime' => $directories['root'].'/runtime/',
62
+            'config'  => $directories['app'].'/config/',
63
+            'resources' => $directories['root'].'/resources/',
64 64
         ], $directories);
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/Prototype/tests/Traverse/Extractor.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     private function traverse(string $code, NodeVisitor ...$visitors): void
58 58
     {
59 59
         $tr = new NodeTraverser();
60
-        foreach ($visitors as $visitor) {
60
+        foreach ($visitors as $visitor){
61 61
             $tr->addVisitor($visitor);
62 62
         }
63 63
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@
 block discarded – undo
57 57
     private function traverse(string $code, NodeVisitor ...$visitors): void
58 58
     {
59 59
         $tr = new NodeTraverser();
60
-        foreach ($visitors as $visitor) {
60
+        foreach ($visitors as $visitor)
61
+        {
61 62
             $tr->addVisitor($visitor);
62 63
         }
63 64
 
Please login to merge, or discard this patch.