1
0
Fork 0

Fixed typos

pull/2532/head
Pascal Borreli 2013-12-27 11:36:18 +00:00
parent 6ead35f189
commit 2f4df9d459
8 changed files with 16 additions and 11 deletions

View File

@ -72,8 +72,8 @@ class EventDispatcher
/** /**
* Dispatch a script event. * Dispatch a script event.
* *
* @param string $eventName The constant in ScriptEvents * @param string $eventName The constant in ScriptEvents
* @param Event $event * @param Script\Event $event
*/ */
public function dispatchScript($eventName, Script\Event $event = null) public function dispatchScript($eventName, Script\Event $event = null)
{ {

View File

@ -285,6 +285,7 @@ class Factory
/** /**
* @param IOInterface $io * @param IOInterface $io
* @param Config $config * @param Config $config
* @param EventDispatcher $eventDispatcher
* @return Repository\RepositoryManager * @return Repository\RepositoryManager
*/ */
protected function createRepositoryManager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null) protected function createRepositoryManager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null)

View File

@ -375,9 +375,10 @@ class VersionParser
* *
* Support function for {@link parseConstraint()} * Support function for {@link parseConstraint()}
* *
* @param array $matches Array with version parts in array indexes 1,2,3,4 * @param array $matches Array with version parts in array indexes 1,2,3,4
* @param int $position 1,2,3,4 - which segment of the version to decrement * @param int $position 1,2,3,4 - which segment of the version to decrement
* @param string $pad The string to pad version parts after $position * @param int $increment
* @param string $pad The string to pad version parts after $position
* @return string The new version * @return string The new version
*/ */
private function manipulateVersionString($matches, $position, $increment = 0, $pad = '0') private function manipulateVersionString($matches, $position, $increment = 0, $pad = '0')

View File

@ -43,7 +43,9 @@ class PluginManager
/** /**
* Initializes plugin manager * Initializes plugin manager
* *
* @param Composer $composer * @param Composer $composer
* @param IOInterface $io
* @param RepositoryInterface $globalRepository
*/ */
public function __construct(Composer $composer, IOInterface $io, RepositoryInterface $globalRepository = null) public function __construct(Composer $composer, IOInterface $io, RepositoryInterface $globalRepository = null)
{ {
@ -126,7 +128,7 @@ class PluginManager
$this->registerPackage($package); $this->registerPackage($package);
} }
// Backward compatability // Backward compatibility
if ('composer-installer' === $package->getType()) { if ('composer-installer' === $package->getType()) {
$this->registerPackage($package); $this->registerPackage($package);
} }

View File

@ -104,6 +104,7 @@ abstract class VcsDriver implements VcsDriverInterface
/** /**
* Return if current repository url is local * Return if current repository url is local
* *
* @param string $url
* @return boolean Repository url is local * @return boolean Repository url is local
*/ */
protected static function isLocalUrl($url) protected static function isLocalUrl($url)

View File

@ -107,7 +107,7 @@ class NoProxyPattern
} }
/** /**
* Check an IP adress against a CIDR * Check an IP address against a CIDR
* *
* http://framework.zend.com/svn/framework/extras/incubator/library/ZendX/Whois/Adapter/Cidr.php * http://framework.zend.com/svn/framework/extras/incubator/library/ZendX/Whois/Adapter/Cidr.php
* *
@ -141,7 +141,7 @@ class NoProxyPattern
$check = ($a << 24) + ($b << 16) + ($c << 8) + $d; $check = ($a << 24) + ($b << 16) + ($c << 8) + $d;
// If the ip is within the range, including highest/lowest values, // If the ip is within the range, including highest/lowest values,
// then it's witin the CIDR range // then it's within the CIDR range
return $check >= $low && $check <= $high; return $check >= $low && $check <= $high;
} }
} }

View File

@ -120,7 +120,7 @@ final class StreamContextFactory
} }
/** /**
* A bug in PHP prevents the headers from correctly beeing sent when a content-type header is present and * A bug in PHP prevents the headers from correctly being sent when a content-type header is present and
* NOT at the end of the array * NOT at the end of the array
* *
* This method fixes the array by moving the content-type header to the end * This method fixes the array by moving the content-type header to the end

View File

@ -25,7 +25,7 @@ class BasePackageTest extends \PHPUnit_Framework_TestCase
try { try {
$package->setRepository($repository); $package->setRepository($repository);
} catch (\Exception $e) { } catch (\Exception $e) {
$this->fail('Set againt the same repository is allowed.'); $this->fail('Set against the same repository is allowed.');
} }
} }