Skip to content

Commit

Permalink
Remove call_user_func and global function that was only used a single…
Browse files Browse the repository at this point in the history
… place
  • Loading branch information
henrikbjorn committed Apr 11, 2014
1 parent 6870da6 commit f63d14d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"license" : "MIT",

"autoload" : {
"psr-0" : { "Tacker\\" : "src" },
"files" : ["src/Tacker/functions.php"]
"psr-0" : { "Tacker\\" : "src" }
},

"require" : {
Expand Down
10 changes: 7 additions & 3 deletions src/Tacker/Loader/NormalizerLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ public function load($resource, $type = null)
{
$parameters = $this->loader->load($resource, $type);

return tacker_array_map_recursive($parameters, array($this, 'normalize'));
return array_map(array($this, 'normalize'), $parameters);
}

public function supports($resource, $type = null)
{
return $this->loader->supports($resource, $type);
}

public function normalize($value)
private function normalize($value)
{
return is_string($value) ? $this->normalizer->normalize($value) : $value;
if (is_array($value)) {
return array_map(array($this, 'normalize'), $value);
}

return $this->normalizer->normalize($value);
}
}
11 changes: 0 additions & 11 deletions src/Tacker/functions.php

This file was deleted.

0 comments on commit f63d14d

Please sign in to comment.