From 3f38eede8ab1b9a19c0e87038593651f0fcd80c6 Mon Sep 17 00:00:00 2001 From: Leszek Prabucki Date: Mon, 23 Jan 2012 08:41:59 +0100 Subject: [PATCH] Made changes which fied warnings and errors in tests. --- src/Composer/Downloader/GitDownloader.php | 1 - src/Composer/Downloader/HgDownloader.php | 1 - src/Composer/Downloader/VcsDownloader.php | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 2a51c1e9f..170749674 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/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'); diff --git a/src/Composer/Downloader/HgDownloader.php b/src/Composer/Downloader/HgDownloader.php index a9953db0d..768280845 100644 --- a/src/Composer/Downloader/HgDownloader.php +++ b/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'); diff --git a/src/Composer/Downloader/VcsDownloader.php b/src/Composer/Downloader/VcsDownloader.php index 8af2ce48e..c24411310 100644 --- a/src/Composer/Downloader/VcsDownloader.php +++ b/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); -} \ No newline at end of file +}