Test Failed
Pull Request — master (#1170)
by Aleksei
19:12 queued 08:18
created
src/Boot/tests/BootloadManager/BootloadManagerTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
             SampleBootWithMethodBoot::class,
27 27
             SampleBoot::class,
28 28
         ], [
29
-            static function(Container $container, SampleBoot $boot) {
29
+            static function (Container $container, SampleBoot $boot){
30 30
                 $container->bind('efg', $boot);
31 31
             }
32 32
         ], [
33
-            static function(Container $container, SampleBoot $boot) {
33
+            static function (Container $container, SampleBoot $boot){
34 34
                 $container->bind('ghi', $boot);
35 35
             }
36 36
         ]);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,13 @@
 block discarded – undo
26 26
             SampleBootWithMethodBoot::class,
27 27
             SampleBoot::class,
28 28
         ], [
29
-            static function(Container $container, SampleBoot $boot) {
29
+            static function(Container $container, SampleBoot $boot)
30
+            {
30 31
                 $container->bind('efg', $boot);
31 32
             }
32 33
         ], [
33
-            static function(Container $container, SampleBoot $boot) {
34
+            static function(Container $container, SampleBoot $boot)
35
+            {
34 36
                 $container->bind('ghi', $boot);
35 37
             }
36 38
         ]);
Please login to merge, or discard this patch.
src/Boot/src/BootloadManager/AbstractBootloadManager.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
     public function __construct(
17 17
         private readonly ScopeInterface $scope,
18 18
         protected readonly InitializerInterface $initializer
19
-    ) {
19
+    ){
20 20
     }
21 21
 
22 22
     public function getClasses(): array
Please login to merge, or discard this patch.
src/Boot/src/BootloadManager/BootloadManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         private readonly ResolverInterface $resolver,
22 22
         InitializerInterface $initializer,
23 23
         ?InvokerStrategyInterface $invokerStrategy = null
24
-    ) {
24
+    ){
25 25
         parent::__construct($scope, $initializer);
26 26
 
27 27
         $this->invokerStrategy = $invokerStrategy ?? new DefaultInvokerStrategy(...$this->resolver->resolveArguments(
Please login to merge, or discard this patch.
src/Views/src/Processor/ContextProcessor.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
             \preg_replace_callback(
31 31
                 $this->pattern,
32 32
                 static function (array $matches) use ($context) {
33
-                    try {
33
+                    try{
34 34
                         return $context->resolveValue($matches['name']) ?? $matches['default'] ?? null;
35
-                    } catch (ContextException $e) {
35
+                    }catch (ContextException $e){
36 36
                         return $matches['default'] ?? throw $e;
37 37
                     }
38 38
                 },
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,14 @@
 block discarded – undo
29 29
         return $source->withCode(
30 30
             \preg_replace_callback(
31 31
                 $this->pattern,
32
-                static function (array $matches) use ($context) {
33
-                    try {
32
+                static function (array $matches) use ($context)
33
+                {
34
+                    try
35
+                    {
34 36
                         return $context->resolveValue($matches['name']) ?? $matches['default'] ?? null;
35
-                    } catch (ContextException $e) {
37
+                    }
38
+                    catch (ContextException $e)
39
+                    {
36 40
                         return $matches['default'] ?? throw $e;
37 41
                     }
38 42
                 },
Please login to merge, or discard this patch.
src/Views/tests/ContextProcessorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
     protected function getSource(string $path): ViewSource
70 70
     {
71 71
         $loader = new ViewLoader([
72
-            'default' => __DIR__ . '/fixtures/default',
73
-            'other' => __DIR__ . '/fixtures/other',
72
+            'default' => __DIR__.'/fixtures/default',
73
+            'other' => __DIR__.'/fixtures/other',
74 74
         ]);
75 75
 
76 76
         return $loader->withExtension('php')->load($path);
Please login to merge, or discard this patch.
src/Bridge/Stempler/src/Bootloader/StemplerBootloader.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function __construct(
38 38
         private readonly ConfiguratorInterface $config
39
-    ) {
39
+    ){
40 40
     }
41 41
 
42 42
     public function init(ContainerInterface $container, ViewsBootloader $views): void
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
 
77 77
         $views->addEngine(StemplerEngine::class);
78 78
 
79
-        if ($container->has(LocaleProcessor::class)) {
79
+        if ($container->has(LocaleProcessor::class)){
80 80
             $this->addProcessor(LocaleProcessor::class);
81
-        } else {
81
+        }else{
82 82
             $this->addProcessor(NullLocaleProcessor::class);
83 83
         }
84 84
     }
85 85
 
86
-    public function addDirective(string|Autowire|Directive\DirectiveRendererInterface $directive): void
86
+    public function addDirective(string | Autowire | Directive\DirectiveRendererInterface $directive): void
87 87
     {
88 88
         $this->config->modify(
89 89
             StemplerConfig::CONFIG,
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         );
92 92
     }
93 93
 
94
-    public function addProcessor(string|Autowire|ProcessorInterface $processor): void
94
+    public function addProcessor(string | Autowire | ProcessorInterface $processor): void
95 95
     {
96 96
         $this->config->modify(
97 97
             StemplerConfig::CONFIG,
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
         );
100 100
     }
101 101
 
102
-    public function addVisitor(string|Autowire|VisitorInterface $visitor, int $stage = Builder::STAGE_COMPILE): void
102
+    public function addVisitor(string | Autowire | VisitorInterface $visitor, int $stage = Builder::STAGE_COMPILE): void
103 103
     {
104 104
         $this->config->modify(
105 105
             StemplerConfig::CONFIG,
106
-            new Append('visitors.' . $stage, null, $visitor)
106
+            new Append('visitors.'.$stage, null, $visitor)
107 107
         );
108 108
     }
109 109
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         ViewsConfig $viewConfig
114 114
     ): StemplerEngine {
115 115
         $cache = null;
116
-        if ($viewConfig->isCacheEnabled()) {
116
+        if ($viewConfig->isCacheEnabled()){
117 117
             $cache = new StemplerCache($viewConfig->getCacheDirectory());
118 118
         }
119 119
 
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,9 +76,12 @@  discard block
 block discarded – undo
76 76
 
77 77
         $views->addEngine(StemplerEngine::class);
78 78
 
79
-        if ($container->has(LocaleProcessor::class)) {
79
+        if ($container->has(LocaleProcessor::class))
80
+        {
80 81
             $this->addProcessor(LocaleProcessor::class);
81
-        } else {
82
+        }
83
+        else
84
+        {
82 85
             $this->addProcessor(NullLocaleProcessor::class);
83 86
         }
84 87
     }
@@ -113,7 +116,8 @@  discard block
 block discarded – undo
113 116
         ViewsConfig $viewConfig
114 117
     ): StemplerEngine {
115 118
         $cache = null;
116
-        if ($viewConfig->isCacheEnabled()) {
119
+        if ($viewConfig->isCacheEnabled())
120
+        {
117 121
             $cache = new StemplerCache($viewConfig->getCacheDirectory());
118 122
         }
119 123
 
Please login to merge, or discard this patch.
src/Boot/src/BootloadManager/StrategyBasedBootloadManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         private readonly InvokerStrategyInterface $invoker,
13 13
         ScopeInterface $scope,
14 14
         InitializerInterface $initializer
15
-    ) {
15
+    ){
16 16
         parent::__construct($scope, $initializer);
17 17
     }
18 18
 
Please login to merge, or discard this patch.
src/Router/tests/Stub/InArrayPattern.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
     public function __construct(
8 8
         private readonly array $values
9
-    ) {
9
+    ){
10 10
     }
11 11
 
12 12
     public function __toString()
Please login to merge, or discard this patch.
src/Exceptions/src/Verbosity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public static function detect(EnvironmentInterface $environment): self
19 19
     {
20
-        return match (\strtolower((string) $environment->get('VERBOSITY_LEVEL'))) {
20
+        return match (\strtolower((string)$environment->get('VERBOSITY_LEVEL'))) {
21 21
             'basic', '0' => self::BASIC,
22 22
             'debug', '2' => self::DEBUG,
23 23
             default => self::VERBOSE
Please login to merge, or discard this patch.