summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-11-19 16:16:26 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-11-19 16:16:26 +0100
commit9055f46351bba23b31d966251486a2b2d47bbdd0 (patch)
tree17d2242ffdd6ed8977b3e7858875983b9a5f99b1 /lib/private/AppFramework
parent15f00f01263aa00d7722bf5618cb062170d5830e (diff)
downloadnextcloud-server-9055f46351bba23b31d966251486a2b2d47bbdd0.tar.gz
nextcloud-server-9055f46351bba23b31d966251486a2b2d47bbdd0.zip
Make phan happy ;)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index 52d1823f219..586d4057641 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -121,6 +121,8 @@ class SecurityMiddleware extends Middleware {
* @param Controller $controller the controller
* @param string $methodName the name of the method
* @throws SecurityException when a security check fails
+ *
+ * @suppress PhanUndeclaredClassConstant
*/
public function beforeController($controller, $methodName) {
@@ -128,7 +130,6 @@ class SecurityMiddleware extends Middleware {
// for normal HTML requests and not for AJAX requests
$this->navigationManager->setActiveEntry($this->appName);
- /** @suppress PhanUndeclaredClassConstant */
if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') {
$this->navigationManager->setActiveEntry('spreed');
}