Test Failed
Pull Request — master (#1190)
by butschster
10:27
created
src/Core/src/BinderInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @param TResolver $resolver
22 22
      */
23
-    public function bind(string $alias, string|array|callable|object $resolver): void;
23
+    public function bind(string $alias, string | array | callable | object $resolver): void;
24 24
 
25 25
     /**
26 26
      * Bind value resolver to container alias to be executed as cached. Resolver can be class name
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param TResolver $resolver Can be result object or
30 30
      *        the same special callable value like the $target parameter in the {@see InvokerInterface::invoke()} method
31 31
      */
32
-    public function bindSingleton(string $alias, string|array|callable|object $resolver): void;
32
+    public function bindSingleton(string $alias, string | array | callable | object $resolver): void;
33 33
 
34 34
     /**
35 35
      * Check if alias points to constructed instance (singleton).
Please login to merge, or discard this patch.
src/Core/src/Exception/Scope/NamedScopeDuplicationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         string $scope,
14
-    ) {
14
+    ){
15 15
         parent::__construct(
16 16
             $scope,
17 17
             "Error on a scope allocation with the name `{$scope}`. A scope with the same name already exists.",
Please login to merge, or discard this patch.
src/Core/src/Exception/Scope/BadScopeException.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
     public function __construct(
13 13
         string $scope,
14 14
         protected string $className,
15
-    ) {
15
+    ){
16 16
         parent::__construct(
17 17
             $scope,
18 18
             \sprintf('Class `%s` can be resolved only in `%s` scope.', $className, $scope),
Please login to merge, or discard this patch.
src/Core/src/Exception/Scope/ScopeException.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
         string $message = '',
17 17
         int $code = 0,
18 18
         ?\Throwable $previous = null,
19
-    ) {
19
+    ){
20 20
         parent::__construct(
21 21
             $message,
22 22
             $code,
Please login to merge, or discard this patch.
src/Core/src/Exception/Scope/FinalizersException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function __construct(
16 16
         ?string $scope,
17 17
         protected array $exceptions,
18
-    ) {
18
+    ){
19 19
         $count = \count($exceptions);
20 20
         parent::__construct(
21 21
             $scope,
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                 $count === 1 ? 'An exception has been' : "$count exceptions have been",
25 25
                 $scope === null ? 'an unnamed scope' : "the scope `$scope`",
26 26
                 \implode("\n\n", \array_map(
27
-                    static fn (Exception $e): string => \sprintf(
27
+                    static fn (Exception $e) : string => \sprintf(
28 28
                         "# %s\n%s",
29 29
                         $e::class,
30 30
                         $e->getMessage(),
Please login to merge, or discard this patch.
src/Core/src/Config.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         public readonly string $binder = Binder::class,
51 51
         public readonly string $invoker = Invoker::class,
52 52
         public readonly string $tracer = Tracer::class,
53
-    ) {
53
+    ){
54 54
         $this->scope = Scope::class;
55 55
         $this->scopedBindings = new Internal\Config\StateStorage();
56 56
     }
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function lockRoot(): bool
76 76
     {
77
-        try {
77
+        try{
78 78
             return $this->rootLocked;
79
-        } finally {
79
+        }finally{
80 80
             $this->rootLocked = false;
81 81
         }
82 82
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,9 +74,12 @@
 block discarded – undo
74 74
      */
75 75
     public function lockRoot(): bool
76 76
     {
77
-        try {
77
+        try
78
+        {
78 79
             return $this->rootLocked;
79
-        } finally {
80
+        }
81
+        finally
82
+        {
80 83
             $this->rootLocked = false;
81 84
         }
82 85
     }
Please login to merge, or discard this patch.
src/Core/src/Exception/Scope/ScopeContainerLeakedException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
     public function __construct(
14 14
         ?string $scope,
15 15
         array $parents,
16
-    ) {
16
+    ){
17 17
         $scopes = \implode('->', \array_map(
18
-            static fn (?string $scope): string => $scope === null ? 'null' : "\"$scope\"",
18
+            static fn (?string $scope) : string => $scope === null ? 'null' : "\"$scope\"",
19 19
             [...\array_reverse($parents), $scope],
20 20
         ));
21 21
         parent::__construct(
Please login to merge, or discard this patch.
src/Core/tests/Scope/Stub/AttrFinalize.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         $this->logger = $logger;
22 22
         $this->finalized = true;
23
-        if ($this->throwException) {
23
+        if ($this->throwException){
24 24
             throw new RuntimeException('Test exception from finalize method.');
25 25
         }
26 26
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
     {
21 21
         $this->logger = $logger;
22 22
         $this->finalized = true;
23
-        if ($this->throwException) {
23
+        if ($this->throwException)
24
+        {
24 25
             throw new RuntimeException('Test exception from finalize method.');
25 26
         }
26 27
     }
Please login to merge, or discard this patch.
src/Exceptions/tests/ErrorReportingTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         #[ExpectedValues(values: [\E_USER_NOTICE, \E_USER_WARNING, \E_USER_ERROR])]
69 69
         int $type
70 70
     ): ?Throwable {
71
-        $handler = (new class extends ExceptionHandler {
71
+        $handler = (new class extends ExceptionHandler{
72 72
             public function handleError(int $errno, string $errstr, string $errfile = '', int $errline = 0): bool
73 73
             {
74 74
                 return parent::handleError($errno, $errstr, $errfile, $errline);
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
             {
79 79
             }
80 80
         });
81
-        try {
81
+        try{
82 82
             $handler->handleError(...\array_values($this->generateErrorArray($type)));
83
-        } catch (Throwable $e) {
83
+        }catch (Throwable $e){
84 84
             return $e;
85 85
         }
86 86
         return null;
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,8 @@  discard block
 block discarded – undo
68 68
         #[ExpectedValues(values: [\E_USER_NOTICE, \E_USER_WARNING, \E_USER_ERROR])]
69 69
         int $type
70 70
     ): ?Throwable {
71
-        $handler = (new class extends ExceptionHandler {
71
+        $handler = (new class extends ExceptionHandler
72
+        {
72 73
             public function handleError(int $errno, string $errstr, string $errfile = '', int $errline = 0): bool
73 74
             {
74 75
                 return parent::handleError($errno, $errstr, $errfile, $errline);
@@ -78,9 +79,12 @@  discard block
 block discarded – undo
78 79
             {
79 80
             }
80 81
         });
81
-        try {
82
+        try
83
+        {
82 84
             $handler->handleError(...\array_values($this->generateErrorArray($type)));
83
-        } catch (Throwable $e) {
85
+        }
86
+        catch (Throwable $e)
87
+        {
84 88
             return $e;
85 89
         }
86 90
         return null;
Please login to merge, or discard this patch.