Преглед на файлове

Made changes which fied warnings and errors in tests.

Leszek Prabucki преди 13 години
родител
ревизия
3f38eede8a
променени са 3 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 0 1
      src/Composer/Downloader/GitDownloader.php
  2. 0 1
      src/Composer/Downloader/HgDownloader.php
  3. 1 1
      src/Composer/Downloader/VcsDownloader.php

+ 0 - 1
src/Composer/Downloader/GitDownloader.php

@@ -48,7 +48,6 @@ class GitDownloader extends VcsDownloader
      */
     protected function enforceCleanDirectory($path)
     {
-        $output = array();
         $this->process->execute(sprintf('cd %s && git status --porcelain', escapeshellarg($path)), $output);
         if (trim($output)) {
             throw new \RuntimeException('Source directory has uncommitted changes');

+ 0 - 1
src/Composer/Downloader/HgDownloader.php

@@ -48,7 +48,6 @@ class HgDownloader extends VcsDownloader
      */
     protected function enforceCleanDirectory($path)
     {
-        $output = array();
         $this->process->execute(sprintf('cd %s && hg st', escapeshellarg($path)), $output);
         if (trim($output)) {
             throw new \RuntimeException('Source directory has uncommitted changes');

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

@@ -100,4 +100,4 @@ abstract class VcsDownloader implements DownloaderInterface
      * @throws \RuntimeException if the directory is not clean
      */
     abstract protected function enforceCleanDirectory($path);
-}
+}