Skip to content

Commit b6b7cf0

Browse files
committed
Use commands var
1 parent 1948823 commit b6b7cf0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

addons/Spock/SpockListener.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ public function run($data)
4040

4141
$this->data = $data;
4242

43-
$process = new Process($this->commands(), BASE);
43+
$process = new Process($commands = $this->commands(), BASE);
4444

4545
// Log any exceptions when attempting to run the commands
4646
try {
4747
$process->run();
4848
} catch (\Exception $e) {
49-
\Log::error('Spock command hit an exception: ' . $this->commands());
49+
\Log::error('Spock command hit an exception: ' . $commands);
5050
\Log::error($e->getMessage());
5151
}
5252

5353
// If the process did not exit successfully log the details
5454
if ($process->getExitCode() != 0) {
55-
\Log::error("Spock command exited unsuccessfully: ". PHP_EOL .
56-
$this->commands() . PHP_EOL .
55+
\Log::error(
56+
"Spock command exited unsuccessfully: ". PHP_EOL .
57+
$commands . PHP_EOL .
5758
$process->getErrorOutput() . PHP_EOL .
5859
$process->getOutput()
5960
);
6061
}
61-
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)