Trim output before splitting lines to avoid blank entries, closes #1978
parent
27d958a1de
commit
65dae83ee6
|
@ -71,6 +71,8 @@ class ProcessExecutor
|
|||
|
||||
public function splitLines($output)
|
||||
{
|
||||
$output = trim($output);
|
||||
|
||||
return ((string) $output === '') ? array() : preg_split('{\r?\n}', $output);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue