From a35445cf83d68696929991ce8f030335b1a3e49d Mon Sep 17 00:00:00 2001 From: lotfio lakehal Date: Sun, 26 Jul 2020 17:06:34 +0000 Subject: [PATCH] Apply fixes from StyleCI --- commands.php | 1 - src/Conso/Conso.php | 2 +- src/Conso/ConsoTrait.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/commands.php b/commands.php index e2401ef..15efab8 100644 --- a/commands.php +++ b/commands.php @@ -11,5 +11,4 @@ * * @copyright 2019 Lotfio Lakehal */ - $conso->command('command', Conso\Commands\Command::class); diff --git a/src/Conso/Conso.php b/src/Conso/Conso.php index a2d296a..49b6fcf 100644 --- a/src/Conso/Conso.php +++ b/src/Conso/Conso.php @@ -99,8 +99,8 @@ public function run(int $env = 0) try { // pass table defined commands & match $this->invokedCommand = $this->linker->link($this->getCommands()); - return $this->invoker->invoke($this->invokedCommand); + return $this->invoker->invoke($this->invokedCommand); } catch (\Exception $e) { if ($this->output->isTestMode()) { // is test mode diff --git a/src/Conso/ConsoTrait.php b/src/Conso/ConsoTrait.php index 9076b13..b5d0abe 100644 --- a/src/Conso/ConsoTrait.php +++ b/src/Conso/ConsoTrait.php @@ -210,7 +210,7 @@ public function call(string $command): void public function loadBuildInCommands() { $conso = $this; - require_once dirname(__DIR__, 2) . '/commands.php'; + require_once dirname(__DIR__, 2).'/commands.php'; } /**