From 59b963eca1c239db0f2493895139581e7e3aabaa Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Mon, 11 Dec 2017 09:58:13 -0600 Subject: [PATCH 1/2] Remove duplicated command --- src/NewCommand.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 2b0d8a1a..a15e2454 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -70,8 +70,6 @@ protected function execute(InputInterface $input, OutputInterface $output) if ($input->getOption('dev')) { unset($commands[2]); - - $commands[] = $composer.' run-script post-autoload-dump'; } if ($input->getOption('no-ansi')) { From a924f15fc8e33bc7ca7d89fcabb3b782b5963c17 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Mon, 11 Dec 2017 11:29:16 -0600 Subject: [PATCH 2/2] Remove if block in full --- src/NewCommand.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index a15e2454..89b83cea 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -68,10 +68,6 @@ protected function execute(InputInterface $input, OutputInterface $output) $composer.' run-script post-autoload-dump', ]; - if ($input->getOption('dev')) { - unset($commands[2]); - } - if ($input->getOption('no-ansi')) { $commands = array_map(function ($value) { return $value.' --no-ansi';