Skip to content

Commit

Permalink
Applying patch from 'michaelc' to optimize to Shell::out()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 19, 2009
1 parent 317049b commit 9b7a10a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cake/console/libs/shell.php
Expand Up @@ -346,11 +346,7 @@ function in($prompt, $options = null, $default = null) {
*/
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);
}
Expand Down

0 comments on commit 9b7a10a

Please sign in to comment.