@@ -27,5 +27,5 @@ |
||
| 27 | 27 | |
| 28 | 28 | private $target = FatalJobException::class; |
| 29 | 29 | |
| 30 | - private $inheritance = [ AbstractJobException::class ]; |
|
| 30 | + private $inheritance = [AbstractJobException::class]; |
|
| 31 | 31 | } |
@@ -31,7 +31,7 @@ |
||
| 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 | { |
@@ -41,12 +41,12 @@ |
||
| 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 | { |
@@ -30,5 +30,5 @@ |
||
| 30 | 30 | 'as_reflection' => true, |
| 31 | 31 | ]; |
| 32 | 32 | |
| 33 | - private $inheritance = [ AbstractWorkerController::class ]; |
|
| 33 | + private $inheritance = [AbstractWorkerController::class]; |
|
| 34 | 34 | } |
@@ -32,7 +32,7 @@ |
||
| 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 | { |
@@ -30,7 +30,7 @@ |
||
| 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 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 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 |
||
| 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()); |
@@ -27,7 +27,7 @@ |
||
| 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 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | if (!is_array($options)) { |
| 75 | - throw new \InvalidArgumentException('Options must be of type array or ' . LoggerInterface::class); |
|
| 75 | + throw new \InvalidArgumentException('Options must be of type array or '.LoggerInterface::class); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | parent::__construct($options); |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | */ |
| 283 | 283 | private function formatJob(JobInterface $job) : string |
| 284 | 284 | { |
| 285 | - return get_class($job) . ' [ ' . $job->getId() . ' ] '; |
|
| 285 | + return get_class($job).' [ '.$job->getId().' ] '; |
|
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | } |