Selaa lähdekoodia

[Component] Fixed some spelling typos

pborreli 14 vuotta sitten
vanhempi
commit
86cc6a11d9

+ 1 - 1
src/Symfony/Component/DependencyInjection/Container.php

@@ -123,7 +123,7 @@ class Container implements ContainerInterface, \ArrayAccess
      *
      * @param  string $name The parameter name
      *
-     * @return boolean  The presense of parameter in container
+     * @return boolean The presence of parameter in container
      */
     public function hasParameter($name)
     {

+ 1 - 1
src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php

@@ -200,7 +200,7 @@ EOF;
     }
 
     /**
-     * @throws \RuntimeException When trying to dump object or ressource
+     * @throws \RuntimeException When trying to dump object or resource
      */
     static public function phpToXml($value)
     {

+ 1 - 1
src/Symfony/Component/HttpFoundation/File/MimeType/ContentTypeMimeTypeGuesser.php

@@ -21,7 +21,7 @@ use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
 class ContentTypeMimeTypeGuesser implements MimeTypeGuesserInterface
 {
     /**
-     * Returns whether this guesser is supported on the corrent OS/PHP setup
+     * Returns whether this guesser is supported on the current OS/PHP setup
      *
      * @return boolean
      */

+ 1 - 1
src/Symfony/Component/HttpFoundation/File/MimeType/FileinfoMimeTypeGuesser.php

@@ -21,7 +21,7 @@ use Symfony\Component\HttpFoundation\File\Exception\AccessDeniedException;
 class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface
 {
     /**
-     * Returns whether this guesser is supported on the corrent OS/PHP setup
+     * Returns whether this guesser is supported on the current OS/PHP setup
      *
      * @return boolean
      */

+ 1 - 1
src/Symfony/Component/HttpFoundation/Response.php

@@ -295,7 +295,7 @@ class Response
      *
      * This method indicates that the response must not be served stale by a
      * cache in any circumstance without first revalidating with the origin.
-     * When present, the TTL of the response should not be overriden to be
+     * When present, the TTL of the response should not be overridden to be
      * greater than the value provided by the origin.
      *
      * @return Boolean true if the response must be revalidated by a cache, false otherwise

+ 4 - 4
src/Symfony/Component/HttpKernel/Cache/Cache.php

@@ -59,12 +59,12 @@ class Cache implements HttpKernelInterface
      *   * stale_while_revalidate Specifies the default number of seconds (the granularity is the second as the
      *                            Response TTL precision is a second) during which the cache can immediately return
      *                            a stale response while it revalidates it in the background (default: 2).
-     *                            This setting is overriden by the stale-while-revalidate HTTP Cache-Control
+     *                            This setting is overridden by the stale-while-revalidate HTTP Cache-Control
      *                            extension (see RFC 5861).
      *
-     *   * stale_if_error         Specifies the default number of seconds (the granularit is the second) during which
+     *   * stale_if_error         Specifies the default number of seconds (the granularity is the second) during which
      *                            the cache can server a stale response when an error is encountered (default: 60).
-     *                            This setting is overriden by the stale-if-error HTTP Cache-Control extension
+     *                            This setting is overridden by the stale-if-error HTTP Cache-Control extension
      *                            (see RFC 5861).
      *
      * @param HttpKernelInterface $kernel An HttpKernelInterface instance
@@ -138,7 +138,7 @@ class Cache implements HttpKernelInterface
      */
     public function handle(Request $request = null, $type = HttpKernelInterface::MASTER_REQUEST, $raw = false)
     {
-        // FIXME: catch exceptions and implement a 500 error page here? -> in Varnish, there is a built-it error page mechanism
+        // FIXME: catch exceptions and implement a 500 error page here? -> in Varnish, there is a built-in error page mechanism
         if (null === $request) {
             $request = new Request();
         }

+ 1 - 1
src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php

@@ -21,7 +21,7 @@ use Symfony\Component\Routing\Route;
 class ApacheMatcherDumper extends MatcherDumper
 {
     /**
-     * Dumps a set of routes to a .htacces format.
+     * Dumps a set of routes to a .htaccess format.
      *
      * Available options:
      *

+ 2 - 4
src/Symfony/Component/Translation/MessageCatalogueInterface.php

@@ -16,7 +16,7 @@ use Symfony\Component\Translation\Resource\ResourceInterface;
 /**
  * MessageCatalogueInterface.
  *
- * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
+ * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */
 interface MessageCatalogueInterface
 {
@@ -29,8 +29,6 @@ interface MessageCatalogueInterface
 
     /**
      * Gets the domains.
-     *
-     * @param array An array of domains
      */
     function getDomains();
 
@@ -41,7 +39,7 @@ interface MessageCatalogueInterface
      *
      * @param string $domain The domain name
      *
-     * @param array An array of messages
+     * @return array An array of messages
      */
     function getMessages($domain = null);
 

+ 2 - 2
src/Symfony/Component/Translation/TranslatorInterface.php

@@ -14,7 +14,7 @@ namespace Symfony\Component\Translation;
 /**
  * TranslatorInterface.
  *
- * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
+ * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  */
 interface TranslatorInterface
 {
@@ -53,7 +53,7 @@ interface TranslatorInterface
     /**
      * Returns the current locale.
      *
-     * @return stringThe locale
+     * @return string The locale
      */
     function getLocale();
 }