Pārlūkot izejas kodu

Code formatting

Updating variable name and whitespace formats inline with the project’s
standards
Mark Ingman 8 gadi atpakaļ
vecāks
revīzija
a330d27b10
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      src/Composer/Downloader/VcsDownloader.php

+ 5 - 5
src/Composer/Downloader/VcsDownloader.php

@@ -70,10 +70,10 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
                     // realpath() below will not understand
                     // url that starts with "file://"
                     $needle = 'file://';
-                    $is_file_protocol = false;
+                    $isFileProtocol = false;
                     if (0 === strpos($url, $needle)) {
                         $url = substr($url, strlen($needle));
-                        $is_file_protocol = true;
+                        $isFileProtocol = true;
                     }
 
                     // realpath() below will not understand %20 spaces etc.
@@ -83,9 +83,9 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
 
                     $url = realpath($url);
 
-					if ($is_file_protocol) {
-						$url = $needle . $url;
-					}
+                    if ($isFileProtocol) {
+                        $url = $needle . $url;
+                    }
                 }
                 $this->doDownload($package, $path, $url);
                 break;