aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-04-09 11:25:38 +0200
committerGitHub <noreply@github.com>2020-04-09 11:25:38 +0200
commit813bdc1ce8a45039fa17aac12bd078466a0034d0 (patch)
treea2ea40c4afc7f4c188d008d9850e795e60ae020d /lib/private/AppFramework
parent21b7e510102514d85558b1863759c20171c15e28 (diff)
parent2fbad1ed72bc9ef591a6f35558eb02e7b76ffd1b (diff)
downloadnextcloud-server-813bdc1ce8a45039fa17aac12bd078466a0034d0.tar.gz
nextcloud-server-813bdc1ce8a45039fa17aac12bd078466a0034d0.zip
Merge pull request #20375 from nextcloud/techdebt/fix-array-indent-style
Fix (array) indent style to always use one tab
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Http.php2
-rw-r--r--lib/private/AppFramework/Middleware/OCSMiddleware.php2
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/AppFramework/Http.php b/lib/private/AppFramework/Http.php
index 56503ce9595..91d13b9e231 100644
--- a/lib/private/AppFramework/Http.php
+++ b/lib/private/AppFramework/Http.php
@@ -118,7 +118,7 @@ class Http extends BaseHttp {
* @return string
*/
public function getStatusHeader($status, \DateTime $lastModified=null,
- $ETag=null) {
+ $ETag=null) {
if(!is_null($lastModified)) {
$lastModified = $lastModified->format(\DateTime::RFC2822);
diff --git a/lib/private/AppFramework/Middleware/OCSMiddleware.php b/lib/private/AppFramework/Middleware/OCSMiddleware.php
index d52163246c7..fe0f58c1ab5 100644
--- a/lib/private/AppFramework/Middleware/OCSMiddleware.php
+++ b/lib/private/AppFramework/Middleware/OCSMiddleware.php
@@ -101,7 +101,7 @@ class OCSMiddleware extends Middleware {
*/
if ($controller instanceof OCSController && !($response instanceof BaseResponse)) {
if ($response->getStatus() === Http::STATUS_UNAUTHORIZED ||
- $response->getStatus() === Http::STATUS_FORBIDDEN) {
+ $response->getStatus() === Http::STATUS_FORBIDDEN) {
$message = '';
if ($response instanceof JSONResponse) {
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index 16f1fb35a82..0ae2d37b374 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -212,7 +212,7 @@ class SecurityMiddleware extends Middleware {
if($exception instanceof SecurityException) {
if($exception instanceof StrictCookieMissingException) {
return new RedirectResponse(\OC::$WEBROOT);
- }
+ }
if (stripos($this->request->getHeader('Accept'),'html') === false) {
$response = new JSONResponse(
['message' => $exception->getMessage()],