diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 6556aee5b..123e08bce 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -193,7 +193,7 @@ class ComposerRepository extends ArrayRepository implements NotifiableRepository try { $jsonUrlParts = parse_url($this->url); - if (isset($jsonUrlParts['path']) and strpos($jsonUrlParts['path'], '/packages.json') !== false) { + if (isset($jsonUrlParts['path']) && false !== strpos($jsonUrlParts['path'], '/packages.json')) { $jsonUrl = $this->url; } else { $jsonUrl = $this->url . '/packages.json';