1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00
This commit is contained in:
Jordi Boggiano 2012-06-23 11:58:18 +02:00
parent b566ba77ac
commit 66e9dcddf4
28 changed files with 110 additions and 111 deletions

View file

@ -110,7 +110,7 @@ class CompositeRepository implements RepositoryInterface
*/
public function removePackage(PackageInterface $package)
{
foreach($this->repositories as $repository) {
foreach ($this->repositories as $repository) {
/* @var $repository RepositoryInterface */
$repository->removePackage($package);
}

View file

@ -20,7 +20,6 @@ use Composer\Package\Version\VersionParser;
*/
class PlatformRepository extends ArrayRepository
{
protected function initialize()
{
parent::initialize();

View file

@ -27,7 +27,7 @@ interface RepositoryInterface extends \Countable
*
* @param PackageInterface $package package instance
*
* @return Boolean
* @return bool
*/
public function hasPackage(PackageInterface $package);

View file

@ -57,7 +57,7 @@ abstract class VcsDriver implements VcsDriverInterface
public function hasComposerFile($identifier)
{
try {
return (Boolean) $this->getComposerInformation($identifier);
return (bool) $this->getComposerInformation($identifier);
} catch (TransportException $e) {
}
@ -94,6 +94,6 @@ abstract class VcsDriver implements VcsDriverInterface
protected static function isLocalUrl($url)
{
return (Boolean) preg_match('{^(file://|/|[a-z]:[\\\\/])}i', $url);
return (bool) preg_match('{^(file://|/|[a-z]:[\\\\/])}i', $url);
}
}

View file

@ -86,8 +86,8 @@ interface VcsDriverInterface
*
* @param IOInterface $io IO instance
* @param string $url
* @param Boolean $shallow unless true, only shallow checks (url matching typically) should be done
* @return Boolean
* @param bool $shallow unless true, only shallow checks (url matching typically) should be done
* @return bool
*/
public static function supports(IOInterface $io, $url, $deep = false);
}