1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13502] Fix coding style

PHPBB3-13502
This commit is contained in:
Marc Alexander
2016-03-30 00:08:02 +02:00
parent ada90d3b0a
commit 3f4cf72872

View File

@@ -131,11 +131,14 @@ class resolver implements ControllerResolverInterface
{
list($object, $method) = $controller;
$mirror = new \ReflectionMethod($object, $method);
} else if (is_object($controller) && !$controller instanceof \Closure)
}
else if (is_object($controller) && !$controller instanceof \Closure)
{
$mirror = new \ReflectionObject($controller);
$mirror = $mirror->getMethod('__invoke');
} else {
}
else
{
$mirror = new \ReflectionFunction($controller);
}