Jordi Boggiano 12 years ago
parent
commit
ef637c8f1a

+ 2 - 0
src/Composer/Autoload/AutoloadGenerator.php

@@ -312,6 +312,7 @@ EOF;
                 // path starts with vendor dir
                 return $vendorPath . substr($path, strlen($relVendorPath));
             }
+
             return strtr(getcwd(), '\\', '/').'/'.$path;
         }
 
@@ -407,6 +408,7 @@ REGISTER_AUTOLOAD;
         $file .= <<<METHOD_FOOTER
         \$loader->register();
 $filesCode
+
         return \$loader;
     }
 

+ 2 - 2
src/Composer/Autoload/ClassMapGenerator.php

@@ -40,8 +40,8 @@ class ClassMapGenerator
     /**
      * Iterate over all files in the given directory searching for classes
      *
-     * @param Iterator|string $dir The directory to search in or an iterator
-     * @param string $whitelist Regex that matches against the file path
+     * @param Iterator|string $dir       The directory to search in or an iterator
+     * @param string          $whitelist Regex that matches against the file path
      *
      * @return array A class map array
      */

+ 0 - 1
src/Composer/Command/StatusCommand.php

@@ -13,7 +13,6 @@
 namespace Composer\Command;
 
 use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
 use Composer\Downloader\VcsDownloader;

+ 2 - 2
src/Composer/DependencyResolver/DefaultPolicy.php

@@ -146,8 +146,8 @@ class DefaultPolicy implements PolicyInterface
      * Replace constraints are ignored. This method should only be used for
      * prioritisation, not for actual constraint verification.
      *
-     * @param PackageInterface $source
-     * @param PackageInterface $target
+     * @param  PackageInterface $source
+     * @param  PackageInterface $target
      * @return bool
      */
     protected function replaces(PackageInterface $source, PackageInterface $target)

+ 1 - 1
src/Composer/DependencyResolver/Solver.php

@@ -524,7 +524,7 @@ class Solver
 
         if (!$job) {
             $why->disable();
-            
+
             return;
         }
 

+ 2 - 2
src/Composer/Downloader/DownloadManager.php

@@ -30,8 +30,8 @@ class DownloadManager
     /**
      * Initializes download manager.
      *
-     * @param bool             $preferSource prefer downloading from source
-     * @param Filesystem|null  $filesystem   custom Filesystem object
+     * @param bool            $preferSource prefer downloading from source
+     * @param Filesystem|null $filesystem   custom Filesystem object
      */
     public function __construct($preferSource = false, Filesystem $filesystem = null)
     {

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

@@ -154,16 +154,16 @@ abstract class VcsDownloader implements DownloaderInterface
      * Checks for changes to the local copy
      *
      * @param  string      $path package directory
-     * @return string|null       changes or null
+     * @return string|null changes or null
      */
     abstract public function getLocalChanges($path);
 
     /**
      * Fetches the commit logs between two commits
      *
-     * @param string $fromReference the source reference
-     * @param string $toReference   the target reference
-     * @param string $path          the package path
+     * @param  string $fromReference the source reference
+     * @param  string $toReference   the target reference
+     * @param  string $path          the package path
      * @return string
      */
     abstract protected function getCommitLogs($fromReference, $toReference, $path);

+ 1 - 1
src/Composer/Installer/InstallationManager.php

@@ -56,7 +56,7 @@ class InstallationManager
     public function disableCustomInstallers()
     {
         foreach ($this->installers as $i => $installer) {
-            if ( ! $installer instanceof InstallerInstaller) {
+            if (!$installer instanceof InstallerInstaller) {
                 continue;
             }
 

+ 1 - 1
src/Composer/Package/Loader/JsonLoader.php

@@ -27,7 +27,7 @@ class JsonLoader
     }
 
     /**
-     * @param  string|JsonFile $json A filename, json string or JsonFile instance to load the package from
+     * @param  string|JsonFile                    $json A filename, json string or JsonFile instance to load the package from
      * @return \Composer\Package\PackageInterface
      */
     public function load($json)

+ 1 - 1
src/Composer/Package/Loader/LoaderInterface.php

@@ -22,7 +22,7 @@ interface LoaderInterface
     /**
      * Converts a package from an array to a real instance
      *
-     * @param array $package Package config
+     * @param  array                              $package Package config
      * @return \Composer\Package\PackageInterface
      */
     public function load(array $package);

+ 1 - 1
src/Composer/Util/Filesystem.php

@@ -76,7 +76,7 @@ class Filesystem
                 return;
             }
 
-            throw new \RuntimeException(sprintf('Could not rename "%s" to "%s".', $source, $target));
+            throw new \RuntimeException(sprintf('Could not rename "%s" to "%s".', $source, $target));
         }
     }