Completed
Push — master ( 8ddc50...9bc621 )
by Craig
13:27 queued 07:38
created
src/system/RoutesModule/Form/Handler/Route/Base/AbstractEditHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
             'mode' => $this->templateParameters['mode'],
81 81
             'actions' => $this->templateParameters['actions'],
82 82
             'has_moderate_permission' => $this->permissionHelper->hasEntityPermission($this->entityRef, ACCESS_ADMIN),
83
-            'allow_moderation_specific_creator' => (bool)$this->variableApi->get(
83
+            'allow_moderation_specific_creator' => (bool) $this->variableApi->get(
84 84
                 'ZikulaRoutesModule',
85 85
                 'allowModerationSpecificCreatorFor' . $this->objectTypeCapital,
86 86
                 false
87 87
             ),
88
-            'allow_moderation_specific_creation_date' => (bool)$this->variableApi->get(
88
+            'allow_moderation_specific_creation_date' => (bool) $this->variableApi->get(
89 89
                 'ZikulaRoutesModule',
90 90
                 'allowModerationSpecificCreationDateFor' . $this->objectTypeCapital,
91 91
                 false
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                 return $this->router->generate($routePrefix . 'view');
288 288
             case 'userOwnView':
289 289
             case 'adminOwnView':
290
-                return $this->router->generate($routePrefix . 'view', [ 'own' => 1 ]);
290
+                return $this->router->generate($routePrefix . 'view', ['own' => 1]);
291 291
             case 'userDisplay':
292 292
             case 'adminDisplay':
293 293
                 if (
Please login to merge, or discard this patch.
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/Controller/SettingsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $messageModules = $messageModuleCollector->getKeys();
65 65
 
66 66
         $variables = $variableApi->getAll(VariableApi::CONFIG);
67
-        $variables['UseCompression'] = (bool)$variables['UseCompression'];
67
+        $variables['UseCompression'] = (bool) $variables['UseCompression'];
68 68
         $form = $this->createForm(MainSettingsType::class,
69 69
             $variables, [
70 70
                 'languages' => $installedLanguageNames,
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
 
120 120
         $form = $this->createForm(LocaleSettingsType::class,
121 121
             [
122
-                'multilingual' => (bool)$variableApi->getSystemVar('multilingual'),
122
+                'multilingual' => (bool) $variableApi->getSystemVar('multilingual'),
123 123
                 'languageurl' => $variableApi->getSystemVar('languageurl'),
124
-                'language_detect' => (bool)$variableApi->getSystemVar('language_detect'),
124
+                'language_detect' => (bool) $variableApi->getSystemVar('language_detect'),
125 125
                 'locale' => $variableApi->getSystemVar('locale'),
126 126
                 'timezone' => $variableApi->getSystemVar('timezone'),
127 127
             ], [
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.