Code Duplication    Length = 8-9 lines in 2 locations

src/Command/Compare.php 1 location

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

src/Command/Generate.php 1 location

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