-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c51ad0
commit f04d09a
Showing
7 changed files
with
148 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of Axm framework. | ||
* Axm Framework PHP. | ||
* | ||
* (c) Raxm Foundation <[email protected]> | ||
* Class BaseCommand | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
* @author Juan Cristobal <[email protected]> | ||
* @link http://www.axm.com/ | ||
* @license http://www.axm.com/license/ | ||
* @package Console | ||
*/ | ||
|
||
namespace Console; | ||
|
||
use Console\CLI; | ||
|
@@ -120,25 +123,25 @@ public function showHelp() | |
{ | ||
CLI::write('CLI help Usage: ', 'yellow'); | ||
|
||
if (!empty($this->usage)) { | ||
if (!empty ($this->usage)) { | ||
$usage = $this->usage; | ||
} else { | ||
$usage = $this->name; | ||
|
||
if (!empty($this->arguments)) { | ||
if (!empty ($this->arguments)) { | ||
$usage .= ' [arguments]'; | ||
} | ||
} | ||
|
||
CLI::write($this->setPad($usage, 0, 0, 2)); | ||
|
||
if (!empty($this->description)) { | ||
if (!empty ($this->description)) { | ||
CLI::newLine(); | ||
CLI::write(self::ARROW_SYMBOL . 'CLI help Description: ', 'yellow'); | ||
CLI::write($this->setPad($this->description, 0, 0, 2)); | ||
} | ||
|
||
if (!empty($this->arguments)) { | ||
if (!empty ($this->arguments)) { | ||
CLI::newLine(); | ||
CLI::write(self::ARROW_SYMBOL . 'CLI help Arguments: ', 'yellow'); | ||
|
||
|
@@ -149,7 +152,7 @@ public function showHelp() | |
} | ||
} | ||
|
||
if (!empty($this->options)) { | ||
if (!empty ($this->options)) { | ||
CLI::newLine(); | ||
CLI::write(self::ARROW_SYMBOL . 'CLI help Options: ', 'yellow'); | ||
|
||
|
@@ -201,6 +204,6 @@ public function __get(string $key) | |
*/ | ||
public function __isset(string $key): bool | ||
{ | ||
return isset($this->{$key}); | ||
return isset ($this->{$key}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.