Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Feb 17, 2018
1 parent ec77fdb commit 91b1c60
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Archive7z.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ public function getEntries()
'-slt',
], $this->decorateCmdExtract()));

$out = \explode(\PHP_EOL, $this->execute($process)->getOutput()); //todo: use getIterator
$this->execute($process);

$out = \explode(\PHP_EOL, $process->getOutput());

$list = [];
$parser = new Parser($out);
Expand Down Expand Up @@ -537,7 +539,7 @@ public function isValid()
$this->filename,
], $this->decorateCmdExtract()));

$process = $this->execute($process);
$this->execute($process);

return false !== \strpos($process->getOutput(), 'Everything is Ok');
}
Expand All @@ -546,7 +548,6 @@ public function isValid()
/**
* @param Process $process
*
* @return Process
* @throws \Symfony\Component\Process\Exception\ProcessFailedException
*/
protected function execute(Process $process)
Expand All @@ -566,6 +567,6 @@ protected function execute(Process $process)
$process->setCommandLine($localeProcess->getCommandLine() . ' & ' . $process->getCommandLine());
}

return $process->mustRun();
$process->mustRun();
}
}

0 comments on commit 91b1c60

Please sign in to comment.