1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Optimized this->getIO()

This commit is contained in:
Olivier Laviale 2015-09-13 23:30:09 +02:00
parent 320086dcc0
commit cc522c20bb
18 changed files with 177 additions and 154 deletions

View file

@ -104,9 +104,10 @@ EOT
return 0;
}
$this->getIO()->writeError('<info>scripts:</info>');
$io = $this->getIO();
$io->writeError('<info>scripts:</info>');
foreach ($scripts as $name => $script) {
$this->getIO()->write(' ' . $name);
$io->write(' ' . $name);
}
return 0;