Test Failed
Pull Request — master (#896)
by Alexander
09:18
created
src/SendIt/tests/QueueTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,21 +68,21 @@
 block discarded – undo
68 68
         $mail3->setDelay(200);
69 69
 
70 70
         $this->queue->expects('push')->once()->withArgs(
71
-            function ($job, $data, Options $options) {
71
+            function ($job, $data, Options $options){
72 72
                 $this->assertSame(30, $options->getDelay());
73 73
                 return true;
74 74
             }
75 75
         );
76 76
 
77 77
         $this->queue->expects('push')->once()->withArgs(
78
-            function ($job, $data, Options $options) {
78
+            function ($job, $data, Options $options){
79 79
                 $this->assertSame(100, $options->getDelay());
80 80
                 return true;
81 81
             }
82 82
         );
83 83
 
84 84
         $this->queue->expects('push')->once()->withArgs(
85
-            function ($job, $data, Options $options) {
85
+            function ($job, $data, Options $options){
86 86
                 $this->assertSame(200, $options->getDelay());
87 87
                 return true;
88 88
             }
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,8 @@  discard block
 block discarded – undo
43 43
         $mail->setBCC('[email protected]');
44 44
 
45 45
         $this->queue->expects('push')->withArgs(
46
-            function ($job, $data, Options $options) use ($mail) {
46
+            function ($job, $data, Options $options) use ($mail)
47
+            {
47 48
                 $this->assertSame(MailQueue::JOB_NAME, $job);
48 49
                 $this->assertSame($data, MessageSerializer::pack($mail));
49 50
                 $this->assertSame('mailer', $options->getQueue());
@@ -68,21 +69,24 @@  discard block
 block discarded – undo
68 69
         $mail3->setDelay(200);
69 70
 
70 71
         $this->queue->expects('push')->once()->withArgs(
71
-            function ($job, $data, Options $options) {
72
+            function ($job, $data, Options $options)
73
+            {
72 74
                 $this->assertSame(30, $options->getDelay());
73 75
                 return true;
74 76
             }
75 77
         );
76 78
 
77 79
         $this->queue->expects('push')->once()->withArgs(
78
-            function ($job, $data, Options $options) {
80
+            function ($job, $data, Options $options)
81
+            {
79 82
                 $this->assertSame(100, $options->getDelay());
80 83
                 return true;
81 84
             }
82 85
         );
83 86
 
84 87
         $this->queue->expects('push')->once()->withArgs(
85
-            function ($job, $data, Options $options) {
88
+            function ($job, $data, Options $options)
89
+            {
86 90
                 $this->assertSame(200, $options->getDelay());
87 91
                 return true;
88 92
             }
Please login to merge, or discard this patch.
src/Queue/src/Driver/NullDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
     {
18 18
         // Do nothing
19 19
 
20
-        return (string) Uuid::uuid4();
20
+        return (string)Uuid::uuid4();
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/SessionBootloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 'handler' => new Autowire(
63 63
                     FileHandler::class,
64 64
                     [
65
-                        'directory' => $directories->get('runtime') . 'session',
65
+                        'directory' => $directories->get('runtime').'session',
66 66
                         'lifetime' => 86400,
67 67
                     ]
68 68
                 ),
Please login to merge, or discard this patch.
src/Bridge/Monolog/tests/HandlersTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $finalizer->shouldReceive('addFinalizer')->once();
41 41
 
42 42
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
43
-            new class() implements LoaderInterface {
43
+            new class() implements LoaderInterface{
44 44
                 public function has(string $section): bool
45 45
                 {
46 46
                     return false;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
         $finalizer->shouldReceive('addFinalizer')->once();
41 41
 
42 42
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
43
-            new class() implements LoaderInterface {
43
+            new class() implements LoaderInterface
44
+            {
44 45
                 public function has(string $section): bool
45 46
                 {
46 47
                     return false;
Please login to merge, or discard this patch.
src/Bridge/Monolog/tests/ProcessorsTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $finalizer->shouldReceive('addFinalizer')->once();
33 33
 
34 34
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
35
-            new class() implements LoaderInterface {
35
+            new class() implements LoaderInterface{
36 36
                 public function has(string $section): bool
37 37
                 {
38 38
                     return false;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             ]
84 84
         ]));
85 85
 
86
-        $logger = $this->container->get(LogsInterface::class)->getLogger('test');;
86
+        $logger = $this->container->get(LogsInterface::class)->getLogger('test'); ;
87 87
 
88 88
         $this->assertCount(1, $logger->getProcessors());
89 89
         $this->assertInstanceOf(PsrLogMessageProcessor::class, $logger->getProcessors()[0]);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
         $finalizer->shouldReceive('addFinalizer')->once();
41 41
 
42 42
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
43
-            new class() implements LoaderInterface {
43
+            new class() implements LoaderInterface
44
+            {
44 45
                 public function has(string $section): bool
45 46
                 {
46 47
                     return false;
Please login to merge, or discard this patch.
src/Framework/Console/CommandLocator.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,10 @@
 block discarded – undo
38 38
     public function locateCommands(): array
39 39
     {
40 40
         $commands = [];
41
-        foreach ($this->classes->getScopedClasses('consoleCommands', SymfonyCommand::class) as $class) {
42
-            if ($class->isAbstract()) {
41
+        foreach ($this->classes->getScopedClasses('consoleCommands', SymfonyCommand::class) as $class)
42
+        {
43
+            if ($class->isAbstract())
44
+            {
43 45
                 continue;
44 46
             }
45 47
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         private readonly ScopedClassesInterface $classes,
18 18
         ContainerInterface $container,
19 19
         array $interceptors = [],
20
-    ) {
20
+    ){
21 21
         $this->container = $container;
22 22
         $this->interceptors = $interceptors;
23 23
     }
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function locateCommands(): array
26 26
     {
27 27
         $commands = [];
28
-        foreach ($this->classes->getScopedClasses('consoleCommands', SymfonyCommand::class) as $class) {
29
-            if ($class->isAbstract()) {
28
+        foreach ($this->classes->getScopedClasses('consoleCommands', SymfonyCommand::class) as $class){
29
+            if ($class->isAbstract()){
30 30
                 continue;
31 31
             }
32 32
 
Please login to merge, or discard this patch.
src/Prototype/tests/LocatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             'directories' => [],
48 48
             'scopes' => [
49 49
                 'prototypes' => [
50
-                    'directories' => [__DIR__ . '/Fixtures']
50
+                    'directories' => [__DIR__.'/Fixtures']
51 51
                 ]
52 52
             ]
53 53
         ])));
Please login to merge, or discard this patch.
src/Cache/tests/Core/CacheInjectorTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                     'test' => $this->defaultCache,
77 77
                     'array' => new ArrayStorage(),
78 78
                 ][$name] ?? null;
79
-            if ($result === null) {
79
+            if ($result === null){
80 80
                 throw new NotFoundException();
81 81
             }
82 82
             return $result;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,8 @@
 block discarded – undo
76 76
                     'test' => $this->defaultCache,
77 77
                     'array' => new ArrayStorage(),
78 78
                 ][$name] ?? null;
79
-            if ($result === null) {
79
+            if ($result === null)
80
+            {
80 81
                 throw new NotFoundException();
81 82
             }
82 83
             return $result;
Please login to merge, or discard this patch.
src/Http/tests/Stream/GeneratorStreamTest.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@
 block discarded – undo
48 48
 
49 49
     public function testRewindAfterRead(): void
50 50
     {
51
-        if (PHP_VERSION_ID < 80000) {
51
+        if (PHP_VERSION_ID < 80000)
52
+        {
52 53
             $this->markTestSkipped('See issue https://bugs.php.net/bug.php?id=79927.');
53 54
         }
54 55
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function testRewindAfterRead(): void
50 50
     {
51
-        if (PHP_VERSION_ID < 80000) {
51
+        if (PHP_VERSION_ID < 80000){
52 52
             $this->markTestSkipped('See issue https://bugs.php.net/bug.php?id=79927.');
53 53
         }
54 54
 
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
         $rValue = 'return-value';
104 104
         $stream = $this->createStream(self::DEFAULT_SEQUENCE, $rValue);
105 105
 
106
-        $result = (string) $stream;
106
+        $result = (string)$stream;
107 107
 
108
-        $this->assertSame(self::DEFAULT_CONTENT_RESULT . $rValue, $result);
108
+        $this->assertSame(self::DEFAULT_CONTENT_RESULT.$rValue, $result);
109 109
     }
110 110
 
111 111
     public function testToStringWithReturnOnly(): void
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $rValue = 'return-value';
114 114
         $stream = $this->createStream([], $rValue);
115 115
 
116
-        $result = (string) $stream;
116
+        $result = (string)$stream;
117 117
 
118 118
         $this->assertSame($rValue, $result);
119 119
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         $stream = $this->createStream();
124 124
         $stream->close();
125 125
 
126
-        $this->assertSame('', (string) $stream);
126
+        $this->assertSame('', (string)$stream);
127 127
 
128 128
         $this->expectException(RuntimeException::class);
129 129
         $this->expectErrorMessage('Unable to read stream contents.');
Please login to merge, or discard this patch.