File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments