1
0
Fork 0

Trim output before splitting lines to avoid blank entries, closes #1978

pull/1978/merge
Jordi Boggiano 2013-06-18 17:23:41 +02:00
parent 27d958a1de
commit 65dae83ee6
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ class ProcessExecutor
public function splitLines($output)
{
$output = trim($output);
return ((string) $output === '') ? array() : preg_split('{\r?\n}', $output);
}