diff options
Diffstat (limited to 'phpBB/phpbb/controller')
-rw-r--r-- | phpBB/phpbb/controller/resolver.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/phpbb/controller/resolver.php b/phpBB/phpbb/controller/resolver.php index 233e2e94a4..f8dffc12de 100644 --- a/phpBB/phpbb/controller/resolver.php +++ b/phpBB/phpbb/controller/resolver.php @@ -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); } |