Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…t-audit

Conflicts:
	src/MGA/Console/Command/ScanCommand.php
  • Loading branch information
steverobbins committed Mar 12, 2015
2 parents 6bffeca + f14eea3 commit 21dcf29
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/MGA/Console/Command/ScanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class ScanCommand extends Command
Expand Down Expand Up @@ -81,12 +80,12 @@ protected function configure()
/**
* Run scan command
*
* @param Symfony\Component\Console\Input\InputInterface $input
* @param Symfony\Component\Console\Output\OutputInterface $output
* @param InputInterface $input
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->url = $this->cleanUrl($input->getArgument('url'));
$this->url = $this->cleanUrl($input->getArgument('url'));
$response = $this->makeRequest($this->url, array(
CURLOPT_NOBODY => true
));
Expand Down Expand Up @@ -116,7 +115,7 @@ protected function unreachablePath()
CURLOPT_NOBODY => true,
CURLOPT_FOLLOWLOCATION => true
));
$rows[] = array(
$rows[] = array(
$path,
$response['code'],
$response['code'] == 200
Expand Down Expand Up @@ -188,7 +187,7 @@ protected function sitemapExists()
* Create a curl request for a given url
*
* @param string $url
* @param array $params
* @param boolean[] $params
* @return array
*/
protected function makeRequest($url, array $params = array())
Expand Down

0 comments on commit 21dcf29

Please sign in to comment.