瀏覽代碼

Merge pull request #3601 from SofHad/unused-parameters

Suppress unused parameters in HomeCommand
Jordi Boggiano 10 年之前
父節點
當前提交
ddc1d377d7
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      src/Composer/Command/HomeCommand.php

+ 3 - 5
src/Composer/Command/HomeCommand.php

@@ -55,7 +55,7 @@ EOT
      */
     protected function execute(InputInterface $input, OutputInterface $output)
     {
-        $repo = $this->initializeRepo($input, $output);
+        $repo = $this->initializeRepo();
         $return = 0;
 
         foreach ($input->getArgument('packages') as $packageName) {
@@ -138,13 +138,11 @@ EOT
     }
 
     /**
-     * initializes the repo
+     * Initializes the repo
      *
-     * @param  InputInterface      $input
-     * @param  OutputInterface     $output
      * @return CompositeRepository
      */
-    private function initializeRepo(InputInterface $input, OutputInterface $output)
+    private function initializeRepo()
     {
         $composer = $this->getComposer(false);