mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 23:49:55 +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) {
|
function out($string, $newline = true) {
|
||||||
if (is_array($string)) {
|
if (is_array($string)) {
|
||||||
$str = '';
|
$string = implode("\n", $string) . "\n";
|
||||||
foreach ($string as $message) {
|
|
||||||
$str .= $message ."\n";
|
|
||||||
}
|
|
||||||
$string = $str;
|
|
||||||
}
|
}
|
||||||
return $this->Dispatch->stdout($string, $newline);
|
return $this->Dispatch->stdout($string, $newline);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue