Completed
Pull Request — master (#4286)
by Craig
10:40 queued 04:59
created
src/system/RoutesModule/Helper/RouteDumperHelper.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
             // use provided lang if available
78 78
             $langs = [$lang];
79 79
         } else {
80
-            $multilingual = (bool)$this->variableApi->getSystemVar('multilingual');
80
+            $multilingual = (bool) $this->variableApi->getSystemVar('multilingual');
81 81
             if ($multilingual) {
82 82
                 // get all available locales
83 83
                 $langs = $installedLanguages;
Please login to merge, or discard this patch.
src/system/SettingsModule/Menu/ExtensionMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
             'route' => 'zikulasettingsmodule_settings_locale',
95 95
         ])->setAttribute('icon', 'fas fa-spell-check');
96 96
 
97
-        if (true === (bool)$this->variableApi->getSystemVar('multilingual')) {
97
+        if (true === (bool) $this->variableApi->getSystemVar('multilingual')) {
98 98
             if ('dev' === $this->kernel->getEnvironment()) {
99 99
                 $request = $this->requestStack->getCurrentRequest();
100 100
                 if ($request->hasSession() && ($session = $request->getSession())) {
Please login to merge, or discard this patch.
src/system/BlocksModule/Controller/PlacementController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $query->getResult();
100 100
 
101 101
         // add new block positions
102
-        foreach ((array)$blockorder as $order => $bid) {
102
+        foreach ((array) $blockorder as $order => $bid) {
103 103
             $placement = new BlockPlacementEntity();
104 104
             $placement->setPosition($em->getReference('ZikulaBlocksModule:BlockPositionEntity', $position));
105 105
             $placement->setBlock($em->getReference('ZikulaBlocksModule:BlockEntity', $bid));
Please login to merge, or discard this patch.
src/system/ThemeModule/EventListener/AddJSConfigListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@
 block discarded – undo
97 97
             'entrypoint' => ZikulaKernel::FRONT_CONTROLLER,
98 98
             'baseURL' => $event->getRequest()->getSchemeAndHttpHost() . '/',
99 99
             'baseURI' => $event->getRequest()->getBasePath(),
100
-            'ajaxtimeout' => (int)$this->variableApi->getSystemVar('ajaxtimeout', 5000),
100
+            'ajaxtimeout' => (int) $this->variableApi->getSystemVar('ajaxtimeout', 5000),
101 101
             'lang' => $event->getRequest()->getLocale(),
102 102
             'sessionName' => isset($session) ? $session->getName() : $this->defaultSessionName,
103
-            'uid' => (int)$this->currentUserApi->get('uid')
103
+            'uid' => (int) $this->currentUserApi->get('uid')
104 104
         ];
105 105
 
106 106
         $config = array_map('htmlspecialchars', $config);
Please login to merge, or discard this patch.
src/system/ThemeModule/Engine/Asset/Merger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
             $this->lifetime,
114 114
             $this->kernel->getCacheDir() . '/assets/' . $type
115 115
         );
116
-        $key = md5(serialize($assets)) . (int)$this->minify . (int)$this->compress . $this->lifetime . '.combined.' . $type;
116
+        $key = md5(serialize($assets)) . (int) $this->minify . (int) $this->compress . $this->lifetime . '.combined.' . $type;
117 117
         $data = $cacheService->get($key, function() use ($cachedFiles, $type) {
118 118
             $data = [];
119 119
             foreach ($cachedFiles as $k => $file) {
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Entity/Repository/ExtensionVarRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             ->getQuery();
48 48
         $result = $query->execute();
49 49
 
50
-        return (bool)$result;
50
+        return (bool) $result;
51 51
     }
52 52
 
53 53
     public function deleteByExtension(string $extensionName): bool
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             ->getQuery();
60 60
         $result = $query->execute();
61 61
 
62
-        return (bool)$result;
62
+        return (bool) $result;
63 63
     }
64 64
 
65 65
     public function updateName(string $oldName, string $newName): bool
@@ -73,6 +73,6 @@  discard block
 block discarded – undo
73 73
             ->getQuery();
74 74
         $result = $query->execute();
75 75
 
76
-        return (bool)$result;
76
+        return (bool) $result;
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Helper/BundleSyncHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
     ): void {
259 259
         foreach ($extensionsFromFile as $name => $extensionFromFile) {
260 260
             foreach ($extensionsFromDB as $dbname => $extensionFromDB) {
261
-                if (isset($extensionFromDB['name']) && in_array($extensionFromDB['name'], (array)$extensionFromFile['oldnames'], true)) {
261
+                if (isset($extensionFromDB['name']) && in_array($extensionFromDB['name'], (array) $extensionFromFile['oldnames'], true)) {
262 262
                     // migrate its modvars
263 263
                     $this->extensionVarRepository->updateName($dbname, $name);
264 264
                     // rename the extension register
Please login to merge, or discard this patch.
src/system/PermissionsModule/Controller/PermissionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             'lockadmin' => $this->getVar('lockadmin', 1) ? 1 : 0,
77 77
             'adminId' => $this->getVar('adminid', 1),
78 78
             'schema' => $schemaHelper->getAllSchema(),
79
-            'enableFilter' => (bool)$this->getVar('filter', 1)
79
+            'enableFilter' => (bool) $this->getVar('filter', 1)
80 80
         ];
81 81
     }
82 82
 
Please login to merge, or discard this patch.
src/system/PermissionsModule/Entity/Repository/PermissionRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         $query = $qb->select($qb->expr()->max('p.sequence'))
96 96
             ->getQuery();
97 97
 
98
-        return (int)$query->getSingleScalarResult();
98
+        return (int) $query->getSingleScalarResult();
99 99
     }
100 100
 
101 101
     public function updateSequencesFrom(int $value, int $amount = 1): void
Please login to merge, or discard this patch.