Skip to content

Commit

Permalink
Removed timeout - not used anywhere for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sushilkg committed Sep 1, 2018
1 parent 2d0f815 commit 13380da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Helper/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,16 @@ class Shell
protected $input;
protected $pipes;
protected $process;
protected $startTime;
protected $status;
protected $timeout;

public function __construct(string $command, string $input = null, float $timeout = 10)
public function __construct(string $command, string $input = null)
{
if (!\function_exists('proc_open')) {
throw new RuntimeException('Required proc_open could not be found in your PHP setup');
}

$this->command = $command;
$this->input = $input;
$this->timeout = $timeout;
$this->status = null;
}

Expand Down Expand Up @@ -89,8 +86,6 @@ public function execute()

$this->setInput();
$this->updateStatus();

$this->startTime = microtime(true);
}

public function getOutput()
Expand Down

0 comments on commit 13380da

Please sign in to comment.