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

@@ 241-253 (lines=13) @@
238
     * @param array $options
239
     * @param OutputInterface $output
240
     */
241
    protected function showCredentials(array $options, OutputInterface $output)
242
    {
243
        $output->writeln('<info>SUCCESS: Magestead has finished installing Magento 2!</info>');
244
        $table = new Table($output);
245
        $table
246
            ->setHeaders(['Username', 'Password', 'Base URL', 'Admin URI'])
247
            ->setRows([
248
                ['admin', 'password123', $options['magestead']['apps']['mba_12345']['base_url'], 'admin'],
249
            ]);
250
        $table->render();
251
252
        HostsPluginChecker::verify($options, $output);
253
    }
254
255
    /**
256
     * @param array $options