Code formatting
Updating variable name and whitespace formats inline with the project’s standardspull/5846/head
parent
0a3145821f
commit
a330d27b10
|
@ -70,10 +70,10 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
||||||
// realpath() below will not understand
|
// realpath() below will not understand
|
||||||
// url that starts with "file://"
|
// url that starts with "file://"
|
||||||
$needle = 'file://';
|
$needle = 'file://';
|
||||||
$is_file_protocol = false;
|
$isFileProtocol = false;
|
||||||
if (0 === strpos($url, $needle)) {
|
if (0 === strpos($url, $needle)) {
|
||||||
$url = substr($url, strlen($needle));
|
$url = substr($url, strlen($needle));
|
||||||
$is_file_protocol = true;
|
$isFileProtocol = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// realpath() below will not understand %20 spaces etc.
|
// realpath() below will not understand %20 spaces etc.
|
||||||
|
@ -83,7 +83,7 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
||||||
|
|
||||||
$url = realpath($url);
|
$url = realpath($url);
|
||||||
|
|
||||||
if ($is_file_protocol) {
|
if ($isFileProtocol) {
|
||||||
$url = $needle . $url;
|
$url = $needle . $url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue