| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 30 | { |
||
| 31 | $prefix = $this->getContainer()->getParameter('sqs_job_queue.prefix'); |
||
|
|
|||
| 32 | $client = $this->getContainer()->get('sqs_job_queue.client'); |
||
| 33 | |||
| 34 | $queueName = new QueueName($input->getArgument('queue'), $this->getContainer()->getParameter('sqs_job_queue.prefix')); |
||
| 35 | $client->createQueue(array( |
||
| 36 | 'QueueName' => $queueName->getQueueName(), |
||
| 37 | 'Attributes' => array( |
||
| 38 | 'DelaySeconds' => $input->getOption('delaySec') |
||
| 39 | ), |
||
| 40 | )); |
||
| 41 | $output->writeln('<info>SUCCESS:</info> '.$queueName->getQueueName()); |
||
| 42 | } |
||
| 43 | } |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.