mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Applying patch from 'michaelc' to optimize to Shell::out()
This commit is contained in:
parent
317049b736
commit
9b7a10a4bc
1 changed files with 1 additions and 5 deletions
|
@ -346,11 +346,7 @@ class Shell extends Object {
|
|||
*/
|
||||
function out($string, $newline = true) {
|
||||
if (is_array($string)) {
|
||||
$str = '';
|
||||
foreach ($string as $message) {
|
||||
$str .= $message ."\n";
|
||||
}
|
||||
$string = $str;
|
||||
$string = implode("\n", $string) . "\n";
|
||||
}
|
||||
return $this->Dispatch->stdout($string, $newline);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue