diff --git a/src/MageScan/Command/Scan/AbstractCommand.php b/src/MageScan/Command/Scan/AbstractCommand.php index 1076f04..ea85a12 100644 --- a/src/MageScan/Command/Scan/AbstractCommand.php +++ b/src/MageScan/Command/Scan/AbstractCommand.php @@ -115,7 +115,7 @@ protected function initialize(InputInterface $input, OutputInterface $output) */ protected function setUrl($input) { - if (empty(trim($input))) { + if (trim($input) == '') { throw new \InvalidArgumentException( 'Target URL not specified' ); diff --git a/src/bootstrap.php b/src/bootstrap.php index c5ba477..b0a94a4 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -12,8 +12,6 @@ * @link https://github.com/steverobbins/magescan */ -ini_set('display_errors', 1); - require_once __DIR__ . '/../vendor/autoload.php'; use MageScan\Command\Scan\AllCommand;