Skip to content

Commit

Permalink
DI\Helpers::escape() removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 17, 2012
1 parent ef63258 commit df4eef2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
19 changes: 0 additions & 19 deletions src/DI/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,6 @@ public static function expand($var, array $params, $recursive = FALSE)



/**
* Expand counterpart.
* @param mixed
* @return mixed
*/
public static function escape($value)
{
if (is_array($value)) {
array_walk_recursive($value, function(&$val) {
$val = is_string($val) ? str_replace('%', '%%', $val) : $val;
});
} elseif (is_string($value)) {
$value = str_replace('%', '%%', $value);
}
return $value;
}



/**
* Generates list of arguments using autowiring.
* @param Nette\Reflection\GlobalFunction|Nette\Reflection\Method
Expand Down
23 changes: 0 additions & 23 deletions tests/DI/Helpers.escape().phpt

This file was deleted.

0 comments on commit df4eef2

Please sign in to comment.