Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1ec66c

Browse filesBrowse files
committed
[Config] Fixed typo
1 parent 0c9951f commit e1ec66c
Copy full SHA for e1ec66c

File tree

Expand file treeCollapse file tree

6 files changed

+80
-79
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+80
-79
lines changed

‎src/Symfony/Component/Config/Definition/ArrayNode.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/ArrayNode.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function getDefaultValue()
238238
* Sets the node prototype.
239239
*
240240
* @param PrototypeNodeInterface $node
241-
* @throws \RuntimeException if the node doesnt have concrete children
241+
* @throws \RuntimeException if the node doesn't have concrete children
242242
*/
243243
public function setPrototype(PrototypeNodeInterface $node)
244244
{
@@ -279,7 +279,7 @@ public function addChild(NodeInterface $node)
279279
* @param mixed $value
280280
* @return mixed The finalised value
281281
* @throws UnsetKeyException
282-
* @throws InvalidConfigurationException if the node doesnt have enough children
282+
* @throws InvalidConfigurationException if the node doesn't have enough children
283283
*/
284284
protected function finalizeValue($value)
285285
{

‎src/Symfony/Component/Config/Definition/BaseNode.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/BaseNode.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct($name, NodeInterface $parent = null)
5353
}
5454

5555
/**
56-
* Adds an equivilent value.
56+
* Adds an equivalent value.
5757
*
5858
* @param mixed $originalValue
5959
* @param mixed $equivalentValue
@@ -173,7 +173,8 @@ public final function merge($leftSide, $rightSide)
173173
* Normalizes a value, applying all normalization closures.
174174
*
175175
* @param mixed $value Value to normalize.
176-
* @return mied The normalized value.
176+
*
177+
* @return mixed The normalized value.
177178
*/
178179
public final function normalize($value)
179180
{
+72-72Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
1-
<?php
2-
3-
/*
4-
* This file is part of the Symfony package.
5-
*
6-
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Symfony\Component\Config\Definition\Builder;
13-
14-
/**
15-
* This class builds merge conditions.
16-
*
17-
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
18-
*/
19-
class MergeBuilder
20-
{
21-
public $parent;
22-
public $allowFalse;
23-
public $allowOverwrite;
24-
25-
/**
26-
* Constructor
27-
*
28-
* @param Symfony\Component\Config\Definition\Builder\NodeBuilder $parent The parent node
29-
*/
30-
public function __construct($parent)
31-
{
32-
$this->parent = $parent;
33-
$this->allowFalse = false;
34-
$this->allowOverwrite = true;
35-
}
36-
37-
/**
38-
* Sets whether the node can be unset.
39-
*
40-
* @param boolean $allow
41-
* @return Symfony\Component\Config\Definition\Builder\MergeBuilder
42-
*/
43-
public function allowUnset($allow = true)
44-
{
45-
$this->allowFalse = $allow;
46-
47-
return $this;
48-
}
49-
50-
/**
51-
* Sets whether the node can be overwritten.
52-
*
53-
* @param boolean $deny Whether the overwritting is forbidden or not
54-
*
55-
* @return Symfony\Component\Config\Definition\Builder\MergeBuilder
56-
*/
57-
public function denyOverwrite($deny = true)
58-
{
59-
$this->allowOverwrite = !$deny;
60-
61-
return $this;
62-
}
63-
64-
/**
65-
* Returns the parent node.
66-
*
67-
* @return Symfony\Component\Config\Definition\Builder\NodeBuilder
68-
*/
69-
public function end()
70-
{
71-
return $this->parent;
72-
}
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Config\Definition\Builder;
13+
14+
/**
15+
* This class builds merge conditions.
16+
*
17+
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
18+
*/
19+
class MergeBuilder
20+
{
21+
public $parent;
22+
public $allowFalse;
23+
public $allowOverwrite;
24+
25+
/**
26+
* Constructor
27+
*
28+
* @param Symfony\Component\Config\Definition\Builder\NodeBuilder $parent The parent node
29+
*/
30+
public function __construct($parent)
31+
{
32+
$this->parent = $parent;
33+
$this->allowFalse = false;
34+
$this->allowOverwrite = true;
35+
}
36+
37+
/**
38+
* Sets whether the node can be unset.
39+
*
40+
* @param boolean $allow
41+
* @return Symfony\Component\Config\Definition\Builder\MergeBuilder
42+
*/
43+
public function allowUnset($allow = true)
44+
{
45+
$this->allowFalse = $allow;
46+
47+
return $this;
48+
}
49+
50+
/**
51+
* Sets whether the node can be overwritten.
52+
*
53+
* @param boolean $deny Whether the overwriting is forbidden or not
54+
*
55+
* @return Symfony\Component\Config\Definition\Builder\MergeBuilder
56+
*/
57+
public function denyOverwrite($deny = true)
58+
{
59+
$this->allowOverwrite = !$deny;
60+
61+
return $this;
62+
}
63+
64+
/**
65+
* Returns the parent node.
66+
*
67+
* @return Symfony\Component\Config\Definition\Builder\NodeBuilder
68+
*/
69+
public function end()
70+
{
71+
return $this->parent;
72+
}
7373
}

‎src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ protected function merge()
399399
/**
400400
* Sets whether the node can be overwritten.
401401
*
402-
* @param boolean $deny Whether the overwritting is forbidden or not
402+
* @param boolean $deny Whether the overwriting is forbidden or not
403403
*
404404
* @return Symfony\Component\Config\Definition\Builder\NodeBuilder
405405
*/

‎src/Symfony/Component/Config/FileLocator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/FileLocator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct($paths = array())
3838
*
3939
* @param mixed $name The file name to locate
4040
* @param string $currentPath The current path
41-
* @param Boolean $first Wether to return the first occurence or an array of filenames
41+
* @param Boolean $first Whether to return the first occurrence or an array of filenames
4242
*
4343
* @return string|array The full path to the file|An array of file paths
4444
*

‎src/Symfony/Component/Config/FileLocatorInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/FileLocatorInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface FileLocatorInterface
2121
*
2222
* @param mixed $name The file name to locate
2323
* @param string $currentPath The current path
24-
* @param Boolean $first Wether to return the first occurence or an array of filenames
24+
* @param Boolean $first Whether to return the first occurrence or an array of filenames
2525
*
2626
* @return string|array The full path to the file|An array of file paths
2727
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.