Code Duplication    Length = 8-9 lines in 2 locations

src/Command/Compare.php 1 location

@@ 23-31 (lines=9) @@
20
        parent::__construct();
21
    }
22
23
    protected function configure()
24
    {
25
        $this->setName('compare')
26
            ->setDescription('Compare two images and outputs how similar they are')
27
            ->addArgument('file1', InputArgument::REQUIRED, 'Pass the first file.')
28
            ->addArgument('file2', InputArgument::REQUIRED, 'Pass the second file.')
29
            ->addOption('size', 's', InputOption::VALUE_REQUIRED, 'Sampling size.', 8)
30
            ->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'Output format.', 'percent');
31
    }
32
33
    protected function execute(InputInterface $input, OutputInterface $output)
34
    {

src/Command/Generate.php 1 location

@@ 23-30 (lines=8) @@
20
        parent::__construct();
21
    }
22
23
    protected function configure()
24
    {
25
        $this->setName('generate')
26
            ->setDescription('Generates the pHash of given image')
27
            ->addArgument('file', InputArgument::REQUIRED, 'Pass the file.')
28
            ->addOption('size', 's', InputOption::VALUE_REQUIRED, 'Sampling size.', 8)
29
            ->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'Output format [hex,bin,ascii].', 'hex');
30
    }
31
32
    protected function execute(InputInterface $input, OutputInterface $output)
33
    {