Skip to content

Commit

Permalink
Fixing empty issues in 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
steverobbins committed Oct 21, 2015
1 parent 97e5ed5 commit f7fd1d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/MageScan/Command/Scan/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down
2 changes: 0 additions & 2 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7fd1d3

Please sign in to comment.