瀏覽代碼

Fixed various typo

Pascal Borreli 14 年之前
父節點
當前提交
b5769c52d6
共有 25 個文件被更改,包括 32 次插入32 次删除
  1. 1 1
      src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php
  2. 1 1
      src/Symfony/Bundle/AsseticBundle/DependencyInjection/Configuration.php
  3. 1 1
      src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php
  4. 1 1
      src/Symfony/Bundle/DoctrineBundle/DependencyInjection/Configuration.php
  5. 1 1
      src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
  6. 2 2
      src/Symfony/Bundle/SecurityBundle/Resources/config/security_rememberme.xml
  7. 1 1
      src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php
  8. 1 1
      src/Symfony/Component/Config/Definition/PrototypedArrayNode.php
  9. 1 1
      src/Symfony/Component/Console/Input/StringInput.php
  10. 1 1
      src/Symfony/Component/CssSelector/Parser.php
  11. 1 1
      src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php
  12. 1 1
      src/Symfony/Component/DependencyInjection/DefinitionDecorator.php
  13. 1 1
      src/Symfony/Component/DomCrawler/Link.php
  14. 1 1
      src/Symfony/Component/HttpFoundation/File/UploadedFile.php
  15. 1 1
      src/Symfony/Component/HttpKernel/Events.php
  16. 2 2
      src/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php
  17. 1 1
      src/Symfony/Component/Locale/Stub/DateFormat/FullTransformer.php
  18. 4 4
      src/Symfony/Component/Locale/Stub/DateFormat/Transformer.php
  19. 1 1
      src/Symfony/Component/Locale/Stub/StubCollator.php
  20. 1 1
      src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php
  21. 2 2
      src/Symfony/Component/Locale/Stub/StubLocale.php
  22. 1 1
      src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php
  23. 1 1
      src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php
  24. 1 1
      src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
  25. 2 2
      src/Symfony/Component/Translation/PluralizationRules.php

+ 1 - 1
src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php

@@ -103,7 +103,7 @@ class EntityChoiceList extends ArrayChoiceList
         $this->unitOfWork = $em->getUnitOfWork();
         $this->unitOfWork = $em->getUnitOfWork();
         $this->identifier = $em->getClassMetadata($class)->getIdentifierFieldNames();
         $this->identifier = $em->getClassMetadata($class)->getIdentifierFieldNames();
 
 
-        // The propery option defines, which property (path) is used for
+        // The property option defines, which property (path) is used for
         // displaying entities as strings
         // displaying entities as strings
         if ($property) {
         if ($property) {
             $this->propertyPath = new PropertyPath($property);
             $this->propertyPath = new PropertyPath($property);

+ 1 - 1
src/Symfony/Bundle/AsseticBundle/DependencyInjection/Configuration.php

@@ -31,7 +31,7 @@ class Configuration implements ConfigurationInterface
     /**
     /**
      * Constructor
      * Constructor
      *
      *
-     * @param Boolean $debug    Wether to use the debug mode
+     * @param Boolean $debug    Whether to use the debug mode
      * @param array   $bundles  An array of bundle names
      * @param array   $bundles  An array of bundle names
      */
      */
     public function __construct($debug, array $bundles)
     public function __construct($debug, array $bundles)

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

@@ -71,7 +71,7 @@ EOT
                 $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
                 $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
             }
             }
         } else {
         } else {
-            $output->writeln('<error>ATTENTION:</error> This operation should not be executed in a production enviroment.' . PHP_EOL);
+            $output->writeln('<error>ATTENTION:</error> This operation should not be executed in a production environment.' . PHP_EOL);
             $output->writeln(sprintf('<info>Would drop the database named <comment>%s</comment>.</info>', $name));
             $output->writeln(sprintf('<info>Would drop the database named <comment>%s</comment>.</info>', $name));
             $output->writeln('Please run the operation with --force to execute');
             $output->writeln('Please run the operation with --force to execute');
             $output->writeln('<error>All data will be lost!</error>');
             $output->writeln('<error>All data will be lost!</error>');

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/DependencyInjection/Configuration.php

@@ -30,7 +30,7 @@ class Configuration implements ConfigurationInterface
     /**
     /**
      * Constructor
      * Constructor
      *
      *
-     * @param Boolean $debug Wether to use the debug mode
+     * @param Boolean $debug Whether to use the debug mode
      */
      */
     public function  __construct($debug)
     public function  __construct($debug)
     {
     {

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

@@ -18,7 +18,7 @@ class Configuration implements ConfigurationInterface
     /**
     /**
      * Constructor
      * Constructor
      *
      *
-     * @param Boolean $debug Wether to use the debug mode
+     * @param Boolean $debug Whether to use the debug mode
      */
      */
     public function  __construct($debug)
     public function  __construct($debug)
     {
     {

+ 2 - 2
src/Symfony/Bundle/SecurityBundle/Resources/config/security_rememberme.xml

@@ -8,7 +8,7 @@
         <parameter key="security.authentication.provider.rememberme.class">Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider</parameter>
         <parameter key="security.authentication.provider.rememberme.class">Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider</parameter>
 
 
         <parameter key="security.authentication.listener.rememberme.class">Symfony\Component\Security\Http\Firewall\RememberMeListener</parameter>
         <parameter key="security.authentication.listener.rememberme.class">Symfony\Component\Security\Http\Firewall\RememberMeListener</parameter>
-        <parameter key="security.rembemerme.token.provider.in_memory.class">Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider</parameter>
+        <parameter key="security.rememberme.token.provider.in_memory.class">Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider</parameter>
 
 
         <parameter key="security.authentication.rememberme.services.persistent.class">Symfony\Component\Security\Http\RememberMe\PersistentTokenBasedRememberMeServices</parameter>
         <parameter key="security.authentication.rememberme.services.persistent.class">Symfony\Component\Security\Http\RememberMe\PersistentTokenBasedRememberMeServices</parameter>
         <parameter key="security.authentication.rememberme.services.simplehash.class">Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices</parameter>
         <parameter key="security.authentication.rememberme.services.simplehash.class">Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices</parameter>
@@ -30,7 +30,7 @@
             <argument type="service" id="security.user_checker" />
             <argument type="service" id="security.user_checker" />
         </service>
         </service>
 
 
-        <service id="security.rememberme.token.provider.in_memory" class="%security.rembemerme.token.provider.in_memory.class%" public="false"></service>
+        <service id="security.rememberme.token.provider.in_memory" class="%security.rememberme.token.provider.in_memory.class%" public="false"></service>
 
 
         <service id="security.authentication.rememberme.services.abstract" abstract="true" public="false">
         <service id="security.authentication.rememberme.services.abstract" abstract="true" public="false">
             <tag name="monolog.logger" channel="security" />
             <tag name="monolog.logger" channel="security" />

+ 1 - 1
src/Symfony/Component/Config/Definition/Builder/NormalizationBuilder.php

@@ -25,7 +25,7 @@ class NormalizationBuilder
     /**
     /**
      * Constructor
      * Constructor
      *
      *
-     * @param NodeDefintion $node The related node
+     * @param NodeDefinition $node The related node
      */
      */
     public function __construct(NodeDefinition $node)
     public function __construct(NodeDefinition $node)
     {
     {

+ 1 - 1
src/Symfony/Component/Config/Definition/PrototypedArrayNode.php

@@ -125,7 +125,7 @@ class PrototypedArrayNode extends ArrayNode
     }
     }
 
 
     /**
     /**
-     * Disable adding concrete childrend for prototyped nodes.
+     * Disable adding concrete children for prototyped nodes.
      *
      *
      * @param NodeInterface $node The child node to add
      * @param NodeInterface $node The child node to add
      * @throws \RuntimeException Prototyped array nodes can't have concrete children.
      * @throws \RuntimeException Prototyped array nodes can't have concrete children.

+ 1 - 1
src/Symfony/Component/Console/Input/StringInput.php

@@ -45,7 +45,7 @@ class StringInput extends ArgvInput
     /**
     /**
      * Tokenizes a string.
      * Tokenizes a string.
      *
      *
-     * @param string $input The input to tokenise
+     * @param string $input The input to tokenize
      * @throws \InvalidArgumentException When unable to parse input (should never happen)
      * @throws \InvalidArgumentException When unable to parse input (should never happen)
      */
      */
     private function tokenize($input)
     private function tokenize($input)

+ 1 - 1
src/Symfony/Component/CssSelector/Parser.php

@@ -132,7 +132,7 @@ class Parser
      *
      *
      * @throws SyntaxError When expected selector but got something else
      * @throws SyntaxError When expected selector but got something else
      *
      *
-     * @param  TokenStrem $stream The stream containing the selector.
+     * @param  TokenStream $stream The stream containing the selector.
      *
      *
      * @return Node\NodeInterface
      * @return Node\NodeInterface
      */
      */

+ 1 - 1
src/Symfony/Component/DependencyInjection/Compiler/PassConfig.php

@@ -92,7 +92,7 @@ class PassConfig
      *
      *
      * @param CompilerPassInterface $pass A Compiler pass
      * @param CompilerPassInterface $pass A Compiler pass
      * @param string $type The pass type
      * @param string $type The pass type
-     * @throws \InvalidArgumentException when a pass type doesnt exist
+     * @throws \InvalidArgumentException when a pass type doesn't exist
      */
      */
     public function addPass(CompilerPassInterface $pass, $type = self::TYPE_BEFORE_OPTIMIZATION)
     public function addPass(CompilerPassInterface $pass, $type = self::TYPE_BEFORE_OPTIMIZATION)
     {
     {

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

@@ -127,7 +127,7 @@ class DefinitionDecorator extends Definition
      * @param mixed $value
      * @param mixed $value
      *
      *
      * @return DefinitionDecorator the current instance
      * @return DefinitionDecorator the current instance
-     * @throws \InvalidArgumentException when $index isnt an integer
+     * @throws \InvalidArgumentException when $index isn't an integer
      */
      */
     public function replaceArgument($index, $value)
     public function replaceArgument($index, $value)
     {
     {

+ 1 - 1
src/Symfony/Component/DomCrawler/Link.php

@@ -33,7 +33,7 @@ class Link
      * @param string   $method The method to use for the link (get by default)
      * @param string   $method The method to use for the link (get by default)
      * @param string   $host   The base URI to use for absolute links (like http://localhost)
      * @param string   $host   The base URI to use for absolute links (like http://localhost)
      * @param string   $path   The base path for relative links (/ by default)
      * @param string   $path   The base path for relative links (/ by default)
-     * @param strin    $base    An optional base href for generating the uri
+     * @param string   $base    An optional base href for generating the uri
      *
      *
      * @throws \LogicException if the node is not a link
      * @throws \LogicException if the node is not a link
      *
      *

+ 1 - 1
src/Symfony/Component/HttpFoundation/File/UploadedFile.php

@@ -128,7 +128,7 @@ class UploadedFile extends File
     }
     }
 
 
     /**
     /**
-     * Returns whether the file was uploaded succesfully.
+     * Returns whether the file was uploaded successfully.
      *
      *
      * @return Boolean  True if no error occurred during uploading
      * @return Boolean  True if no error occurred during uploading
      */
      */

+ 1 - 1
src/Symfony/Component/HttpKernel/Events.php

@@ -69,7 +69,7 @@ final class Events
     const onCoreController = 'onCoreController';
     const onCoreController = 'onCoreController';
 
 
     /**
     /**
-     * The onCoreController event occurs once a reponse was created for
+     * The onCoreController event occurs once a response was created for
      * replying to a request
      * replying to a request
      *
      *
      * This event allows you to modify or replace the response that will be
      * This event allows you to modify or replace the response that will be

+ 2 - 2
src/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php

@@ -132,14 +132,14 @@ abstract class PdoProfilerStorage implements ProfilerStorageInterface
      * @param string $url   The URL
      * @param string $url   The URL
      * @param string $limit The maximum number of tokens to return
      * @param string $limit The maximum number of tokens to return
      *
      *
-     * @return array An array with (creteria, args)
+     * @return array An array with (criteria, args)
      */
      */
     abstract protected function buildCriteria($ip, $url, $limit);
     abstract protected function buildCriteria($ip, $url, $limit);
 
 
     /**
     /**
      * Initializes the database
      * Initializes the database
      *
      *
-     * @throws \RuntimeException When the requeted database driver is not installed
+     * @throws \RuntimeException When the requested database driver is not installed
      */
      */
     abstract protected function initDb();
     abstract protected function initDb();
 
 

+ 1 - 1
src/Symfony/Component/Locale/Stub/DateFormat/FullTransformer.php

@@ -296,7 +296,7 @@ class FullTransformer
 
 
     /**
     /**
      * Add sensible default values for missing items in the extracted date/time options array. The values
      * Add sensible default values for missing items in the extracted date/time options array. The values
-     * are base in the beggining of the Unix era
+     * are base in the beginning of the Unix era
      *
      *
      * @param  array  $options
      * @param  array  $options
      * @return array
      * @return array

+ 4 - 4
src/Symfony/Component/Locale/Stub/DateFormat/Transformer.php

@@ -23,7 +23,7 @@ abstract class Transformer
      *
      *
      *
      *
      * @param  DateTime  $dateTime  A DateTime object to be used to generate the formatted value
      * @param  DateTime  $dateTime  A DateTime object to be used to generate the formatted value
-     * @param  int       $lenght    The formatted value string lenght
+     * @param  int       $length    The formatted value string length
      * @return string               The formatted value
      * @return string               The formatted value
      */
      */
     abstract public function format(\DateTime $dateTime, $length);
     abstract public function format(\DateTime $dateTime, $length);
@@ -31,7 +31,7 @@ abstract class Transformer
     /**
     /**
      * Returns a reverse matching regular expression of a string generated by format()
      * Returns a reverse matching regular expression of a string generated by format()
      *
      *
-     * @param  int     $lenght  The lenght of the value to be reverse matched
+     * @param  int     $length  The length of the value to be reverse matched
      * @return string           The reverse matching regular expression
      * @return string           The reverse matching regular expression
      */
      */
     abstract public function getReverseMatchingRegExp($length);
     abstract public function getReverseMatchingRegExp($length);
@@ -41,7 +41,7 @@ abstract class Transformer
      * regular expression
      * regular expression
      *
      *
      * @param  string  $matched  The matched value
      * @param  string  $matched  The matched value
-     * @param  int     $lenght   The lenght of the Transformer pattern string
+     * @param  int     $length   The length of the Transformer pattern string
      * @return array             An associative array
      * @return array             An associative array
      */
      */
     abstract public function extractDateOptions($matched, $length);
     abstract public function extractDateOptions($matched, $length);
@@ -50,7 +50,7 @@ abstract class Transformer
      * Pad a string with zeros to the left
      * Pad a string with zeros to the left
      *
      *
      * @param  string  $value   The string to be padded
      * @param  string  $value   The string to be padded
-     * @param  int     $lenght  The lenght to pad
+     * @param  int     $length  The length to pad
      * @return string           The padded string
      * @return string           The padded string
      */
      */
     protected function padLeft($value, $length)
     protected function padLeft($value, $length)

+ 1 - 1
src/Symfony/Component/Locale/Stub/StubCollator.php

@@ -42,7 +42,7 @@ class StubCollator
     const HIRAGANA_QUATERNARY_MODE = 6;
     const HIRAGANA_QUATERNARY_MODE = 6;
     const NUMERIC_COLLATION = 7;
     const NUMERIC_COLLATION = 7;
 
 
-    /** Attribute contants values */
+    /** Attribute constants values */
     const DEFAULT_VALUE = -1;
     const DEFAULT_VALUE = -1;
 
 
     const PRIMARY = 0;
     const PRIMARY = 0;

+ 1 - 1
src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php

@@ -350,7 +350,7 @@ class StubIntlDateFormatter
     /**
     /**
      * Set the formatter's pattern
      * Set the formatter's pattern
      *
      *
-     * @param  strubg  $pattern   A pattern string in conformance with the ICU IntlDateFormatter documentation
+     * @param  string  $pattern   A pattern string in conformance with the ICU IntlDateFormatter documentation
      * @return bool               true on success or false on failure
      * @return bool               true on success or false on failure
      * @see    http://www.php.net/manual/en/intldateformatter.setpattern.php
      * @see    http://www.php.net/manual/en/intldateformatter.setpattern.php
      * @see    http://userguide.icu-project.org/formatparse/datetime
      * @see    http://userguide.icu-project.org/formatparse/datetime

+ 2 - 2
src/Symfony/Component/Locale/Stub/StubLocale.php

@@ -284,7 +284,7 @@ class StubLocale
     /**
     /**
      * Returns the localized display name for the locale script
      * Returns the localized display name for the locale script
      *
      *
-     * @param  string  $locale    The locale code to return the display scrit from
+     * @param  string  $locale    The locale code to return the display script from
      * @param  string  $inLocale  Optional format locale code to use to display the script name
      * @param  string  $inLocale  Optional format locale code to use to display the script name
      * @return string             The localized script display name
      * @return string             The localized script display name
      * @see    http://www.php.net/manual/en/locale.getdisplayscript.php
      * @see    http://www.php.net/manual/en/locale.getdisplayscript.php
@@ -380,7 +380,7 @@ class StubLocale
      * Returns an associative array of locale identifier subtags
      * Returns an associative array of locale identifier subtags
      *
      *
      * @param  string  $locale    The locale code to extract the subtag array from
      * @param  string  $locale    The locale code to extract the subtag array from
-     * @return array              Associative arrat with the extracted subtags
+     * @return array              Associative array with the extracted subtags
      * @see    http://www.php.net/manual/en/locale.parselocale.php
      * @see    http://www.php.net/manual/en/locale.parselocale.php
      * @throws MethodNotImplementedException
      * @throws MethodNotImplementedException
      */
      */

+ 1 - 1
src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php

@@ -18,7 +18,7 @@ use Symfony\Component\HttpKernel\Events;
 use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
 use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
 
 
 /**
 /**
- * AnonymousAuthenticationListener automatically addds a Token if none is
+ * AnonymousAuthenticationListener automatically adds a Token if none is
  * already present.
  * already present.
  *
  *
  * @author Fabien Potencier <fabien@symfony.com>
  * @author Fabien Potencier <fabien@symfony.com>

+ 1 - 1
src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php

@@ -150,7 +150,7 @@ class ExceptionListener
             $this->logger->debug('Calling Authentication entry point');
             $this->logger->debug('Calling Authentication entry point');
         }
         }
 
 
-        // session isn't required when using http basic authentification mechanism for example
+        // session isn't required when using http basic authentication mechanism for example
         if ($request->hasSession()) {
         if ($request->hasSession()) {
             $request->getSession()->set('_security.target_path', $request->getUri());
             $request->getSession()->set('_security.target_path', $request->getUri());
         }
         }

+ 1 - 1
src/Symfony/Component/Serializer/Encoder/XmlEncoder.php

@@ -137,7 +137,7 @@ class XmlEncoder extends AbstractEncoder implements DecoderInterface
     }
     }
 
 
     /**
     /**
-     * Checks the name is avalid xml element name
+     * Checks the name is a valid xml element name
      * @param string $name
      * @param string $name
      * @return Boolean
      * @return Boolean
      */
      */

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

@@ -32,7 +32,7 @@ class PluralizationRules
     static public function get($number, $locale)
     static public function get($number, $locale)
     {
     {
         if ("pt_BR" == $locale) {
         if ("pt_BR" == $locale) {
-            // temporary set a locale for brasilian
+            // temporary set a locale for brazilian
             $locale = "xbr";
             $locale = "xbr";
         }
         }
 
 
@@ -198,7 +198,7 @@ class PluralizationRules
     static public function set($rule, $locale)
     static public function set($rule, $locale)
     {
     {
         if ("pt_BR" == $locale) {
         if ("pt_BR" == $locale) {
-            // temporary set a locale for brasilian
+            // temporary set a locale for brazilian
             $locale = "xbr";
             $locale = "xbr";
         }
         }