Skip to content

Commit

Permalink
More style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurrensch committed Oct 19, 2014
1 parent 159c854 commit 091ff57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions Alice/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,7 @@ protected function getLoader($key)
if (empty($this->loaders[$key])) {
throw new \InvalidArgumentException("Unknown loader type: {$key}");
}
/*
if (is_string($file) && preg_match('{\.ya?ml(\.php)?$}', $file)) {
$loader = self::getLoader('Yaml', $options);
} elseif ((is_string($file) && preg_match('{\.php$}', $file)) || is_array($file)) {
$loader = self::getLoader('Base', $options);
} else {
throw new \InvalidArgumentException('Unknown file/data type: '.gettype($file).' ('.json_encode($file).')');
}
*/

/** @var $loader \Nelmio\Alice\LoaderInterface */
$loader = $this->loaders[$key];

Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
</whitelist>
</filter>

</phpunit>
</phpunit>

0 comments on commit 091ff57

Please sign in to comment.