Use implode instead of join
parent
41c3307fc5
commit
dc70b40d34
|
@ -582,7 +582,7 @@ HEADER;
|
|||
$file .= <<<'INCLUDE_PATH'
|
||||
$includePaths = require __DIR__ . '/include_paths.php';
|
||||
array_push($includePaths, get_include_path());
|
||||
set_include_path(join(PATH_SEPARATOR, $includePaths));
|
||||
set_include_path(implode(PATH_SEPARATOR, $includePaths));
|
||||
|
||||
|
||||
INCLUDE_PATH;
|
||||
|
|
|
@ -463,7 +463,7 @@ EOT
|
|||
$io = $this->getIO();
|
||||
$io->write('<info>name</info> : ' . $package->getPrettyName());
|
||||
$io->write('<info>descrip.</info> : ' . $package->getDescription());
|
||||
$io->write('<info>keywords</info> : ' . join(', ', $package->getKeywords() ?: array()));
|
||||
$io->write('<info>keywords</info> : ' . implode(', ', $package->getKeywords() ?: array()));
|
||||
$this->printVersions($package, $versions, $installedRepo);
|
||||
if ($latestPackage) {
|
||||
$style = $this->getVersionStyle($latestPackage, $package);
|
||||
|
|
|
@ -158,13 +158,13 @@ class ConsoleIO extends BaseIO
|
|||
|
||||
if (true === $stderr && $this->output instanceof ConsoleOutputInterface) {
|
||||
$this->output->getErrorOutput()->write($messages, $newline, $sfVerbosity);
|
||||
$this->lastMessageErr = join($newline ? "\n" : '', (array) $messages);
|
||||
$this->lastMessageErr = implode($newline ? "\n" : '', (array) $messages);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->output->write($messages, $newline, $sfVerbosity);
|
||||
$this->lastMessage = join($newline ? "\n" : '', (array) $messages);
|
||||
$this->lastMessage = implode($newline ? "\n" : '', (array) $messages);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -193,7 +193,7 @@ class ConsoleIO extends BaseIO
|
|||
private function doOverwrite($messages, $newline, $size, $stderr, $verbosity)
|
||||
{
|
||||
// messages can be an array, let's convert it to string anyway
|
||||
$messages = join($newline ? "\n" : '', (array) $messages);
|
||||
$messages = implode($newline ? "\n" : '', (array) $messages);
|
||||
|
||||
// since overwrite is supposed to overwrite last message...
|
||||
if (!isset($size)) {
|
||||
|
|
|
@ -25,7 +25,7 @@ class ComposerAutoloaderInitFilesAutoload
|
|||
|
||||
$includePaths = require __DIR__ . '/include_paths.php';
|
||||
array_push($includePaths, get_include_path());
|
||||
set_include_path(join(PATH_SEPARATOR, $includePaths));
|
||||
set_include_path(implode(PATH_SEPARATOR, $includePaths));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
|
||||
if ($useStaticLoader) {
|
||||
|
|
Loading…
Reference in New Issue