mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue