CS fixes for #1038
parent
9f3f80a8d0
commit
803178d28f
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue