Passed
Push — master ( be5cad...4d5f58 )
by Roeland
13:49 queued 11s
created
apps/accessibility/lib/Controller/ConfigController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare (strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * @copyright Copyright (c) 2018 John Molakvoæ (skjnldsv) <[email protected]>
5 5
  * @copyright Copyright (c) 2019 Janis Köhr <[email protected]>
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		$this->config                = $config;
72 72
 		$this->userSession           = $userSession;
73 73
 		$this->accessibilityProvider = $accessibilityProvider;
74
-		$this->userId				 = $userSession->getUser()->getUID();
74
+		$this->userId = $userSession->getUser()->getUID();
75 75
 	}
76 76
 
77 77
 	/**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		if ($key === 'theme' || $key === 'font' || $key === 'highcontrast') {
104 104
 
105 105
 			if ($value === false || $value === '') {
106
-				throw new OCSBadRequestException('Invalid value: ' . $value);
106
+				throw new OCSBadRequestException('Invalid value: '.$value);
107 107
 			}
108 108
 
109 109
 			$themes = $this->accessibilityProvider->getThemes();
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
 				return new DataResponse();
120 120
 			}
121 121
 
122
-			throw new OCSBadRequestException('Invalid value: ' . $value);
122
+			throw new OCSBadRequestException('Invalid value: '.$value);
123 123
 		}
124 124
 
125
-		throw new OCSBadRequestException('Invalid key: ' . $key);
125
+		throw new OCSBadRequestException('Invalid key: '.$key);
126 126
 	}
127 127
 
128 128
 	/**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 			return new DataResponse();
149 149
 		}
150 150
 
151
-		throw new OCSBadRequestException('Invalid key: ' . $key);
151
+		throw new OCSBadRequestException('Invalid key: '.$key);
152 152
 	}
153 153
 
154 154
 }
Please login to merge, or discard this patch.