Test Failed
Pull Request — master (#1190)
by butschster
10:27
created
src/Router/src/Target/Namespaced.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         string $namespace,
27 27
         string $postfix = 'Controller',
28 28
         int $options = 0
29
-    ) {
29
+    ){
30 30
         $this->namespace = \rtrim($namespace, '\\');
31 31
         $this->postfix = \ucfirst($postfix);
32 32
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function resolveController(array $matches): string
46 46
     {
47
-        if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])) {
47
+        if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])){
48 48
             throw new TargetException('Invalid namespace target, controller name not allowed.');
49 49
         }
50 50
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
      */
45 45
     protected function resolveController(array $matches): string
46 46
     {
47
-        if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])) {
47
+        if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller']))
48
+        {
48 49
             throw new TargetException('Invalid namespace target, controller name not allowed.');
49 50
         }
50 51
 
Please login to merge, or discard this patch.
src/Router/tests/Fixtures/TestController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
         return $id;
30 30
     }
31 31
 
32
-    public function defaultInt(string|int $id = 1): string
32
+    public function defaultInt(string | int $id = 1): string
33 33
     {
34 34
         $result = \is_int($id) ? 'int: ' : 'string: ';
35 35
 
36
-        return $result . $id;
36
+        return $result.$id;
37 37
     }
38 38
 
39 39
     public function echo(): void
Please login to merge, or discard this patch.
src/Framework/Auth/TokenStorageScope.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,12 @@
 block discarded – undo
52 52
      */
53 53
     private function getTokenStorage(): TokenStorageInterface
54 54
     {
55
-        try {
55
+        try
56
+        {
56 57
             return $this->container->get(TokenStorageInterface::class);
57
-        } catch (NotFoundExceptionInterface $e) {
58
+        }
59
+        catch (NotFoundExceptionInterface $e)
60
+        {
58 61
             throw new ScopeException('Unable to resolve token storage, invalid scope', $e->getCode(), $e);
59 62
         }
60 63
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 {
20 20
     public function __construct(
21 21
         #[Proxy] private readonly ContainerInterface $container
22
-    ) {
22
+    ){
23 23
     }
24 24
 
25 25
     /**
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
      */
58 58
     private function getTokenStorage(): TokenStorageInterface
59 59
     {
60
-        try {
60
+        try{
61 61
             return $this->container->get(TokenStorageInterface::class);
62
-        } catch (NotFoundExceptionInterface $e) {
62
+        }catch (NotFoundExceptionInterface $e){
63 63
             throw new ScopeException('Unable to resolve token storage, invalid scope', $e->getCode(), $e);
64 64
         }
65 65
     }
Please login to merge, or discard this patch.
src/Queue/tests/QueueManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
 final class QueueManagerTest extends TestCase
17 17
 {
18
-    private m\MockInterface|FactoryInterface $factory;
18
+    private m\MockInterface | FactoryInterface $factory;
19 19
     private QueueManager $manager;
20 20
 
21 21
     protected function setUp(): void
Please login to merge, or discard this patch.
src/Core/tests/Scope/Stub/LoggerInjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public function __construct(
15 15
         private LoggerInterface $logger,
16
-    ) {
16
+    ){
17 17
     }
18 18
 
19 19
     public function createInjection(\ReflectionClass $class, ?string $context = null): LoggerInterface
Please login to merge, or discard this patch.
src/Core/src/Config/Scalar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 final class Scalar extends Binding
8 8
 {
9 9
     public function __construct(
10
-        public readonly bool|int|string|float $value,
11
-    ) {
10
+        public readonly bool | int | string | float $value,
11
+    ){
12 12
     }
13 13
 
14 14
     public function __toString(): string
Please login to merge, or discard this patch.
src/Core/src/Config/Injectable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
      * @param string|InjectorInterface $injector Injector object or binding alias.
18 18
      */
19 19
     public function __construct(
20
-        public readonly string|InjectorInterface $injector,
21
-    ) {
20
+        public readonly string | InjectorInterface $injector,
21
+    ){
22 22
     }
23 23
 
24 24
     public function __toString(): string
Please login to merge, or discard this patch.
src/Core/src/Config/Inflector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct(
20 20
         public readonly \Closure $inflector,
21
-    ) {
21
+    ){
22 22
         $this->parametersCount = (new \ReflectionFunction($inflector))->getNumberOfParameters();
23 23
     }
24 24
 
Please login to merge, or discard this patch.
src/Core/src/Config/WeakReference.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
         public \WeakReference $reference,
14
-    ) {
14
+    ){
15 15
     }
16 16
 
17 17
     public function __toString(): string
Please login to merge, or discard this patch.