mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
CS fixes
This commit is contained in:
parent
b566ba77ac
commit
66e9dcddf4
28 changed files with 110 additions and 111 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ use Composer\Package\Version\VersionParser;
|
|||
*/
|
||||
class PlatformRepository extends ArrayRepository
|
||||
{
|
||||
|
||||
protected function initialize()
|
||||
{
|
||||
parent::initialize();
|
||||
|
|
|
@ -27,7 +27,7 @@ interface RepositoryInterface extends \Countable
|
|||
*
|
||||
* @param PackageInterface $package package instance
|
||||
*
|
||||
* @return Boolean
|
||||
* @return bool
|
||||
*/
|
||||
public function hasPackage(PackageInterface $package);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue