mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/13502] Fix coding style
PHPBB3-13502
This commit is contained in:
@@ -131,11 +131,14 @@ class resolver implements ControllerResolverInterface
|
|||||||
{
|
{
|
||||||
list($object, $method) = $controller;
|
list($object, $method) = $controller;
|
||||||
$mirror = new \ReflectionMethod($object, $method);
|
$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 = new \ReflectionObject($controller);
|
||||||
$mirror = $mirror->getMethod('__invoke');
|
$mirror = $mirror->getMethod('__invoke');
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$mirror = new \ReflectionFunction($controller);
|
$mirror = new \ReflectionFunction($controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user