Passed
Push — master ( 7ef10b...59c1ff )
by Joas
11:15 queued 11s
created
apps/settings/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Settings\\' => array($baseDir . '/../lib'),
9
+    'OCA\\Settings\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/settings/composer/composer/autoload_real.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     public static function loadClassLoader($class)
10 10
     {
11 11
         if ('Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
12
+            require __DIR__.'/ClassLoader.php';
13 13
         }
14 14
     }
15 15
 
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27 27
         if ($useStaticLoader) {
28
-            require_once __DIR__ . '/autoload_static.php';
28
+            require_once __DIR__.'/autoload_static.php';
29 29
 
30 30
             call_user_func(\Composer\Autoload\ComposerStaticInitSettings::getInitializer($loader));
31 31
         } else {
32
-            $classMap = require __DIR__ . '/autoload_classmap.php';
32
+            $classMap = require __DIR__.'/autoload_classmap.php';
33 33
             if ($classMap) {
34 34
                 $loader->addClassMap($classMap);
35 35
             }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/PropfindPlugin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -63,49 +63,49 @@
 block discarded – undo
63 63
 			return;
64 64
 		}
65 65
 
66
-		$propFind->handle(self::TRASHBIN_FILENAME, function () use ($node) {
66
+		$propFind->handle(self::TRASHBIN_FILENAME, function() use ($node) {
67 67
 			return $node->getFilename();
68 68
 		});
69 69
 
70
-		$propFind->handle(self::TRASHBIN_ORIGINAL_LOCATION, function () use ($node) {
70
+		$propFind->handle(self::TRASHBIN_ORIGINAL_LOCATION, function() use ($node) {
71 71
 			return $node->getOriginalLocation();
72 72
 		});
73 73
 
74
-		$propFind->handle(self::TRASHBIN_TITLE, function () use ($node) {
74
+		$propFind->handle(self::TRASHBIN_TITLE, function() use ($node) {
75 75
 			return $node->getTitle();
76 76
 		});
77 77
 
78
-		$propFind->handle(self::TRASHBIN_DELETION_TIME, function () use ($node) {
78
+		$propFind->handle(self::TRASHBIN_DELETION_TIME, function() use ($node) {
79 79
 			return $node->getDeletionTime();
80 80
 		});
81 81
 
82
-		$propFind->handle(FilesPlugin::SIZE_PROPERTYNAME, function () use ($node) {
82
+		$propFind->handle(FilesPlugin::SIZE_PROPERTYNAME, function() use ($node) {
83 83
 			return $node->getSize();
84 84
 		});
85 85
 
86
-		$propFind->handle(FilesPlugin::FILEID_PROPERTYNAME, function () use ($node) {
86
+		$propFind->handle(FilesPlugin::FILEID_PROPERTYNAME, function() use ($node) {
87 87
 			return $node->getFileId();
88 88
 		});
89 89
 
90
-		$propFind->handle(FilesPlugin::PERMISSIONS_PROPERTYNAME, function () {
90
+		$propFind->handle(FilesPlugin::PERMISSIONS_PROPERTYNAME, function() {
91 91
 			return 'GD'; // read + delete
92 92
 		});
93 93
 
94
-		$propFind->handle(FilesPlugin::GETETAG_PROPERTYNAME, function () use ($node) {
94
+		$propFind->handle(FilesPlugin::GETETAG_PROPERTYNAME, function() use ($node) {
95 95
 			// add fake etag, it is only needed to identify the preview image
96 96
 			return $node->getLastModified();
97 97
 		});
98 98
 
99
-		$propFind->handle(FilesPlugin::INTERNAL_FILEID_PROPERTYNAME, function () use ($node) {
99
+		$propFind->handle(FilesPlugin::INTERNAL_FILEID_PROPERTYNAME, function() use ($node) {
100 100
 			// add fake etag, it is only needed to identify the preview image
101 101
 			return $node->getFileId();
102 102
 		});
103 103
 
104
-		$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
104
+		$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function() use ($node) {
105 105
 			return $this->previewManager->isAvailable($node->getFileInfo());
106 106
 		});
107 107
 
108
-		$propFind->handle(FilesPlugin::MOUNT_TYPE_PROPERTYNAME, function () {
108
+		$propFind->handle(FilesPlugin::MOUNT_TYPE_PROPERTYNAME, function() {
109 109
 			return '';
110 110
 		});
111 111
 	}
Please login to merge, or discard this patch.
lib/private/Files/Cache/Storage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,17 +71,17 @@  discard block
 block discarded – undo
71 71
 		$this->storageId = self::adjustStorageId($this->storageId);
72 72
 
73 73
 		if ($row = self::getStorageById($this->storageId)) {
74
-			$this->numericId = (int)$row['numeric_id'];
74
+			$this->numericId = (int) $row['numeric_id'];
75 75
 		} else {
76 76
 			$connection = \OC::$server->getDatabaseConnection();
77 77
 			$available = $isAvailable ? 1 : 0;
78 78
 			if ($connection->insertIfNotExist('*PREFIX*storages', ['id' => $this->storageId, 'available' => $available])) {
79
-				$this->numericId = (int)$connection->lastInsertId('*PREFIX*storages');
79
+				$this->numericId = (int) $connection->lastInsertId('*PREFIX*storages');
80 80
 			} else {
81 81
 				if ($row = self::getStorageById($this->storageId)) {
82
-					$this->numericId = (int)$row['numeric_id'];
82
+					$this->numericId = (int) $row['numeric_id'];
83 83
 				} else {
84
-					throw new \RuntimeException('Storage could neither be inserted nor be selected from the database: ' . $this->storageId);
84
+					throw new \RuntimeException('Storage could neither be inserted nor be selected from the database: '.$this->storageId);
85 85
 				}
86 86
 			}
87 87
 		}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		$storageId = self::adjustStorageId($storageId);
145 145
 
146 146
 		if ($row = self::getStorageById($storageId)) {
147
-			return (int)$row['numeric_id'];
147
+			return (int) $row['numeric_id'];
148 148
 		} else {
149 149
 			return null;
150 150
 		}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	public function getAvailability() {
157 157
 		if ($row = self::getStorageById($this->storageId)) {
158 158
 			return [
159
-				'available' => (int)$row['available'] === 1,
159
+				'available' => (int) $row['available'] === 1,
160 160
 				'last_checked' => $row['last_checked']
161 161
 			];
162 162
 		} else {
Please login to merge, or discard this patch.
lib/private/Template/SCSSCacher.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
 		$this->defaults     = $defaults;
117 117
 		$this->serverRoot   = $serverRoot;
118 118
 		$this->cacheFactory = $cacheFactory;
119
-		$this->depsCache    = $cacheFactory->createDistributed('SCSS-deps-' . md5($this->urlGenerator->getBaseUrl()));
120
-		$this->isCachedCache = $cacheFactory->createDistributed('SCSS-cached-' . md5($this->urlGenerator->getBaseUrl()));
121
-		$lockingCache = $cacheFactory->createDistributed('SCSS-locks-' . md5($this->urlGenerator->getBaseUrl()));
119
+		$this->depsCache    = $cacheFactory->createDistributed('SCSS-deps-'.md5($this->urlGenerator->getBaseUrl()));
120
+		$this->isCachedCache = $cacheFactory->createDistributed('SCSS-cached-'.md5($this->urlGenerator->getBaseUrl()));
121
+		$lockingCache = $cacheFactory->createDistributed('SCSS-locks-'.md5($this->urlGenerator->getBaseUrl()));
122 122
 		if (!($lockingCache instanceof IMemcache)) {
123 123
 			$lockingCache = new NullCache();
124 124
 		}
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 * @throws NotPermittedException
138 138
 	 */
139 139
 	public function process(string $root, string $file, string $app): bool {
140
-		$path = explode('/', $root . '/' . $file);
140
+		$path = explode('/', $root.'/'.$file);
141 141
 
142 142
 		$fileNameSCSS = array_pop($path);
143 143
 		$fileNameCSS  = $this->prependVersionPrefix($this->prependBaseurlPrefix(str_replace('.scss', '.css', $fileNameSCSS)), $app);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 			$folder = $this->appData->newFolder($app);
158 158
 		}
159 159
 
160
-		$lockKey = $webDir . '/' . $fileNameSCSS;
160
+		$lockKey = $webDir.'/'.$fileNameSCSS;
161 161
 
162 162
 		if (!$this->lockingCache->add($lockKey, 'locked!', 120)) {
163 163
 			$retry = 0;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 				if (!$this->variablesChanged() && $this->isCached($fileNameCSS, $app)) {
167 167
 					// Inject icons vars css if any
168 168
 					$this->lockingCache->remove($lockKey);
169
-					$this->logger->debug('SCSSCacher: ' .$lockKey.' is now available after '.$retry.'s. Moving on...', ['app' => 'core']);
169
+					$this->logger->debug('SCSSCacher: '.$lockKey.' is now available after '.$retry.'s. Moving on...', ['app' => 'core']);
170 170
 					return $this->injectCssVariablesIfAny();
171 171
 				}
172 172
 				$this->logger->debug('SCSSCacher: scss cache file locked for '.$lockKey, ['app' => 'core']);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 * @return boolean
215 215
 	 */
216 216
 	private function isCached(string $fileNameCSS, string $app) {
217
-		$key = $this->config->getSystemValue('version') . '/' . $app . '/' . $fileNameCSS;
217
+		$key = $this->config->getSystemValue('version').'/'.$app.'/'.$fileNameCSS;
218 218
 
219 219
 		// If the file mtime is more recent than our cached one,
220 220
 		// let's consider the file is properly cached
@@ -236,13 +236,13 @@  discard block
 block discarded – undo
236 236
 		try {
237 237
 			$cachedFile = $folder->getFile($fileNameCSS);
238 238
 			if ($cachedFile->getSize() > 0) {
239
-				$depFileName = $fileNameCSS . '.deps';
240
-				$deps        = $this->depsCache->get($folder->getName() . '-' . $depFileName);
239
+				$depFileName = $fileNameCSS.'.deps';
240
+				$deps        = $this->depsCache->get($folder->getName().'-'.$depFileName);
241 241
 				if ($deps === null) {
242 242
 					$depFile = $folder->getFile($depFileName);
243 243
 					$deps    = $depFile->getContent();
244 244
 					// Set to memcache for next run
245
-					$this->depsCache->set($folder->getName() . '-' . $depFileName, $deps);
245
+					$this->depsCache->set($folder->getName().'-'.$depFileName, $deps);
246 246
 				}
247 247
 				$deps = json_decode($deps, true);
248 248
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$scss = new Compiler();
292 292
 		$scss->setImportPaths([
293 293
 			$path,
294
-			$this->serverRoot . '/core/css/'
294
+			$this->serverRoot.'/core/css/'
295 295
 		]);
296 296
 
297 297
 		// Continue after throw
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 			$cachedfile = $folder->newFile($fileNameCSS);
312 312
 		}
313 313
 
314
-		$depFileName = $fileNameCSS . '.deps';
314
+		$depFileName = $fileNameCSS.'.deps';
315 315
 		try {
316 316
 			$depFile = $folder->getFile($depFileName);
317 317
 		} catch (NotFoundException $e) {
@@ -321,11 +321,11 @@  discard block
 block discarded – undo
321 321
 		// Compile
322 322
 		try {
323 323
 			$compiledScss = $scss->compile(
324
-				'$webroot: \'' . $this->getRoutePrefix() . '\';' .
325
-				$this->getInjectedVariables() .
326
-				'@import "variables.scss";' .
327
-				'@import "functions.scss";' .
328
-				'@import "' . $fileNameSCSS . '";');
324
+				'$webroot: \''.$this->getRoutePrefix().'\';'.
325
+				$this->getInjectedVariables().
326
+				'@import "variables.scss";'.
327
+				'@import "functions.scss";'.
328
+				'@import "'.$fileNameSCSS.'";');
329 329
 		} catch (ParserException $e) {
330 330
 			$this->logger->logException($e, ['app' => 'core']);
331 331
 
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
 
338 338
 		// Gzip file
339 339
 		try {
340
-			$gzipFile = $folder->getFile($fileNameCSS . '.gzip'); # Safari doesn't like .gz
340
+			$gzipFile = $folder->getFile($fileNameCSS.'.gzip'); # Safari doesn't like .gz
341 341
 		} catch (NotFoundException $e) {
342
-			$gzipFile = $folder->newFile($fileNameCSS . '.gzip'); # Safari doesn't like .gz
342
+			$gzipFile = $folder->newFile($fileNameCSS.'.gzip'); # Safari doesn't like .gz
343 343
 		}
344 344
 
345 345
 		try {
@@ -347,13 +347,13 @@  discard block
 block discarded – undo
347 347
 			$cachedfile->putContent($data);
348 348
 			$deps = json_encode($scss->getParsedFiles());
349 349
 			$depFile->putContent($deps);
350
-			$this->depsCache->set($folder->getName() . '-' . $depFileName, $deps);
350
+			$this->depsCache->set($folder->getName().'-'.$depFileName, $deps);
351 351
 			$gzipFile->putContent(gzencode($data, 9));
352
-			$this->logger->debug('SCSSCacher: ' . $webDir . '/' . $fileNameSCSS . ' compiled and successfully cached', ['app' => 'core']);
352
+			$this->logger->debug('SCSSCacher: '.$webDir.'/'.$fileNameSCSS.' compiled and successfully cached', ['app' => 'core']);
353 353
 
354 354
 			return true;
355 355
 		} catch (NotPermittedException $e) {
356
-			$this->logger->error('SCSSCacher: unable to cache: ' . $fileNameSCSS);
356
+			$this->logger->error('SCSSCacher: unable to cache: '.$fileNameSCSS);
357 357
 
358 358
 			return false;
359 359
 		}
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 				try {
380 380
 					$file->delete();
381 381
 				} catch (NotPermittedException $e) {
382
-					$this->logger->logException($e, ['message' => 'SCSSCacher: unable to delete file: ' . $file->getName()]);
382
+					$this->logger->logException($e, ['message' => 'SCSSCacher: unable to delete file: '.$file->getName()]);
383 383
 				}
384 384
 			}
385 385
 		}
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 		}
397 397
 		$variables = '';
398 398
 		foreach ($this->defaults->getScssVariables() as $key => $value) {
399
-			$variables .= '$' . $key . ': ' . $value . ' !default;';
399
+			$variables .= '$'.$key.': '.$value.' !default;';
400 400
 		}
401 401
 
402 402
 		// check for valid variables / otherwise fall back to defaults
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 	 */
420 420
 	private function rebaseUrls(string $css, string $webDir): string {
421 421
 		$re    = '/url\([\'"]([^\/][\.\w?=\/-]*)[\'"]\)/x';
422
-		$subst = 'url(\'' . $webDir . '/$1\')';
422
+		$subst = 'url(\''.$webDir.'/$1\')';
423 423
 
424 424
 		return preg_replace($re, $subst, $css);
425 425
 	}
@@ -448,12 +448,12 @@  discard block
 block discarded – undo
448 448
 	 * @return string
449 449
 	 */
450 450
 	private function prependBaseurlPrefix(string $cssFile): string {
451
-		return substr(md5($this->urlGenerator->getBaseUrl() . $this->getRoutePrefix()), 0, 4) . '-' . $cssFile;
451
+		return substr(md5($this->urlGenerator->getBaseUrl().$this->getRoutePrefix()), 0, 4).'-'.$cssFile;
452 452
 	}
453 453
 
454 454
 	private function getRoutePrefix() {
455 455
 		$frontControllerActive = ($this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true');
456
-		$prefix = \OC::$WEBROOT . '/index.php';
456
+		$prefix = \OC::$WEBROOT.'/index.php';
457 457
 		if ($frontControllerActive) {
458 458
 			$prefix = \OC::$WEBROOT;
459 459
 		}
@@ -469,11 +469,11 @@  discard block
 block discarded – undo
469 469
 	private function prependVersionPrefix(string $cssFile, string $appId): string {
470 470
 		$appVersion = \OC_App::getAppVersion($appId);
471 471
 		if ($appVersion !== '0') {
472
-			return substr(md5($appVersion), 0, 4) . '-' . $cssFile;
472
+			return substr(md5($appVersion), 0, 4).'-'.$cssFile;
473 473
 		}
474 474
 		$coreVersion = \OC_Util::getVersionString();
475 475
 
476
-		return substr(md5($coreVersion), 0, 4) . '-' . $cssFile;
476
+		return substr(md5($coreVersion), 0, 4).'-'.$cssFile;
477 477
 	}
478 478
 
479 479
 	/**
@@ -491,10 +491,10 @@  discard block
 block discarded – undo
491 491
 			$appDirectoryPath = explode($appName, $path)[1];
492 492
 			// Remove the webroot
493 493
 
494
-			return str_replace($webRoot, '', $appWebPath . $appDirectoryPath);
494
+			return str_replace($webRoot, '', $appWebPath.$appDirectoryPath);
495 495
 		}
496 496
 
497
-		return $webRoot . substr($path, strlen($serverRoot));
497
+		return $webRoot.substr($path, strlen($serverRoot));
498 498
 	}
499 499
 
500 500
 	/**
Please login to merge, or discard this patch.
core/Command/User/ListCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	protected function execute(InputInterface $input, OutputInterface $output) {
86 86
 		$users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
87 87
 
88
-		$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info')));
88
+		$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool) $input->getOption('info')));
89 89
 	}
90 90
 
91 91
 	/**
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
 	 * @return array
95 95
 	 */
96 96
 	private function formatUsers(array $users, bool $detailed = false) {
97
-		$keys = array_map(function (IUser $user) {
97
+		$keys = array_map(function(IUser $user) {
98 98
 			return $user->getUID();
99 99
 		}, $users);
100 100
 	
101
-		$values = array_map(function (IUser $user) use ($detailed) {
101
+		$values = array_map(function(IUser $user) use ($detailed) {
102 102
 			if ($detailed) {
103 103
 				$groups = $this->groupManager->getUserGroupIds($user);
104 104
 				return [
Please login to merge, or discard this patch.
apps/settings/templates/settings/admin/security.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@
 block discarded – undo
29 29
 ?>
30 30
 
31 31
 <div id="two-factor-auth" class="section">
32
-	<h2><?php p($l->t('Two-Factor Authentication'));?></h2>
33
-	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-2fa')); ?>"></a>
32
+	<h2><?php p($l->t('Two-Factor Authentication')); ?></h2>
33
+	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation')); ?>" href="<?php p(link_to_docs('admin-2fa')); ?>"></a>
34 34
 	<div id="two-factor-auth-settings"></div>
35 35
 </div>
36 36
 
37 37
 <div class="section" id='encryptionAPI'>
38 38
 	<h2><?php p($l->t('Server-side encryption')); ?></h2>
39 39
 	<a target="_blank" rel="noreferrer noopener" class="icon-info"
40
-	   title="<?php p($l->t('Open documentation'));?>"
40
+	   title="<?php p($l->t('Open documentation')); ?>"
41 41
 	   href="<?php p(link_to_docs('admin-encryption')); ?>"></a>
42 42
 	<p class="settings-hint"><?php p($l->t('Server-side encryption makes it possible to encrypt files which are uploaded to this server. This comes with limitations like a performance penalty, so enable this only if needed.')); ?></p>
43 43
 	<p id="enable">
Please login to merge, or discard this patch.
apps/theming/templates/settings-admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 ?>
29 29
 <div id="theming" class="section">
30 30
 	<h2 class="inlineblock"><?php p($l->t('Theming')); ?></h2>
31
-	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-theming')); ?>"></a>
31
+	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation')); ?>" href="<?php p(link_to_docs('admin-theming')); ?>"></a>
32 32
         <p class="settings-hint"><?php p($l->t('Theming makes it possible to easily customize the look and feel of your instance and supported clients. This will be visible for all users.')); ?></p>
33 33
 		<div id="theming_settings_status">
34 34
 			<div id="theming_settings_loading" class="icon-loading-small" style="display: none;"></div>
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/Service/BackupCodeStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
 		$codes = $this->mapper->getBackupCodes($user);
106 106
 		$total = count($codes);
107 107
 		$used = 0;
108
-		array_walk($codes, function (BackupCode $code) use (&$used) {
109
-			if (1 === (int)$code->getUsed()) {
108
+		array_walk($codes, function(BackupCode $code) use (&$used) {
109
+			if (1 === (int) $code->getUsed()) {
110 110
 				$used++;
111 111
 			}
112 112
 		});
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 		$dbCodes = $this->mapper->getBackupCodes($user);
127 127
 
128 128
 		foreach ($dbCodes as $dbCode) {
129
-			if (0 === (int)$dbCode->getUsed() && $this->hasher->verify($code, $dbCode->getCode())) {
129
+			if (0 === (int) $dbCode->getUsed() && $this->hasher->verify($code, $dbCode->getCode())) {
130 130
 				$dbCode->setUsed(1);
131 131
 				$this->mapper->update($dbCode);
132 132
 				return true;
Please login to merge, or discard this patch.