Code Duplication    Length = 8-8 lines in 2 locations

Command/QueuePurgeCommand.php 1 location

@@ 40-47 (lines=8) @@
37
            false
38
        );
39
40
        if ($ret) {
41
            $client->purgeQueue(array(
42
                'QueueUrl' => $result['QueueUrl']
43
            ));
44
            $output->writeln('<info>pugrge queue url</info>: '. $result['QueueUrl']);
45
        } else {
46
            $output->writeln('cancel purge...');
47
        }
48
49
    }
50
}

Command/QueueDeleteCommand.php 1 location

@@ 43-50 (lines=8) @@
40
            true
41
        );
42
43
        if ($ret) {
44
            $client->deleteQueue(array(
45
                'QueueUrl' => $result['QueueUrl']
46
            ));
47
            $output->writeln('<info>delete queue url</info>: '. $result['QueueUrl']);
48
        } else {
49
            $output->writeln('cancel purge...');
50
        }
51
    }
52
53
}