@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | UsersConstant::MODVAR_LOGIN_DISPLAY_APPROVAL_STATUS |
| 108 | 108 | ]; |
| 109 | 109 | foreach ($modvarsToConvertToBool as $modvarToConvert) { |
| 110 | - $this->setVar($modvarToConvert, (bool)$this->getVar($modvarToConvert)); |
|
| 110 | + $this->setVar($modvarToConvert, (bool) $this->getVar($modvarToConvert)); |
|
| 111 | 111 | } |
| 112 | 112 | $this->schemaTool->update([ |
| 113 | 113 | UserEntity::class |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | $value = in_array($migratedModVarName, [ |
| 281 | 281 | ZAuthConstant::MODVAR_EMAIL_VERIFICATION_REQUIRED, |
| 282 | 282 | ZAuthConstant::MODVAR_PASSWORD_STRENGTH_METER_ENABLED |
| 283 | - ], true) ? (bool)$value : $value; |
|
| 283 | + ], true) ? (bool) $value : $value; |
|
| 284 | 284 | $this->getVariableApi()->set('ZikulaZAuthModule', $migratedModVarName, $value); |
| 285 | 285 | } |
| 286 | 286 | } |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $this->entityManager->flush(); |
| 105 | 105 | case '2.9.10': |
| 106 | 106 | case '2.9.11': |
| 107 | - $this->setSystemVar('UseCompression', (bool)$this->getSystemVar('UseCompression')); |
|
| 107 | + $this->setSystemVar('UseCompression', (bool) $this->getSystemVar('UseCompression')); |
|
| 108 | 108 | case '2.9.12': // ship with Core-1.4.4 |
| 109 | 109 | // reconfigure TZ settings |
| 110 | 110 | $this->setGuestTimeZone(); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | $requiredDependents = $this->dependencyHelper->getDependentExtensions($extension); |
| 57 | 57 | if (!empty($requiredDependents)) { |
| 58 | 58 | if ($input->isInteractive()) { |
| 59 | - $names = implode(', ', array_map(function (ExtensionEntity $dependent) { |
|
| 59 | + $names = implode(', ', array_map(function(ExtensionEntity $dependent) { |
|
| 60 | 60 | return $dependent->getModname(); |
| 61 | 61 | }, $requiredDependents)); |
| 62 | 62 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $containsInstall = 'install' === $routeInfo['_route']; |
| 78 | 78 | $containsUpgrade = 'upgrade' === $routeInfo['_route']; |
| 79 | 79 | $containsLogin = 'Zikula\\UsersModule\\Controller\\AccessController::loginAction' === $routeInfo['_controller']; |
| 80 | - $containsWdt = '_wdt' === $routeInfo['_route']; |
|
| 80 | + $containsWdt = '_wdt' === $routeInfo['_route']; |
|
| 81 | 81 | $containsProfiler = false !== mb_strpos($routeInfo['_route'], '_profiler'); |
| 82 | 82 | $containsRouter = 'fos_js_routing_js' === $routeInfo['_route']; |
| 83 | 83 | $doNotRedirect = $containsProfiler || $containsWdt || $containsRouter || $request->isXmlHttpRequest(); |
@@ -49,7 +49,8 @@ |
||
| 49 | 49 | RequestStack $requestStack, |
| 50 | 50 | TranslatorInterface $translator, |
| 51 | 51 | VariableApiInterface $variableApi, |
| 52 | - LoggerInterface $logger) { |
|
| 52 | + LoggerInterface $logger) |
|
| 53 | + { |
|
| 53 | 54 | parent::__construct($extension, $managerRegistry, $schemaTool, $requestStack, $translator, $variableApi); |
| 54 | 55 | $this->logger = $logger; |
| 55 | 56 | } |
@@ -179,8 +179,8 @@ |
||
| 179 | 179 | if (1 === mb_strlen($saltDelimiter) && false !== mb_strpos($saltedHash, $saltDelimiter)) { |
| 180 | 180 | [$hashMethod, $saltStr, $correctHash] = explode($saltDelimiter, $saltedHash); |
| 181 | 181 | |
| 182 | - if (is_numeric($hashMethod) && ((int)$hashMethod === $hashMethod)) { |
|
| 183 | - $hashMethod = (int)$hashMethod; |
|
| 182 | + if (is_numeric($hashMethod) && ((int) $hashMethod === $hashMethod)) { |
|
| 183 | + $hashMethod = (int) $hashMethod; |
|
| 184 | 184 | } |
| 185 | 185 | $hashMethodName = $hashMethodCodeToName[$hashMethod] ?? $hashMethod; |
| 186 | 186 | |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | $data = $form->getData(); |
| 308 | 308 | $code = bin2hex(random_bytes(8)); |
| 309 | 309 | $hashedCode = $encoderFactory->getEncoder(AuthenticationMappingEntity::class)->encodePassword($code, null); |
| 310 | - $currentUserId = (int)$currentUserApi->get('uid'); |
|
| 310 | + $currentUserId = (int) $currentUserApi->get('uid'); |
|
| 311 | 311 | $userVerificationRepository->setVerificationCode($currentUserId, ZAuthConstant::VERIFYCHGTYPE_EMAIL, $hashedCode, $data['email']); |
| 312 | 312 | $templateArgs = [ |
| 313 | 313 | 'uname' => $currentUserApi->get('uname'), |
@@ -111,7 +111,8 @@ |
||
| 111 | 111 | return $mapping->getUid(); |
| 112 | 112 | } elseif ($mapping && $passwordEncoder->isPasswordValid($mapping->getPass(), $data['pass'], null)) { |
| 113 | 113 | // new way |
| 114 | - if ($passwordEncoder->needsRehash($mapping->getPass())) { // check to update hash to newer algo |
|
| 114 | + if ($passwordEncoder->needsRehash($mapping->getPass())) { |
|
| 115 | +// check to update hash to newer algo |
|
| 115 | 116 | $this->updatePassword($mapping, $data['pass']); |
| 116 | 117 | } |
| 117 | 118 | |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | // rewrite local links |
| 76 | 76 | $content = preg_replace_callback( |
| 77 | 77 | '/\[(.*?)\]\((.*?)\)/', |
| 78 | - function ($match) use ($router, $moduleName, $raw) { |
|
| 78 | + function($match) use ($router, $moduleName, $raw) { |
|
| 79 | 79 | if (false === mb_strpos($match[2], '.md')) { |
| 80 | 80 | return $match[0]; |
| 81 | 81 | } |