Code Duplication    Length = 27-33 lines in 3 locations

src/Commands/ClassifyCommand.php 1 location

@@ 25-57 (lines=33) @@
22
    /**
23
     * Configure command
24
     */
25
    protected function configure()
26
    {
27
        $this
28
            ->setName('classifiers:classify')
29
            ->setDescription('Use classifiers to classify image')
30
            ->addArgument(
31
                'username',
32
                InputArgument::REQUIRED,
33
                'IBM Watson Service credentials username.'
34
            )
35
            ->addArgument(
36
                'password',
37
                InputArgument::REQUIRED,
38
                'IBM Watson Service credentials password.'
39
            )
40
            ->addArgument(
41
                'images',
42
                InputArgument::REQUIRED,
43
                'Individual or zip of images.'
44
            )
45
            ->addOption(
46
                'classifiers',
47
                '-c',
48
                InputOption::VALUE_REQUIRED,
49
                'Classifiers that should be tested against'
50
            )
51
            ->addOption(
52
                'version-date',
53
                '-d',
54
                InputOption::VALUE_REQUIRED,
55
                'API version date, defaults to current date i.e. latest release'
56
            );
57
    }
58
59
    /**
60
     * Execute command

src/Commands/GetClassifierCommand.php 1 location

@@ 24-50 (lines=27) @@
21
    /**
22
     * Configure command
23
     */
24
    protected function configure()
25
    {
26
        $this
27
            ->setName('classifier:get')
28
            ->setDescription('Get Classifier')
29
            ->addArgument(
30
                'username',
31
                InputArgument::REQUIRED,
32
                'IBM Watson Service credentials username.'
33
            )
34
            ->addArgument(
35
                'password',
36
                InputArgument::REQUIRED,
37
                'IBM Watson Service credentials password.'
38
            )
39
            ->addArgument(
40
                'classifier_id',
41
                InputArgument::REQUIRED,
42
                'Classifier ID'
43
            )
44
            ->addOption(
45
                'version-date',
46
                '-d',
47
                InputOption::VALUE_REQUIRED,
48
                'API version date, defaults to current date i.e. latest release'
49
            );
50
    }
51
52
    /**
53
     * Execute command

src/Commands/GetClassifiersCommand.php 1 location

@@ 24-51 (lines=28) @@
21
    /**
22
     * Configure command
23
     */
24
    protected function configure()
25
    {
26
        $this
27
            ->setName('classifiers:get')
28
            ->setDescription('Get Classifiers')
29
            ->addArgument(
30
                'username',
31
                InputArgument::REQUIRED,
32
                'IBM Watson Service credentials username.'
33
            )
34
            ->addArgument(
35
                'password',
36
                InputArgument::REQUIRED,
37
                'IBM Watson Service credentials password.'
38
            )
39
            ->addOption(
40
                'api-verbose',
41
                '-a',
42
                InputOption::VALUE_NONE,
43
                'Enable verbose API request'
44
            )
45
            ->addOption(
46
                'version-date',
47
                '-d',
48
                InputOption::VALUE_REQUIRED,
49
                'API version date, defaults to current date i.e. latest release'
50
            );
51
    }
52
53
    /**
54
     * Execute command