1
0
Fork 0

Code formatting

Updating variable name and whitespace formats inline with the project’s
standards
pull/5846/head
Mark Ingman 2016-11-06 21:32:46 +00:00
parent 0a3145821f
commit a330d27b10
1 changed files with 5 additions and 5 deletions

View File

@ -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,9 +83,9 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
$url = realpath($url); $url = realpath($url);
if ($is_file_protocol) { if ($isFileProtocol) {
$url = $needle . $url; $url = $needle . $url;
} }
} }
$this->doDownload($package, $path, $url); $this->doDownload($package, $path, $url);
break; break;