Skip to content

Commit 716c8e0

Browse files
committed
code formatting
1 parent faeef15 commit 716c8e0

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/Nmap/Nmap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,4 @@ public static function parseOutput(string $xmlFile)
180180
{
181181
return (new XmlOutputParser($xmlFile))->parse();
182182
}
183-
184183
}

src/Nmap/Util/ProcessExecutor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ public function execute(array $command, int $timeout = 60): int
3939

4040
return (int) $process->getExitCode();
4141
}
42-
4342
}

src/Nmap/XmlOutputParser.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ public function parse(): array
157157

158158
$hosts = [];
159159
foreach ($xml->host as $xmlHost) {
160-
161160
$state = $xmlHost->status->attributes()->state ?? null;
162161
if ($state === null) {
163162
// ? log ? throw?
@@ -272,7 +271,6 @@ public static function parseScriptElems(SimpleXMLElement $xmlScript): array
272271
if (isset($xmlScript->table)) {
273272
$elems = [];
274273
foreach ($xmlScript->table as $xmlTable) {
275-
276274
$attributes = $xmlTable->attributes();
277275
if ($attributes === null) {
278276
continue;
@@ -326,7 +324,6 @@ public static function parsePorts(SimpleXMLElement $xmlPorts): array
326324

327325
$attrs = $xmlPort->attributes();
328326
if (!is_null($attrs) && !is_null($xmlPort->state)) {
329-
330327
$state = $xmlPort->state->attributes()->state ?? null;
331328

332329
if ($state === null) {
@@ -376,5 +373,4 @@ public static function parseAddresses(SimpleXMLElement $host): array
376373

377374
return $addresses;
378375
}
379-
380376
}

0 commit comments

Comments
 (0)