File tree 1 file changed +7
-14
lines changed
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,6 @@ class Command
97
97
*/
98
98
protected $ _args = array ();
99
99
100
- /**
101
- * @var string the full command string to execute
102
- */
103
- protected $ _execCommand ;
104
-
105
100
/**
106
101
* @var string the stdout output
107
102
*/
@@ -232,16 +227,14 @@ public function getCommand()
232
227
*/
233
228
public function getExecCommand ()
234
229
{
235
- if ($ this ->_execCommand ===null ) {
236
- $ command = $ this ->getCommand ();
237
- if (!$ command ) {
238
- $ this ->_error = 'Could not locate any executable command ' ;
239
- return false ;
240
- }
241
- $ args = $ this ->getArgs ();
242
- $ this ->_execCommand = $ args ? $ command .' ' .$ args : $ command ;
230
+ $ command = $ this ->getCommand ();
231
+ if (!$ command ) {
232
+ $ this ->_error = 'Could not locate any executable command ' ;
233
+ return false ;
243
234
}
244
- return $ this ->_execCommand ;
235
+
236
+ $ args = $ this ->getArgs ();
237
+ return $ args ? $ command .' ' .$ args : $ command ;
245
238
}
246
239
247
240
/**
You can’t perform that action at this time.
0 commit comments