Completed
Pull Request — master (#4281)
by Craig
04:56
created
src/Zikula/CoreBundle/Twig/Extension/CoreExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             return $string;
73 73
         }
74 74
 
75
-        return (bool)$string ? $this->translator->trans('Yes') : $this->translator->trans('No');
75
+        return (bool) $string ? $this->translator->trans('Yes') : $this->translator->trans('No');
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/BundlesSchemaHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $res = $qb->execute();
106 106
         foreach ($res->fetchAll() as $row) {
107 107
             if (!array_key_exists($row['bundlename'], $fileExtensions)) {
108
-                $this->removeById((int)$row['id']);
108
+                $this->removeById((int) $row['id']);
109 109
             }
110 110
         }
111 111
 
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/PersistedBundleHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@
 block discarded – undo
87 87
             $rows = $conn->executeQuery($sql);
88 88
             foreach ($rows as $row) {
89 89
                 $this->extensionStateMap[$row['name']] = [
90
-                    'state' => (int)$row['state'],
91
-                    'id'    => (int)$row['id'],
90
+                    'state' => (int) $row['state'],
91
+                    'id'    => (int) $row['id'],
92 92
                 ];
93 93
             }
94 94
 
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Command/ZikulaExtensionUninstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Zikula/CoreInstallerBundle/EventListener/InstallUpgradeCheckListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/system/RoutesModule/Base/AbstractRoutesModuleInstaller.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/system/ZAuthModule/Api/PasswordApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,8 +179,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/system/ZAuthModule/Controller/AccountController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
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'),
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Controller/HelpController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.