Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Nov 5, 2013
1 parent e566f52 commit 74a78ee
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/Nmap/Nmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class Nmap

private $enableServiceInfo = false;

private $enableVerbose = false;
private $enableVerbose = false;

private $disablePortScan = false;
private $disablePortScan = false;

/**
* @return Nmap
Expand Down Expand Up @@ -76,14 +76,11 @@ public function scan(array $targets, array $ports = array())

if (true === $this->disablePortScan) {
$options[] = '-sn';
} else {
if (!empty($ports)) {
$options[] = '-p '.implode(',', $ports);
}
} elseif (!empty($ports)) {
$options[] = '-p '.implode(',', $ports);
}

$options[] = '-oX';

$command = sprintf('nmap %s %s %s',
implode(' ', $options),
ProcessUtils::escapeArgument($this->outputFile),
Expand Down Expand Up @@ -136,7 +133,7 @@ public function enableVerbose($enable = true)
}

/**
* @param boolean $enable
* @param boolean $disable
*
* @return Nmap
*/
Expand Down

0 comments on commit 74a78ee

Please sign in to comment.