mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[ticket/13502] Fix coding style
PHPBB3-13502
This commit is contained in:
parent
ada90d3b0a
commit
3f4cf72872
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue