Skip to content
Snippets Groups Projects
Unverified Commit 9055f463 authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Make phan happy ;)

parent 15f00f01
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,8 @@ class SecurityMiddleware extends Middleware { ...@@ -121,6 +121,8 @@ class SecurityMiddleware extends Middleware {
* @param Controller $controller the controller * @param Controller $controller the controller
* @param string $methodName the name of the method * @param string $methodName the name of the method
* @throws SecurityException when a security check fails * @throws SecurityException when a security check fails
*
* @suppress PhanUndeclaredClassConstant
*/ */
public function beforeController($controller, $methodName) { public function beforeController($controller, $methodName) {
...@@ -128,7 +130,6 @@ class SecurityMiddleware extends Middleware { ...@@ -128,7 +130,6 @@ class SecurityMiddleware extends Middleware {
// for normal HTML requests and not for AJAX requests // for normal HTML requests and not for AJAX requests
$this->navigationManager->setActiveEntry($this->appName); $this->navigationManager->setActiveEntry($this->appName);
/** @suppress PhanUndeclaredClassConstant */
if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') { if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') {
$this->navigationManager->setActiveEntry('spreed'); $this->navigationManager->setActiveEntry('spreed');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment