Completed
Pull Request — master (#6788)
by Markus
14:10
created
core/templates/update.use-cli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 
15 15
 	<?php if ($_['tooBig']) { ?>
16 16
 		<div class="warning updateAnyways">
17
-			<?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.' )); ?>
18
-			<a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk' )); ?></a>
17
+			<?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.')); ?>
18
+			<a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk')); ?></a>
19 19
 		</div>
20 20
 	<?php } ?>
21 21
 
Please login to merge, or discard this patch.
lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -144,13 +144,13 @@  discard block
 block discarded – undo
144 144
 
145 145
 		// security checks
146 146
 		$isPublicPage = $this->reflector->hasAnnotation('PublicPage');
147
-		if(!$isPublicPage) {
148
-			if(!$this->isLoggedIn) {
147
+		if (!$isPublicPage) {
148
+			if (!$this->isLoggedIn) {
149 149
 				throw new NotLoggedInException();
150 150
 			}
151 151
 
152
-			if(!$this->reflector->hasAnnotation('NoAdminRequired')) {
153
-				if(!$this->isAdminUser) {
152
+			if (!$this->reflector->hasAnnotation('NoAdminRequired')) {
153
+				if (!$this->isAdminUser) {
154 154
 					throw new NotAdminException();
155 155
 				}
156 156
 			}
@@ -164,20 +164,20 @@  discard block
 block discarded – undo
164 164
 		}
165 165
 
166 166
 		// Check for strict cookie requirement
167
-		if($this->reflector->hasAnnotation('StrictCookieRequired') || !$this->reflector->hasAnnotation('NoCSRFRequired')) {
168
-			if(!$this->request->passesStrictCookieCheck()) {
167
+		if ($this->reflector->hasAnnotation('StrictCookieRequired') || !$this->reflector->hasAnnotation('NoCSRFRequired')) {
168
+			if (!$this->request->passesStrictCookieCheck()) {
169 169
 				throw new StrictCookieMissingException();
170 170
 			}
171 171
 		}
172 172
 		// CSRF check - also registers the CSRF token since the session may be closed later
173 173
 		Util::callRegister();
174
-		if(!$this->reflector->hasAnnotation('NoCSRFRequired')) {
174
+		if (!$this->reflector->hasAnnotation('NoCSRFRequired')) {
175 175
 			/*
176 176
 			 * Only allow the CSRF check to fail on OCS Requests. This kind of
177 177
 			 * hacks around that we have no full token auth in place yet and we
178 178
 			 * do want to offer CSRF checks for web requests.
179 179
 			 */
180
-			if(!$this->request->passesCSRFCheck() && !(
180
+			if (!$this->request->passesCSRFCheck() && !(
181 181
 					$controller instanceof OCSController &&
182 182
 					$this->request->getHeader('OCS-APIREQUEST') === 'true')) {
183 183
 				throw new CrossSiteRequestForgeryException();
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 		 * The getAppPath() check is here since components such as settings also use the AppFramework and
191 191
 		 * therefore won't pass this check.
192 192
 		 */
193
-		if(\OC_App::getAppPath($this->appName) !== false && !\OC_App::isEnabled($this->appName)) {
193
+		if (\OC_App::getAppPath($this->appName) !== false && !\OC_App::isEnabled($this->appName)) {
194 194
 			throw new AppNotEnabledException();
195 195
 		}
196 196
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 		$defaultPolicy = $this->contentSecurityPolicyManager->getDefaultPolicy();
216 216
 		$defaultPolicy = $this->contentSecurityPolicyManager->mergePolicies($defaultPolicy, $policy);
217 217
 
218
-		if($this->cspNonceManager->browserSupportsCspV3()) {
218
+		if ($this->cspNonceManager->browserSupportsCspV3()) {
219 219
 			$defaultPolicy->useJsNonce($this->csrfTokenManager->getToken()->getEncryptedValue());
220 220
 		}
221 221
 
@@ -235,17 +235,17 @@  discard block
 block discarded – undo
235 235
 	 * @return Response a Response object or null in case that the exception could not be handled
236 236
 	 */
237 237
 	public function afterException($controller, $methodName, \Exception $exception) {
238
-		if($exception instanceof SecurityException) {
239
-			if($exception instanceof StrictCookieMissingException) {
238
+		if ($exception instanceof SecurityException) {
239
+			if ($exception instanceof StrictCookieMissingException) {
240 240
 				return new RedirectResponse(\OC::$WEBROOT);
241 241
  			}
242
-			if (stripos($this->request->getHeader('Accept'),'html') === false) {
242
+			if (stripos($this->request->getHeader('Accept'), 'html') === false) {
243 243
 				$response = new JSONResponse(
244 244
 					array('message' => $exception->getMessage()),
245 245
 					$exception->getCode()
246 246
 				);
247 247
 			} else {
248
-				if($exception instanceof NotLoggedInException) {
248
+				if ($exception instanceof NotLoggedInException) {
249 249
 					$params = [];
250 250
 					if (isset($this->request->server['REQUEST_URI'])) {
251 251
 						$params['redirect_url'] = $this->request->server['REQUEST_URI'];
Please login to merge, or discard this patch.
lib/private/Memcache/Redis.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
 	}
50 50
 
51 51
 	public function get($key) {
52
-		$result = self::$cache->get($this->getNameSpace() . $key);
53
-		if ($result === false && !self::$cache->exists($this->getNameSpace() . $key)) {
52
+		$result = self::$cache->get($this->getNameSpace().$key);
53
+		if ($result === false && !self::$cache->exists($this->getNameSpace().$key)) {
54 54
 			return null;
55 55
 		} else {
56 56
 			return json_decode($result, true);
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
 
60 60
 	public function set($key, $value, $ttl = 0) {
61 61
 		if ($ttl > 0) {
62
-			return self::$cache->setex($this->getNameSpace() . $key, $ttl, json_encode($value));
62
+			return self::$cache->setex($this->getNameSpace().$key, $ttl, json_encode($value));
63 63
 		} else {
64
-			return self::$cache->set($this->getNameSpace() . $key, json_encode($value));
64
+			return self::$cache->set($this->getNameSpace().$key, json_encode($value));
65 65
 		}
66 66
 	}
67 67
 
68 68
 	public function hasKey($key) {
69
-		return self::$cache->exists($this->getNameSpace() . $key);
69
+		return self::$cache->exists($this->getNameSpace().$key);
70 70
 	}
71 71
 
72 72
 	public function remove($key) {
73
-		if (self::$cache->del($this->getNameSpace() . $key)) {
73
+		if (self::$cache->del($this->getNameSpace().$key)) {
74 74
 			return true;
75 75
 		} else {
76 76
 			return false;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	}
79 79
 
80 80
 	public function clear($prefix = '') {
81
-		$prefix = $this->getNameSpace() . $prefix . '*';
81
+		$prefix = $this->getNameSpace().$prefix.'*';
82 82
 		$keys = self::$cache->keys($prefix);
83 83
 		$deleted = self::$cache->del($keys);
84 84
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		if (!is_int($value)) {
99 99
 			$value = json_encode($value);
100 100
 		}
101
-		return self::$cache->setnx($this->getPrefix() . $key, $value);
101
+		return self::$cache->setnx($this->getPrefix().$key, $value);
102 102
 	}
103 103
 
104 104
 	/**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 * @return int | bool
110 110
 	 */
111 111
 	public function inc($key, $step = 1) {
112
-		return self::$cache->incrBy($this->getNameSpace() . $key, $step);
112
+		return self::$cache->incrBy($this->getNameSpace().$key, $step);
113 113
 	}
114 114
 
115 115
 	/**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		if (!$this->hasKey($key)) {
124 124
 			return false;
125 125
 		}
126
-		return self::$cache->decrBy($this->getNameSpace() . $key, $step);
126
+		return self::$cache->decrBy($this->getNameSpace().$key, $step);
127 127
 	}
128 128
 
129 129
 	/**
@@ -138,10 +138,10 @@  discard block
 block discarded – undo
138 138
 		if (!is_int($new)) {
139 139
 			$new = json_encode($new);
140 140
 		}
141
-		self::$cache->watch($this->getNameSpace() . $key);
141
+		self::$cache->watch($this->getNameSpace().$key);
142 142
 		if ($this->get($key) === $old) {
143 143
 			$result = self::$cache->multi()
144
-				->set($this->getNameSpace() . $key, $new)
144
+				->set($this->getNameSpace().$key, $new)
145 145
 				->exec();
146 146
 			return ($result === false) ? false : true;
147 147
 		}
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
 	 * @return bool
158 158
 	 */
159 159
 	public function cad($key, $old) {
160
-		self::$cache->watch($this->getNameSpace() . $key);
160
+		self::$cache->watch($this->getNameSpace().$key);
161 161
 		if ($this->get($key) === $old) {
162 162
 			$result = self::$cache->multi()
163
-				->del($this->getNameSpace() . $key)
163
+				->del($this->getNameSpace().$key)
164 164
 				->exec();
165 165
 			return ($result === false) ? false : true;
166 166
 		}
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	}
170 170
 
171 171
 	public function setTTL($key, $ttl) {
172
-		self::$cache->expire($this->getNameSpace() . $key, $ttl);
172
+		self::$cache->expire($this->getNameSpace().$key, $ttl);
173 173
 	}
174 174
 
175 175
 	static public function isAvailable() {
Please login to merge, or discard this patch.
lib/private/ServerContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
 		if (isset($this->namespaces[$namespace])) {
86 86
 			if (!isset($this->hasNoAppContainer[$namespace])) {
87
-				$applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
87
+				$applicationClassName = 'OCA\\'.$sensitiveNamespace.'\\AppInfo\\Application';
88 88
 				if (class_exists($applicationClassName)) {
89 89
 					new $applicationClassName();
90 90
 					if (isset($this->appContainers[$namespace])) {
Please login to merge, or discard this patch.
lib/private/Repair/NC11/MoveAvatarsBackgroundJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 		}
72 72
 
73 73
 		$counter = 0;
74
-		$this->userManager->callForSeenUsers(function (IUser $user) use ($counter, $ownCloudAvatars) {
74
+		$this->userManager->callForSeenUsers(function(IUser $user) use ($counter, $ownCloudAvatars) {
75 75
 			$uid = $user->getUID();
76 76
 
77 77
 			\OC\Files\Filesystem::initMountPoints($uid);
Please login to merge, or discard this patch.
apps/theming/lib/Controller/IconController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
 	 */
98 98
 	public function getThemedIcon($app, $image) {
99 99
 		try {
100
-			$iconFile = $this->imageManager->getCachedImage("icon-" . $app . '-' . str_replace("/","_",$image));
100
+			$iconFile = $this->imageManager->getCachedImage("icon-".$app.'-'.str_replace("/", "_", $image));
101 101
 		} catch (NotFoundException $exception) {
102 102
 			$icon = $this->iconBuilder->colorSvg($app, $image);
103 103
 			if ($icon === false || $icon === "") {
104 104
 				return new NotFoundResponse();
105 105
 			}
106
-			$iconFile = $this->imageManager->setCachedImage("icon-" . $app . '-' . str_replace("/","_",$image), $icon);
106
+			$iconFile = $this->imageManager->setCachedImage("icon-".$app.'-'.str_replace("/", "_", $image), $icon);
107 107
 		}
108 108
 		if ($iconFile !== false) {
109 109
 			$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/svg+xml']);
@@ -132,17 +132,17 @@  discard block
 block discarded – undo
132 132
 		$response = null;
133 133
 		if ($this->themingDefaults->shouldReplaceIcons()) {
134 134
 			try {
135
-				$iconFile = $this->imageManager->getCachedImage('favIcon-' . $app);
135
+				$iconFile = $this->imageManager->getCachedImage('favIcon-'.$app);
136 136
 			} catch (NotFoundException $exception) {
137 137
 				$icon = $this->iconBuilder->getFavicon($app);
138
-				$iconFile = $this->imageManager->setCachedImage('favIcon-' . $app, $icon);
138
+				$iconFile = $this->imageManager->setCachedImage('favIcon-'.$app, $icon);
139 139
 			}
140 140
 			if ($iconFile !== false) {
141 141
 				$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
142 142
 			}
143 143
 		}
144
-		if($response === null) {
145
-			$fallbackLogo = \OC::$SERVERROOT . '/core/img/favicon.png';
144
+		if ($response === null) {
145
+			$fallbackLogo = \OC::$SERVERROOT.'/core/img/favicon.png';
146 146
 			$response = new DataDisplayResponse($this->fileAccessHelper->file_get_contents($fallbackLogo), Http::STATUS_OK, ['Content-Type' => 'image/x-icon']);
147 147
 		}
148 148
 		$response->cacheFor(86400);
@@ -167,17 +167,17 @@  discard block
 block discarded – undo
167 167
 		$response = null;
168 168
 		if ($this->themingDefaults->shouldReplaceIcons()) {
169 169
 			try {
170
-				$iconFile = $this->imageManager->getCachedImage('touchIcon-' . $app);
170
+				$iconFile = $this->imageManager->getCachedImage('touchIcon-'.$app);
171 171
 			} catch (NotFoundException $exception) {
172 172
 				$icon = $this->iconBuilder->getTouchIcon($app);
173
-				$iconFile = $this->imageManager->setCachedImage('touchIcon-' . $app, $icon);
173
+				$iconFile = $this->imageManager->setCachedImage('touchIcon-'.$app, $icon);
174 174
 			}
175 175
 			if ($iconFile !== false) {
176 176
 				$response = new FileDisplayResponse($iconFile, Http::STATUS_OK, ['Content-Type' => 'image/png']);
177 177
 			}
178 178
 		}
179
-		if($response === null) {
180
-			$fallbackLogo = \OC::$SERVERROOT . '/core/img/favicon-touch.png';
179
+		if ($response === null) {
180
+			$fallbackLogo = \OC::$SERVERROOT.'/core/img/favicon-touch.png';
181 181
 			$response = new DataDisplayResponse($this->fileAccessHelper->file_get_contents($fallbackLogo), Http::STATUS_OK, ['Content-Type' => 'image/png']);
182 182
 		}
183 183
 		$response->cacheFor(86400);
Please login to merge, or discard this patch.
apps/theming/lib/IconBuilder.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function renderAppIcon($app, $size) {
98 98
 		$appIcon = $this->util->getAppIcon($app);
99
-		if($appIcon === false) {
99
+		if ($appIcon === false) {
100 100
 			return false;
101 101
 		}
102 102
 		if ($appIcon instanceof ISimpleFile) {
@@ -107,20 +107,20 @@  discard block
 block discarded – undo
107 107
 			$mime = mime_content_type($appIcon);
108 108
 		}
109 109
 
110
-		if($appIconContent === false || $appIconContent === "") {
110
+		if ($appIconContent === false || $appIconContent === "") {
111 111
 			return false;
112 112
 		}
113 113
 
114 114
 		$color = $this->themingDefaults->getColorPrimary();
115 115
 
116 116
 		// generate background image with rounded corners
117
-		$background = '<?xml version="1.0" encoding="UTF-8"?>' .
118
-			'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:cc="http://creativecommons.org/ns#" width="512" height="512" xmlns:xlink="http://www.w3.org/1999/xlink">' .
119
-			'<rect x="0" y="0" rx="100" ry="100" width="512" height="512" style="fill:' . $color . ';" />' .
117
+		$background = '<?xml version="1.0" encoding="UTF-8"?>'.
118
+			'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:cc="http://creativecommons.org/ns#" width="512" height="512" xmlns:xlink="http://www.w3.org/1999/xlink">'.
119
+			'<rect x="0" y="0" rx="100" ry="100" width="512" height="512" style="fill:'.$color.';" />'.
120 120
 			'</svg>';
121 121
 		// resize svg magic as this seems broken in Imagemagick
122
-		if($mime === "image/svg+xml" || substr($appIconContent, 0, 4) === "<svg") {
123
-			if(substr($appIconContent, 0, 5) !== "<?xml") {
122
+		if ($mime === "image/svg+xml" || substr($appIconContent, 0, 4) === "<svg") {
123
+			if (substr($appIconContent, 0, 5) !== "<?xml") {
124 124
 				$svg = "<?xml version=\"1.0\"?>".$appIconContent;
125 125
 			} else {
126 126
 				$svg = $appIconContent;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 			$res = $tmp->getImageResolution();
133 133
 			$tmp->destroy();
134 134
 
135
-			if($x>$y) {
135
+			if ($x > $y) {
136 136
 				$max = $x;
137 137
 			} else {
138 138
 				$max = $y;
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
 
141 141
 			// convert svg to resized image
142 142
 			$appIconFile = new Imagick();
143
-			$resX = (int)(512 * $res['x'] / $max * 2.53);
144
-			$resY = (int)(512 * $res['y'] / $max * 2.53);
143
+			$resX = (int) (512 * $res['x'] / $max * 2.53);
144
+			$resY = (int) (512 * $res['y'] / $max * 2.53);
145 145
 			$appIconFile->setResolution($resX, $resY);
146 146
 			$appIconFile->setBackgroundColor(new ImagickPixel('transparent'));
147 147
 			$appIconFile->readImageBlob($svg);
@@ -153,10 +153,10 @@  discard block
 block discarded – undo
153 153
 			$appIconFile->scaleImage(512, 512, true);
154 154
 		}
155 155
 		// offset for icon positioning
156
-		$border_w = (int)($appIconFile->getImageWidth() * 0.05);
157
-		$border_h = (int)($appIconFile->getImageHeight() * 0.05);
158
-		$innerWidth = (int)($appIconFile->getImageWidth() - $border_w * 2);
159
-		$innerHeight = (int)($appIconFile->getImageHeight() - $border_h * 2);
156
+		$border_w = (int) ($appIconFile->getImageWidth() * 0.05);
157
+		$border_h = (int) ($appIconFile->getImageHeight() * 0.05);
158
+		$innerWidth = (int) ($appIconFile->getImageWidth() - $border_w * 2);
159
+		$innerHeight = (int) ($appIconFile->getImageHeight() - $border_h * 2);
160 160
 		$appIconFile->adaptiveResizeImage($innerWidth, $innerHeight);
161 161
 		// center icon
162 162
 		$offset_w = 512 / 2 - $innerWidth / 2;
Please login to merge, or discard this patch.
core/Controller/ClientFlowLoginController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	private function isValidToken($stateToken) {
121 121
 		$currentToken = $this->session->get(self::stateName);
122
-		if(!is_string($stateToken) || !is_string($currentToken)) {
122
+		if (!is_string($stateToken) || !is_string($currentToken)) {
123 123
 			return false;
124 124
 		}
125 125
 		return hash_equals($currentToken, $stateToken);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	public function showAuthPickerPage($clientIdentifier = '') {
154 154
 		$clientName = $this->getClientName();
155 155
 		$client = null;
156
-		if($clientIdentifier !== '') {
156
+		if ($clientIdentifier !== '') {
157 157
 			$client = $this->clientMapper->getByIdentifier($clientIdentifier);
158 158
 			$clientName = $client->getName();
159 159
 		}
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 */
210 210
 	public function redirectPage($stateToken = '',
211 211
 								 $clientIdentifier = '') {
212
-		if(!$this->isValidToken($stateToken)) {
212
+		if (!$this->isValidToken($stateToken)) {
213 213
 			return $this->stateTokenForbiddenResponse();
214 214
 		}
215 215
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 	 */
237 237
 	public function generateAppPassword($stateToken,
238 238
 										$clientIdentifier = '') {
239
-		if(!$this->isValidToken($stateToken)) {
239
+		if (!$this->isValidToken($stateToken)) {
240 240
 			$this->session->remove(self::stateName);
241 241
 			return $this->stateTokenForbiddenResponse();
242 242
 		}
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
 		$clientName = $this->getClientName();
269 269
 		$client = false;
270
-		if($clientIdentifier !== '') {
270
+		if ($clientIdentifier !== '') {
271 271
 			$client = $this->clientMapper->getByIdentifier($clientIdentifier);
272 272
 			$clientName = $client->getName();
273 273
 		}
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 			IToken::DO_NOT_REMEMBER
285 285
 		);
286 286
 
287
-		if($client) {
287
+		if ($client) {
288 288
 			$code = $this->random->generate(128);
289 289
 			$accessToken = new AccessToken();
290 290
 			$accessToken->setClientId($client->getId());
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 			);
302 302
 			$this->session->remove('oauth.state');
303 303
 		} else {
304
-			$redirectUri = 'nc://login/server:' . $this->request->getServerHost() . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
304
+			$redirectUri = 'nc://login/server:'.$this->request->getServerHost().'&user:'.urlencode($loginName).'&password:'.urlencode($token);
305 305
 		}
306 306
 
307 307
 		return new Http\RedirectResponse($redirectUri);
Please login to merge, or discard this patch.
apps/oauth2/lib/Db/ClientMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		$result = $qb->execute();
50 50
 		$row = $result->fetch();
51 51
 		$result->closeCursor();
52
-		if($row === false) {
52
+		if ($row === false) {
53 53
 			throw new ClientNotFoundException();
54 54
 		}
55 55
 		return Client::fromRow($row);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		$result = $qb->execute();
70 70
 		$row = $result->fetch();
71 71
 		$result->closeCursor();
72
-		if($row === false) {
72
+		if ($row === false) {
73 73
 			throw new ClientNotFoundException();
74 74
 		}
75 75
 		return Client::fromRow($row);
Please login to merge, or discard this patch.