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

Commit

Permalink
Small code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andor Dávid committed Aug 7, 2016
1 parent c399264 commit af28c56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/TaskTsLintRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Cheppers\AssetJar\AssetJarAware;
use Cheppers\AssetJar\AssetJarAwareInterface;
use Robo\Common\IO;
use Robo\Common\Timer;
use Robo\Result;
use Robo\Task\BaseTask;
use Symfony\Component\Process\Process;
Expand Down
16 changes: 3 additions & 13 deletions tests/_support/Helper/Module/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public function _cleanup()
public function runShellCommand($command)
{
$this->process = new Process($command);
$this->process->run();
$this->exitCode = $this->process->run();
$this->stdOutput = $this->process->getOutput();
$this->stdError = $this->process->getErrorOutput();

return $this;
}
Expand All @@ -55,10 +57,6 @@ public function runShellCommand($command)
*/
public function getExitCode()
{
if ($this->exitCode === null) {
$this->exitCode = $this->process->getExitCode();
}

return $this->exitCode;
}

Expand All @@ -67,10 +65,6 @@ public function getExitCode()
*/
public function getStdOutput()
{
if ($this->stdOutput === null) {
$this->stdOutput = $this->process->getOutput();
}

return $this->stdOutput;
}

Expand All @@ -79,10 +73,6 @@ public function getStdOutput()
*/
public function getStdError()
{
if ($this->stdError === null) {
$this->stdError = $this->process->getErrorOutput();
}

return $this->stdError;
}
}

0 comments on commit af28c56

Please sign in to comment.