@@ -46,7 +46,7 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | protected function getContainer() |
| 48 | 48 | { |
| 49 | - if (! $this->kernel instanceof KernelInterface) { |
|
| 49 | + if (!$this->kernel instanceof KernelInterface) { |
|
| 50 | 50 | $this->kernel = $this->createKernel(); |
| 51 | 51 | $this->kernel->boot(); |
| 52 | 52 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $client->purgeQueue(array( |
| 42 | 42 | 'QueueUrl' => $result['QueueUrl'] |
| 43 | 43 | )); |
| 44 | - $output->writeln('<info>pugrge queue url</info>: '. $result['QueueUrl']); |
|
| 44 | + $output->writeln('<info>pugrge queue url</info>: '.$result['QueueUrl']); |
|
| 45 | 45 | } else { |
| 46 | 46 | $output->writeln('cancel purge...'); |
| 47 | 47 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $this->setName('sqs_job_queue:queue-list') |
| 18 | 18 | ->setDescription('list queue') |
| 19 | - ->addOption('queueNamePrefix', 'Q',InputOption::VALUE_OPTIONAL, 'QueueNamePrefix', '') |
|
| 19 | + ->addOption('queueNamePrefix', 'Q', InputOption::VALUE_OPTIONAL, 'QueueNamePrefix', '') |
|
| 20 | 20 | ; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $client->deleteQueue(array( |
| 44 | 44 | 'QueueUrl' => $result['QueueUrl'] |
| 45 | 45 | )); |
| 46 | - $output->writeln('<info>delete queue url</info>: '. $result['QueueUrl']); |
|
| 46 | + $output->writeln('<info>delete queue url</info>: '.$result['QueueUrl']); |
|
| 47 | 47 | } else { |
| 48 | 48 | $output->writeln('cancel purge...'); |
| 49 | 49 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $storage = Phake::mock('Tavii\SQSJobQueueBundle\Storage\DoctrineStorage'); |
| 19 | 19 | $container = Phake::mock('Symfony\Component\DependencyInjection\Container'); |
| 20 | 20 | |
| 21 | - $entity = new TestEntity('test','test.com', 12345); |
|
| 21 | + $entity = new TestEntity('test', 'test.com', 12345); |
|
| 22 | 22 | |
| 23 | 23 | |
| 24 | 24 | Phake::when($storage)->all()->thenReturn(array( |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | $queue = new Queue($baseQueue, $dispatcher, $kernelOptions); |
| 80 | 80 | |
| 81 | 81 | $job = new DummyContainerAwareJob(); |
| 82 | - $message = new Message(array(),$job,'test.com'); |
|
| 82 | + $message = new Message(array(), $job, 'test.com'); |
|
| 83 | 83 | |
| 84 | 84 | Phake::when($baseQueue)->delete($message) |
| 85 | 85 | ->thenReturn(true); |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * JobEvent constructor. |
| 28 | 28 | * @param JobInterface $job |
| 29 | - * @param bool $executedStatus |
|
| 30 | 29 | */ |
| 31 | 30 | public function __construct(JobInterface $job) |
| 32 | 31 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * @param $server |
|
| 75 | + * @param string $server |
|
| 76 | 76 | * @return $this |
| 77 | 77 | */ |
| 78 | 78 | public function setServer($server) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | - * @return mixed |
|
| 85 | + * @return string |
|
| 86 | 86 | */ |
| 87 | 87 | public function getQueue() |
| 88 | 88 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * @return mixed |
|
| 103 | + * @return string |
|
| 104 | 104 | */ |
| 105 | 105 | public function getPrefix() |
| 106 | 106 | { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * @return mixed |
|
| 123 | + * @return integer |
|
| 124 | 124 | */ |
| 125 | 125 | public function getProcId() |
| 126 | 126 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * @return mixed |
|
| 149 | + * @return \DateTime |
|
| 150 | 150 | */ |
| 151 | 151 | public function getCreatedAt() |
| 152 | 152 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | - * @return mixed |
|
| 167 | + * @return \DateTime |
|
| 168 | 168 | */ |
| 169 | 169 | public function getUpdatedAt() |
| 170 | 170 | { |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: polidog |
|
| 5 | - * Date: 2016/03/14 |
|
| 6 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: polidog |
|
| 5 | + * Date: 2016/03/14 |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace Tavii\SQSJobQueueBundle\Controller; |
| 9 | 9 | |