Fixed typos

main
Pascal Borreli 11 years ago
parent 6ead35f189
commit 2f4df9d459

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

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

@ -375,9 +375,10 @@ class VersionParser
*
* Support function for {@link parseConstraint()}
*
* @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 string $pad The string to pad version parts after $position
* @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 $increment
* @param string $pad The string to pad version parts after $position
* @return string The new version
*/
private function manipulateVersionString($matches, $position, $increment = 0, $pad = '0')

@ -43,7 +43,9 @@ class PluginManager
/**
* 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)
{
@ -126,7 +128,7 @@ class PluginManager
$this->registerPackage($package);
}
// Backward compatability
// Backward compatibility
if ('composer-installer' === $package->getType()) {
$this->registerPackage($package);
}

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

@ -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
*
@ -141,7 +141,7 @@ class NoProxyPattern
$check = ($a << 24) + ($b << 16) + ($c << 8) + $d;
// 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;
}
}

@ -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
*
* This method fixes the array by moving the content-type header to the end

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

Loading…
Cancel
Save