Completed
Push — master ( e9d211...82b216 )
by Craig
05:41
created
src/system/AdminModule/Entity/Repository/AdminModuleRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             ->setParameter('cid', $cid)
42 42
             ->getQuery();
43 43
 
44
-        return (int)$query->getSingleScalarResult();
44
+        return (int) $query->getSingleScalarResult();
45 45
     }
46 46
 
47 47
     public function setModuleCategory(ExtensionEntity $moduleEntity, AdminCategoryEntity $adminCategoryEntity): void
Please login to merge, or discard this patch.
src/system/AdminModule/Entity/Repository/AdminCategoryRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             ->select('COUNT(c.cid)')
33 33
             ->getQuery();
34 34
 
35
-        return (int)$query->getSingleScalarResult();
35
+        return (int) $query->getSingleScalarResult();
36 36
     }
37 37
 
38 38
     public function getModuleCategory(int $moduleId): ?AdminCategoryEntity
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             ->setParameter('mid', $moduleId)
45 45
             ->getQuery();
46 46
 
47
-        $categoryId = (int)$query->getSingleScalarResult();
47
+        $categoryId = (int) $query->getSingleScalarResult();
48 48
         if (!$categoryId) {
49 49
             return null;
50 50
         }
Please login to merge, or discard this patch.
src/system/AdminModule/Helper/UpdateCheckHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $this->variableApi = $variableApi;
75 75
 
76
-        $this->enabled = (bool)$variableApi->getSystemVar('updatecheck');
76
+        $this->enabled = (bool) $variableApi->getSystemVar('updatecheck');
77 77
         $this->currentVersion = ZikulaKernel::VERSION;
78
-        $this->lastChecked = (int)$variableApi->getSystemVar('updatelastchecked');
79
-        $this->checkInterval = (int)$variableApi->getSystemVar('updatefrequency');
78
+        $this->lastChecked = (int) $variableApi->getSystemVar('updatelastchecked');
79
+        $this->checkInterval = (int) $variableApi->getSystemVar('updatefrequency');
80 80
         $this->updateversion = $variableApi->getSystemVar('updateversion');
81 81
 
82
-        $this->force = (bool)$requestStack->getMasterRequest()->query->get('forceupdatecheck');
82
+        $this->force = (bool) $requestStack->getMasterRequest()->query->get('forceupdatecheck');
83 83
         $this->checked = false;
84 84
         $this->releases = false;
85 85
 
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
         }
148 148
 
149 149
         if (true === $this->checked && '' !== $this->updateversion) {
150
-            $this->variableApi->set(VariableApi::CONFIG, 'updatelastchecked', (int)time());
150
+            $this->variableApi->set(VariableApi::CONFIG, 'updatelastchecked', (int) time());
151 151
             $this->variableApi->set(VariableApi::CONFIG, 'updateversion', $this->updateversion);
152
-            $this->lastChecked = (int)$this->variableApi->getSystemVar('updatelastchecked');
152
+            $this->lastChecked = (int) $this->variableApi->getSystemVar('updatelastchecked');
153 153
         }
154 154
     }
155 155
 
Please login to merge, or discard this patch.
src/system/AdminModule/Helper/AdminLinksHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@
 block discarded – undo
20 20
 {
21 21
     public function sortAdminModsByOrder(array $adminLinks = []): array
22 22
     {
23
-        usort($adminLinks, function (array $a, array $b) {
24
-            if ((int)$a['order'] === (int)$b['order']) {
23
+        usort($adminLinks, function(array $a, array $b) {
24
+            if ((int) $a['order'] === (int) $b['order']) {
25 25
                 return strcmp($a['moduleName'], $b['moduleName']);
26 26
             }
27
-            if ((int)$a['order'] > (int)$b['order']) {
27
+            if ((int) $a['order'] > (int) $b['order']) {
28 28
                 return 1;
29 29
             }
30
-            if ((int)$a['order'] < (int)$b['order']) {
30
+            if ((int) $a['order'] < (int) $b['order']) {
31 31
                 return -1;
32 32
             }
33 33
 
Please login to merge, or discard this patch.
src/system/SecurityCenterModule/Controller/IdsLogController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,10 +86,10 @@
 block discarded – undo
86 86
         ]);
87 87
 
88 88
         // number of items to show
89
-        $pageSize = (int)$this->getVar('pagesize', 25);
89
+        $pageSize = (int) $this->getVar('pagesize', 25);
90 90
 
91 91
         // offset
92
-        $startOffset = (int)$request->query->getInt('startnum', 0);
92
+        $startOffset = (int) $request->query->getInt('startnum', 0);
93 93
 
94 94
         // get data
95 95
         $items = $repository->getIntrusions($where, $sorting, $pageSize, $startOffset);
Please login to merge, or discard this patch.
src/system/SecurityCenterModule/Controller/ConfigController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
                     $variableApi->set(VariableApi::CONFIG, 'sessionsavepath', $sessionSavePath);
140 140
                 }
141 141
 
142
-                if ((bool)$sessionStoreToFile !== (bool)$variableApi->getSystemVar('sessionstoretofile')) {
142
+                if ((bool) $sessionStoreToFile !== (bool) $variableApi->getSystemVar('sessionstoretofile')) {
143 143
                     // logout if going from one storage to another one
144 144
                     $causeLogout = true;
145 145
                 }
Please login to merge, or discard this patch.
src/system/MailerModule/Controller/ConfigController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                 // fetch different username and password fields depending on the transport type
72 72
                 $credentialsSuffix = 'gmail' === $formData['transport'] ? 'Gmail' : '';
73 73
 
74
-                $transport = (string)$formData['transport'];
74
+                $transport = (string) $formData['transport'];
75 75
                 $disableDelivery = false;
76 76
                 if ('test' === $transport) {
77 77
                     $transport = null;
Please login to merge, or discard this patch.
src/system/SearchModule/Block/SearchBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         }
107 107
         // remove disabled
108 108
         foreach ($searchModules as $displayName => $moduleName) {
109
-            if ((bool)$this->getVar('disable_' . $moduleName)) {
109
+            if ((bool) $this->getVar('disable_' . $moduleName)) {
110 110
                 unset($searchModules[$displayName]);
111 111
             }
112 112
         }
Please login to merge, or discard this patch.
src/system/ZAuthModule/Controller/UserAdministrationController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -441,7 +441,7 @@
 block discarded – undo
441 441
         $form->handleRequest($request);
442 442
         if ($form->isSubmitted() && $form->isValid()) {
443 443
             if ($form->get('toggle')->isClicked()) {
444
-                if ($user->getAttributes()->containsKey(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY) && (bool)$user->getAttributes()->get(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY)) {
444
+                if ($user->getAttributes()->containsKey(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY) && (bool) $user->getAttributes()->get(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY)) {
445 445
                     $user->getAttributes()->remove(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY);
446 446
                     $this->addFlash('success', $this->trans('Done! A password change will no longer be required for %userName%.', ['%userName%' => $user->getUname()]));
447 447
                 } else {
Please login to merge, or discard this patch.