Explorar el Código

[Config] Fixed typo

Pascal Borreli hace 14 años
padre
commit
e1ec66cbb8

+ 2 - 2
src/Symfony/Component/Config/Definition/ArrayNode.php

@@ -238,7 +238,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
      * Sets the node prototype.
      *
      * @param PrototypeNodeInterface $node 
-     * @throws \RuntimeException if the node doesnt have concrete children
+     * @throws \RuntimeException if the node doesn't have concrete children
      */
     public function setPrototype(PrototypeNodeInterface $node)
     {
@@ -279,7 +279,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
      * @param mixed $value 
      * @return mixed The finalised value
      * @throws UnsetKeyException
-     * @throws InvalidConfigurationException if the node doesnt have enough children
+     * @throws InvalidConfigurationException if the node doesn't have enough children
      */
     protected function finalizeValue($value)
     {

+ 3 - 2
src/Symfony/Component/Config/Definition/BaseNode.php

@@ -53,7 +53,7 @@ abstract class BaseNode implements NodeInterface
     }
 
     /**
-     * Adds an equivilent value.
+     * Adds an equivalent value.
      *
      * @param mixed $originalValue 
      * @param mixed $equivalentValue 
@@ -173,7 +173,8 @@ abstract class BaseNode implements NodeInterface
      * Normalizes a value, applying all normalization closures.
      *
      * @param mixed $value Value to normalize.
-     * @return mied The normalized value.
+     *
+     * @return mixed The normalized value.
      */
     public final function normalize($value)
     {

+ 72 - 72
src/Symfony/Component/Config/Definition/Builder/MergeBuilder.php

@@ -1,73 +1,73 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Config\Definition\Builder;
-
-/**
- * This class builds merge conditions.
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-class MergeBuilder
-{
-    public $parent;
-    public $allowFalse;
-    public $allowOverwrite;
-
-    /**
-     * Constructor
-     *
-     * @param Symfony\Component\Config\Definition\Builder\NodeBuilder $parent The parent node
-     */
-    public function __construct($parent)
-    {
-        $this->parent = $parent;
-        $this->allowFalse = false;
-        $this->allowOverwrite = true;
-    }
-
-    /**
-     * Sets whether the node can be unset.
-     *
-     * @param boolean $allow
-     * @return Symfony\Component\Config\Definition\Builder\MergeBuilder
-     */
-    public function allowUnset($allow = true)
-    {
-        $this->allowFalse = $allow;
-
-        return $this;
-    }
-
-    /**
-     * Sets whether the node can be overwritten.
-     *
-     * @param boolean $deny Whether the overwritting is forbidden or not
-     *
-     * @return Symfony\Component\Config\Definition\Builder\MergeBuilder
-     */
-    public function denyOverwrite($deny = true)
-    {
-        $this->allowOverwrite = !$deny;
-
-        return $this;
-    }
-
-    /**
-     * Returns the parent node.
-     *
-     * @return Symfony\Component\Config\Definition\Builder\NodeBuilder
-     */
-    public function end()
-    {
-        return $this->parent;
-    }
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Config\Definition\Builder;
+
+/**
+ * This class builds merge conditions.
+ *
+ * @author Johannes M. Schmitt <schmittjoh@gmail.com>
+ */
+class MergeBuilder
+{
+    public $parent;
+    public $allowFalse;
+    public $allowOverwrite;
+
+    /**
+     * Constructor
+     *
+     * @param Symfony\Component\Config\Definition\Builder\NodeBuilder $parent The parent node
+     */
+    public function __construct($parent)
+    {
+        $this->parent = $parent;
+        $this->allowFalse = false;
+        $this->allowOverwrite = true;
+    }
+
+    /**
+     * Sets whether the node can be unset.
+     *
+     * @param boolean $allow
+     * @return Symfony\Component\Config\Definition\Builder\MergeBuilder
+     */
+    public function allowUnset($allow = true)
+    {
+        $this->allowFalse = $allow;
+
+        return $this;
+    }
+
+    /**
+     * Sets whether the node can be overwritten.
+     *
+     * @param boolean $deny Whether the overwriting is forbidden or not
+     *
+     * @return Symfony\Component\Config\Definition\Builder\MergeBuilder
+     */
+    public function denyOverwrite($deny = true)
+    {
+        $this->allowOverwrite = !$deny;
+
+        return $this;
+    }
+
+    /**
+     * Returns the parent node.
+     *
+     * @return Symfony\Component\Config\Definition\Builder\NodeBuilder
+     */
+    public function end()
+    {
+        return $this->parent;
+    }
 }

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

@@ -399,7 +399,7 @@ class NodeBuilder
     /**
      * Sets whether the node can be overwritten.
      *
-     * @param boolean $deny Whether the overwritting is forbidden or not
+     * @param boolean $deny Whether the overwriting is forbidden or not
      *
      * @return Symfony\Component\Config\Definition\Builder\NodeBuilder
      */

+ 1 - 1
src/Symfony/Component/Config/FileLocator.php

@@ -38,7 +38,7 @@ class FileLocator implements FileLocatorInterface
      *
      * @param mixed   $name        The file name to locate
      * @param string  $currentPath The current path
-     * @param Boolean $first       Wether to return the first occurence or an array of filenames
+     * @param Boolean $first       Whether to return the first occurrence or an array of filenames
      *
      * @return string|array The full path to the file|An array of file paths
      *

+ 1 - 1
src/Symfony/Component/Config/FileLocatorInterface.php

@@ -21,7 +21,7 @@ interface FileLocatorInterface
      *
      * @param mixed   $name        The file name to locate
      * @param string  $currentPath The current path
-     * @param Boolean $first       Wether to return the first occurence or an array of filenames
+     * @param Boolean $first       Whether to return the first occurrence or an array of filenames
      *
      * @return string|array The full path to the file|An array of file paths
      *