@@ 98-105 (lines=8) @@ | ||
95 | * @param $output |
|
96 | * @return string|void |
|
97 | */ |
|
98 | private function prepareOutput($output) |
|
99 | { |
|
100 | if (empty($output)) { |
|
101 | return; |
|
102 | } |
|
103 | ||
104 | return '--Output: ' . PHP_EOL . implode('', $output) . PHP_EOL . '--End output.' . PHP_EOL; |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @param $error |
|
@@ 111-118 (lines=8) @@ | ||
108 | * @param $error |
|
109 | * @return string|void |
|
110 | */ |
|
111 | private function prepareError($error) |
|
112 | { |
|
113 | if (empty($error)) { |
|
114 | return; |
|
115 | } |
|
116 | ||
117 | return '--Error: ' . PHP_EOL . implode('', $error) . PHP_EOL . '--End error.' . PHP_EOL; |
|
118 | } |
|
119 | } |
|
120 |