Permalink
Browse files

corrected English grammar (s/does not exists/does not exist)

  • Loading branch information...
1 parent 03ff775 commit efb62270dfb1fbb3e002c42803af044d80458ade @shieldo shieldo committed Aug 13, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 Block/BlockServiceManager.php
  2. +4 −4 Exception/Strategy/StrategyManager.php
@@ -53,7 +53,7 @@ public function __construct(ContainerInterface $container, $debug, LoggerInterfa
private function load($type)
{
if (!$this->has($type)) {
- throw new \RuntimeException(sprintf('The block service `%s` does not exists', $type));
+ throw new \RuntimeException(sprintf('The block service `%s` does not exist', $type));
}
if (!$this->services[$type] instanceof BlockServiceInterface) {
@@ -87,7 +87,7 @@ public function __construct(ContainerInterface $container, array $filters, array
public function setDefaultFilter($name)
{
if (!array_key_exists($name, $this->filters)) {
- throw new \InvalidArgumentException(sprintf('Cannot set default exception filter "%s". It does not exists.', $name));
+ throw new \InvalidArgumentException(sprintf('Cannot set default exception filter "%s". It does not exist.', $name));
}
$this->defaultFilter = $name;
@@ -103,7 +103,7 @@ public function setDefaultFilter($name)
public function setDefaultRenderer($name)
{
if (!array_key_exists($name, $this->renderers)) {
- throw new \InvalidArgumentException(sprintf('Cannot set default exception renderer "%s". It does not exists.', $name));
+ throw new \InvalidArgumentException(sprintf('Cannot set default exception renderer "%s". It does not exist.', $name));
}
$this->defaultRenderer = $name;
@@ -186,7 +186,7 @@ public function getBlockFilter(BlockInterface $block)
protected function getFilterService($name)
{
if (!isset($this->filters[$name])) {
- throw new \RuntimeException('The filter "%s" does not exists.');
+ throw new \RuntimeException('The filter "%s" does not exist.');
}
return $this->container->get($this->filters[$name]);
@@ -204,7 +204,7 @@ protected function getFilterService($name)
protected function getRendererService($name)
{
if (!isset($this->renderers[$name])) {
- throw new \RuntimeException('The renderer "%s" does not exists.');
+ throw new \RuntimeException('The renderer "%s" does not exist.');
}
return $this->container->get($this->renderers[$name]);

0 comments on commit efb6227

Please sign in to comment.