Code Duplication    Length = 13-13 lines in 2 locations

src/Magestead/Installers/MagentoProject.php 1 location

@@ 161-173 (lines=13) @@
158
     * @param array $options
159
     * @param OutputInterface $output
160
     */
161
    protected function showCredentials(array $options, OutputInterface $output)
162
    {
163
        $output->writeln('<info>SUCCESS: Magestead has finished installing Magento!</info>');
164
        $table = new Table($output);
165
        $table
166
            ->setHeaders(['Username', 'Password', 'Base URL'])
167
            ->setRows([
168
                ['admin', 'password123', $options['magestead']['apps']['mba_12345']['base_url']],
169
            ]);
170
        $table->render();
171
172
        HostsPluginChecker::verify($options, $output);
173
    }
174
175
    /**
176
     * @param array $options

src/Magestead/Installers/Magento2Project.php 1 location

@@ 214-226 (lines=13) @@
211
     * @param array $options
212
     * @param OutputInterface $output
213
     */
214
    protected function showCredentials(array $options, OutputInterface $output)
215
    {
216
        $output->writeln('<info>SUCCESS: Magestead has finished installing Magento 2!</info>');
217
        $table = new Table($output);
218
        $table
219
            ->setHeaders(['Username', 'Password', 'Base URL', 'Admin URI'])
220
            ->setRows([
221
                ['admin', 'password123', $options['magestead']['apps']['mba_12345']['base_url'], 'admin'],
222
            ]);
223
        $table->render();
224
225
        HostsPluginChecker::verify($options, $output);
226
    }
227
228
    /**
229
     * @param array $options