Permalink
Browse files

Renamed the method

  • Loading branch information...
1 parent 4e4915a commit 36ac2f8b0029f27295ffa0cf612694be978a6cee @stof stof committed Feb 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 ParameterBag/ParameterBag.php
View
6 ParameterBag/ParameterBag.php
@@ -139,7 +139,7 @@ public function resolve()
foreach ($this->parameters as $key => $value) {
try {
$value = $this->resolveValue($value);
- $parameters[$key] = $this->unescapeString($value);
+ $parameters[$key] = $this->unescapeValue($value);
} catch (ParameterNotFoundException $e) {
$e->setSourceKey($key);
@@ -236,7 +236,7 @@ public function isResolved()
return $this->resolved;
}
- private function unescapeString($value)
+ private function unescapeValue($value)
{
if (is_string($value)) {
return str_replace('%%', '%', $value);
@@ -245,7 +245,7 @@ private function unescapeString($value)
if (is_array($value)) {
$result = array();
foreach ($value as $k => $v) {
- $result[$k] = $this->unescapeString($v);
+ $result[$k] = $this->unescapeValue($v);
}
return $result;

0 comments on commit 36ac2f8

Please sign in to comment.