1
0
Fork 0

CS fixes for #1038

pull/1045/head
Jordi Boggiano 2012-08-29 15:24:05 +02:00
parent 9f3f80a8d0
commit 803178d28f
1 changed files with 1 additions and 1 deletions

View File

@ -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';