1
0
Fork 0
pull/2581/merge
Jordi Boggiano 2014-12-07 13:54:29 +00:00
parent 59648b12a4
commit fc3c7838b2
6 changed files with 6 additions and 5 deletions

View File

@ -59,6 +59,7 @@ class ClassLoader
if (!empty($this->prefixesPsr0)) {
return call_user_func_array('array_merge', $this->prefixesPsr0);
}
return array();
}

View File

@ -300,7 +300,7 @@ class Config
* This should be used to read COMPOSER_ environment variables
* that overload config values.
*
* @param string $var
* @param string $var
* @return string|boolean
*/
private function getComposerEnv($var)

View File

@ -99,7 +99,8 @@ class Application extends BaseApplication
if ($name = $this->getCommandName($input)) {
try {
$commandName = $this->find($name)->getName();
} catch (\InvalidArgumentException $e) {}
} catch (\InvalidArgumentException $e) {
}
}
if ($commandName !== 'self-update' && $commandName !== 'selfupdate') {
if (time() > COMPOSER_DEV_WARNING_TIME) {

View File

@ -56,7 +56,6 @@ abstract class BasePackage implements PackageInterface
protected $repository;
protected $transportOptions;
/**
* All descendants' constructors should call this parent constructor
*

View File

@ -194,6 +194,6 @@ class CompletePackage extends Package implements CompletePackageInterface
*/
public function getReplacementPackage()
{
return is_string($this->abandoned)? $this->abandoned : null;
return is_string($this->abandoned) ? $this->abandoned : null;
}
}

View File

@ -63,7 +63,7 @@ class AllFunctionalTest extends \PHPUnit_Framework_TestCase
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Building the phar does not work on HHVM.');
}
$fs = new Filesystem;
$fs->removeDirectory(dirname(self::$pharPath));
$fs->ensureDirectoryExists(dirname(self::$pharPath));