Passed
Push — master ( 66bc90...fe8484 )
by butschster
36:20 queued 26:39
created
src/Boot/tests/Fixtures/ConfigBootloader.php 1 patch
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,22 +18,27 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function init(Container $container, AbstractKernel $kernel): void
20 20
     {
21
-        $kernel->booting(static function (AbstractKernel $kernel) use ($container) {
21
+        $kernel->booting(static function (AbstractKernel $kernel) use ($container)
22
+        {
22 23
             $container->bind('hij', 'foo');
23 24
 
24
-            $kernel->booting(static function () use ($container) {
25
+            $kernel->booting(static function () use ($container)
26
+            {
25 27
                 $container->bind('ijk', 'foo');
26 28
             });
27 29
         });
28 30
 
29
-        $kernel->booted(function (AbstractKernel $kernel) use ($container) {
31
+        $kernel->booted(function (AbstractKernel $kernel) use ($container)
32
+        {
30 33
             $container->bind('jkl', 'foo');
31 34
 
32
-            $kernel->booting(function () use ($container) {
35
+            $kernel->booting(function () use ($container)
36
+            {
33 37
                 $container->bind('klm', 'foo');
34 38
             });
35 39
 
36
-            $kernel->booted(function () use ($container) {
40
+            $kernel->booted(function () use ($container)
41
+            {
37 42
                 $container->bind('lmn', 'foo');
38 43
             });
39 44
         });
@@ -44,11 +49,13 @@  discard block
 block discarded – undo
44 49
     public function boot(ConfigurationBootloader $configuration, AbstractKernel $kernel, Container $container): void
45 50
     {
46 51
         // won't be executed
47
-        $kernel->booting(function (AbstractKernel $kernel) use ($container) {
52
+        $kernel->booting(function (AbstractKernel $kernel) use ($container)
53
+        {
48 54
             $container->bind('ghi', 'foo');
49 55
         });
50 56
 
51
-        $kernel->booted(function (AbstractKernel $kernel) use ($container) {
57
+        $kernel->booted(function (AbstractKernel $kernel) use ($container)
58
+        {
52 59
             $container->bind('mno', 'foo');
53 60
         });
54 61
 
Please login to merge, or discard this patch.
src/Boot/tests/EnvironmentTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      * @return EnvironmentInterface
89 89
      * @throws \Throwable
90 90
      */
91
-    protected function getEnv(array $env, bool $overwite= true): EnvironmentInterface
91
+    protected function getEnv(array $env, bool $overwite = true): EnvironmentInterface
92 92
     {
93 93
         $core = TestCore::create(['root' => __DIR__])->run(new Environment($env, $overwite));
94 94
 
Please login to merge, or discard this patch.
src/Boot/tests/Injector/EnumInjectorTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@
 block discarded – undo
34 34
 
35 35
     public function testCreateInjectionNotForClass(): void
36 36
     {
37
-        $class = new #[ProvideFrom(method: 'test')] class {
37
+        $class = new #[ProvideFrom(method: 'test')] class
38
+        {
38 39
         };
39 40
 
40 41
         $ref = new \ReflectionClass($class);
Please login to merge, or discard this patch.
src/Boot/tests/ConfigsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
         $core = TestCore::create([
16 16
             'root'   => __DIR__,
17
-            'config' => __DIR__ . '/config'
17
+            'config' => __DIR__.'/config'
18 18
         ])->run();
19 19
 
20 20
         /** @var TestConfig $config */
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $core = TestCore::create([
29 29
             'root'   => __DIR__,
30
-            'config' => __DIR__ . '/config',
30
+            'config' => __DIR__.'/config',
31 31
         ])->run();
32 32
 
33 33
         /** @var ConfiguratorInterface $config */
Please login to merge, or discard this patch.
src/Boot/src/BootloadManager/ClassesRegistry.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function register(string $class): void
24 24
     {
25
-        if ($this->isBooted($class)) {
25
+        if ($this->isBooted($class)){
26 26
             throw new BootloaderAlreadyBootedException($class);
27 27
         }
28 28
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,8 @@
 block discarded – undo
22 22
      */
23 23
     public function register(string $class): void
24 24
     {
25
-        if ($this->isBooted($class)) {
25
+        if ($this->isBooted($class))
26
+        {
26 27
             throw new BootloaderAlreadyBootedException($class);
27 28
         }
28 29
 
Please login to merge, or discard this patch.
src/Boot/src/Directories.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public function __construct(
15 15
         private array $directories = []
16
-    ) {
17
-        foreach ($directories as $name => $directory) {
16
+    ){
17
+        foreach ($directories as $name => $directory){
18 18
             $this->set($name, $directory);
19 19
         }
20 20
     }
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
     public function set(string $name, string $path): DirectoriesInterface
28 28
     {
29 29
         $path = \str_replace(['\\', '//'], '/', $path);
30
-        $this->directories[$name] = \rtrim($path, '/') . '/';
30
+        $this->directories[$name] = \rtrim($path, '/').'/';
31 31
 
32 32
         return $this;
33 33
     }
34 34
 
35 35
     public function get(string $name): string
36 36
     {
37
-        if (!$this->has($name)) {
37
+        if (!$this->has($name)){
38 38
             throw new DirectoryException("Undefined directory '{$name}'");
39 39
         }
40 40
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
     public function __construct(
15 15
         private array $directories = []
16 16
     ) {
17
-        foreach ($directories as $name => $directory) {
17
+        foreach ($directories as $name => $directory)
18
+        {
18 19
             $this->set($name, $directory);
19 20
         }
20 21
     }
@@ -34,7 +35,8 @@  discard block
 block discarded – undo
34 35
 
35 36
     public function get(string $name): string
36 37
     {
37
-        if (!$this->has($name)) {
38
+        if (!$this->has($name))
39
+        {
38 40
             throw new DirectoryException("Undefined directory '{$name}'");
39 41
         }
40 42
 
Please login to merge, or discard this patch.
src/Boot/src/Event/Finalizing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 {
14 14
     public function __construct(
15 15
         public readonly FinalizerInterface $finalizer
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Boot/src/Event/DispatcherFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         public readonly DispatcherInterface $dispatcher
17
-    ) {
17
+    ){
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Boot/src/Event/Bootstrapped.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 {
14 14
     public function __construct(
15 15
         public readonly KernelInterface $kernel
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.