Completed
Pull Request — master (#4277)
by Craig
05:26
created
src/system/RoutesModule/Form/Handler/Route/EditHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
     {
71 71
         $entity = $this->entityRef;
72 72
 
73
-        list($controller,) = $this->sanitizeHelper->sanitizeController((string)$entity['controller']);
74
-        list($action,) = $this->sanitizeHelper->sanitizeAction((string)$entity['action']);
73
+        list($controller,) = $this->sanitizeHelper->sanitizeController((string) $entity['controller']);
74
+        list($action,) = $this->sanitizeHelper->sanitizeAction((string) $entity['action']);
75 75
 
76 76
         $entity['controller'] = $controller;
77 77
         $entity['action'] = $action;
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractPermissionHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      */
180 180
     public function getUserId(): int
181 181
     {
182
-        return (int)$this->currentUserApi->get('uid');
182
+        return (int) $this->currentUserApi->get('uid');
183 183
     }
184 184
     
185 185
     /**
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractControllerHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         $templateParameters['sortdir'] = strtolower($sortdir);
138 138
     
139 139
         $templateParameters['all'] = 'csv' === $request->getRequestFormat() ? 1 : $request->query->getInt('all');
140
-        $showOnlyOwnEntriesSetting = (bool)$request->query->getInt(
140
+        $showOnlyOwnEntriesSetting = (bool) $request->query->getInt(
141 141
             'own',
142 142
             (int) $this->variableApi->get('ZikulaRoutesModule', 'showOnlyOwnEntries')
143 143
         );
Please login to merge, or discard this patch.
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/BlocksModuleInstaller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 $this->entityManager->flush();
119 119
 
120 120
                 $collapseable = $this->getVar('collapseable');
121
-                $this->setVar('collapseable', (bool)$collapseable);
121
+                $this->setVar('collapseable', (bool) $collapseable);
122 122
 
123 123
             case '3.9.2':
124 124
                 // convert Text and Html block types so properties is proper array
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
                 $searchBlocks = $blockRepository->findBy(['blocktype' => 'Search']);
140 140
                 foreach ($searchBlocks as $searchBlock) {
141 141
                     $properties = $searchBlock->getProperties();
142
-                    $properties['displaySearchBtn'] = (bool)$properties['displaySearchBtn'];
142
+                    $properties['displaySearchBtn'] = (bool) $properties['displaySearchBtn'];
143 143
                     if (isset($properties['active'])) {
144 144
                         foreach ($properties['active'] as $module => $active) {
145
-                            $properties['active'][$module] = (bool)$active;
145
+                            $properties['active'][$module] = (bool) $active;
146 146
                         }
147 147
                     }
148 148
                     $searchBlock->setProperties($properties);
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.