Code Duplication    Length = 13-18 lines in 2 locations

src/Console/PrimaryIndexRemoverCommand.php 1 location

@@ 66-78 (lines=13) @@
63
     *
64
     * @return array
65
     */
66
    protected function getOptions()
67
    {
68
        return [
69
            ['database', 'db', InputOption::VALUE_REQUIRED, 'The database connection to use.', $this->defaultDatabase],
70
            ['name', null, InputOption::VALUE_REQUIRED, 'the custom name for the primary index.', '#primary'],
71
            [
72
                'ignore',
73
                'ig',
74
                InputOption::VALUE_NONE,
75
                'if a primary index already exists, an exception will be thrown unless this is set to true.',
76
            ],
77
        ];
78
    }
79
80
    /**
81
     * Execute the console command

src/Console/QueueCreatorCommand.php 1 location

@@ 87-104 (lines=18) @@
84
     *
85
     * @return array
86
     */
87
    protected function getOptions()
88
    {
89
        return [
90
            ['database', 'db', InputOption::VALUE_REQUIRED, 'The database connection to use.', $this->defaultDatabase],
91
            [
92
                'ignore',
93
                'ig',
94
                InputOption::VALUE_NONE,
95
                'if a primary index already exists, an exception will be thrown unless this is set to true.',
96
            ],
97
            [
98
                'defer',
99
                null,
100
                InputOption::VALUE_NONE,
101
                'true to defer building of the index until buildN1qlDeferredIndexes()}is called (or a direct call to the corresponding query service API)',
102
            ],
103
        ];
104
    }
105
106
    /**
107
     * Execute the console command