Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Core/test/CoreTest/Queue/Exception/RecoverableExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,5 +27,5 @@
 block discarded – undo
27 27
 
28 28
     private $target = RecoverableJobException::class;
29 29
 
30
-    private $inheritance = [ AbstractJobException::class ];
30
+    private $inheritance = [AbstractJobException::class];
31 31
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Exception/FatalJobExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,5 +27,5 @@
 block discarded – undo
27 27
 
28 28
     private $target = FatalJobException::class;
29 29
 
30
-    private $inheritance = [ AbstractJobException::class ];
30
+    private $inheritance = [AbstractJobException::class];
31 31
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Exception/AbstractJobExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         '@testConstruction' => false,
32 32
     ];
33 33
 
34
-    private $inheritance = [ JobExceptionInterface::class, \RuntimeException::class ];
34
+    private $inheritance = [JobExceptionInterface::class, \RuntimeException::class];
35 35
 
36 36
     public function provideConstructionTestData()
37 37
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Worker/MongoWorkerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
     private $target = [
42 42
         MongoWorker::class,
43 43
         'setupConstructorArgs',
44
-        '@testInheritance' => [ 'as_reflection' => true ]
44
+        '@testInheritance' => ['as_reflection' => true]
45 45
     ];
46 46
 
47 47
     private $eventsMock;
48 48
 
49
-    private $inheritance = [ AbstractWorker::class ];
49
+    private $inheritance = [AbstractWorker::class];
50 50
 
51 51
     private function setupConstructorArgs()
52 52
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Controller/MongoQueueControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,5 +30,5 @@
 block discarded – undo
30 30
         'as_reflection' => true,
31 31
     ];
32 32
 
33
-    private $inheritance = [ AbstractWorkerController::class ];
33
+    private $inheritance = [AbstractWorkerController::class];
34 34
 }
Please login to merge, or discard this patch.
Core/test/CoreTest/Queue/Controller/MongoQueueControllerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     private $target = MongoQueueControllerFactory::class;
34 34
 
35
-    private $inheritance = [ FactoryInterface::class ];
35
+    private $inheritance = [FactoryInterface::class];
36 36
 
37 37
     public function testCreateService()
38 38
     {
Please login to merge, or discard this patch.
Core/test/CoreTest/Queue/Controller/MongoQueueListControllerFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     private $target = MongoQueueListControllerFactory::class;
32 32
 
33
-    private $inheritance = [ FactoryInterface::class ];
33
+    private $inheritance = [FactoryInterface::class];
34 34
 
35 35
     public function testCreateService()
36 36
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Controller/MongoQueueListControllerTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $queueName = 'test';
113 113
         $queue = $this->getMockBuilder(MongoQueue::class)->disableOriginalConstructor()
114
-                      ->setMethods(['listing'])->getMock();
114
+                        ->setMethods(['listing'])->getMock();
115 115
         $this->queueManager->expects($this->once())->method('get')->with($queueName)->willReturn($queue);
116 116
         $params = $this->setupParamsMock([
117 117
             ['queue', null, $queueName],
@@ -135,13 +135,13 @@  discard block
 block discarded – undo
135 135
         $date = new \DateTime();
136 136
         $date->setTimezone(new \DateTimeZone('UTC'));
137 137
         $jobs = [
138
-           [
139
-               'job' => $job,
140
-               'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
141
-               'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
142
-               'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
143
-               'tried' => 10,
144
-           ],
138
+            [
139
+                'job' => $job,
140
+                'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
141
+                'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
142
+                'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000),
143
+                'tried' => 10,
144
+            ],
145 145
         ];
146 146
 
147 147
         $queue->expects($this->once())->method('listing')->with(['limit' => 10, 'status' => 1])->willReturn($jobs);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         ],
45 45
     ];
46 46
 
47
-    private $inheritance = [ AbstractConsoleController::class ];
47
+    private $inheritance = [AbstractConsoleController::class];
48 48
 
49 49
     private function injectConstructorDependencies()
50 50
     {
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
         $lineTmpl = '%-20s %s';
150 150
         $console = $this->target->getConsole();
151 151
         $console->expects($this->exactly(7))->method('writeLine')->withConsecutive(
152
-            [ get_class($job) . ' [ test ]' ],
153
-            [ sprintf($lineTmpl, 'Created', $date->format('Y-m-d H:i:s')) ],
154
-            [ sprintf($lineTmpl, 'Executed', $date->format('Y-m-d H:i:s')) ],
155
-            [ sprintf($lineTmpl, 'Scheduled', $date->format('Y-m-d H:i:s')) ],
156
-            [ sprintf($lineTmpl, 'Tries', $jobs[0]['tried']) ]
152
+            [get_class($job).' [ test ]'],
153
+            [sprintf($lineTmpl, 'Created', $date->format('Y-m-d H:i:s'))],
154
+            [sprintf($lineTmpl, 'Executed', $date->format('Y-m-d H:i:s'))],
155
+            [sprintf($lineTmpl, 'Scheduled', $date->format('Y-m-d H:i:s'))],
156
+            [sprintf($lineTmpl, 'Tries', $jobs[0]['tried'])]
157 157
         )->willReturn(null);
158 158
 
159 159
         $this->assertEmpty($this->target->listAction());
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Log/Processor/ProcessIdTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     private $target = ProcessId::class;
29 29
 
30
-    private $inheritance = [ ProcessorInterface::class ];
30
+    private $inheritance = [ProcessorInterface::class];
31 31
 
32 32
     public function testProcessAddsProcessIdToEventArray()
33 33
     {
Please login to merge, or discard this patch.