Passed
Push — 3.0 ( 6a2c92...106529 )
by Axel
06:21
created
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.
src/system/ZAuthModule/Helper/AdministrationActionsHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         if ($hasEditPermissionToUser) {
105 105
             $userEntity = $this->userRepository->find($mapping->getUid());
106 106
             if (null !== $userEntity) {
107
-                if ((bool)$userEntity->getAttributeValue(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY)
107
+                if ((bool) $userEntity->getAttributeValue(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY)
108 108
                     && $userEntity->getAttributes()->containsKey(ZAuthConstant::REQUIRE_PASSWORD_CHANGE_KEY)
109 109
                 ) {
110 110
                     $title = $this->translator->trans('Cancel required change of password for %sub%', ['%sub%' => $mapping->getUname()]);
Please login to merge, or discard this patch.
src/system/CategoriesModule/Entity/Repository/CategoryRepository.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
         $query = $qb->getQuery();
64 64
 
65
-        return (int)$query->getSingleScalarResult();
65
+        return (int) $query->getSingleScalarResult();
66 66
     }
67 67
 
68 68
     public function getLastByParent(int $parentId = 0): ?CategoryEntity
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
 
53 53
         if ($parentId > 0) {
54 54
             $qb->andWhere('c.parent = :parentid')
55
-               ->setParameter('parentid', $parentId);
55
+                ->setParameter('parentid', $parentId);
56 56
         }
57 57
 
58 58
         if (null !== $excludedId && $excludedId > 0) {
59 59
             $qb->andWhere('c.id != :id')
60
-               ->setParameter('id', $excludedId);
60
+                ->setParameter('id', $excludedId);
61 61
         }
62 62
 
63 63
         $query = $qb->getQuery();
Please login to merge, or discard this patch.
CategoriesModule/Form/DataTransformer/CategoriesCollectionTransformer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
         if (!in_array(AbstractCategoryAssignment::class, $classParents, true)) {
47 47
             throw new InvalidConfigurationException("Option 'entityCategoryClass' must extend Zikula\\CategoriesModule\\Entity\\AbstractCategoryAssignment");
48 48
         }
49
-        $this->entityCategoryClass = (string)$options['entityCategoryClass'];
50
-        $this->multiple = (bool)($options['multiple'] ?? false);
49
+        $this->entityCategoryClass = (string) $options['entityCategoryClass'];
50
+        $this->multiple = (bool) ($options['multiple'] ?? false);
51 51
         $this->entityManager = $options['em'];
52 52
     }
53 53
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $class = $this->entityCategoryClass;
58 58
 
59 59
         foreach ($value as $regId => $categories) {
60
-            $regId = (int)mb_substr($regId, mb_strpos($regId, '_') + 1);
60
+            $regId = (int) mb_substr($regId, mb_strpos($regId, '_') + 1);
61 61
             $subCollection = new ArrayCollection();
62 62
             if (!is_array($categories) && $categories instanceof CategoryEntity) {
63 63
                 $categories = [$categories];
Please login to merge, or discard this patch.
src/Zikula/HookBundle/Hook/ValidationResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,6 +75,6 @@
 block discarded – undo
75 75
 
76 76
     public function hasErrors(): bool
77 77
     {
78
-        return (bool)$this->errors;
78
+        return (bool) $this->errors;
79 79
     }
80 80
 }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/YamlDumper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,11 +163,11 @@
 block discarded – undo
163 163
         $html = '';
164 164
 
165 165
         foreach ($value as $key => $val) {
166
-            $html .= '<li><strong>' . htmlspecialchars((string)$key, ENT_QUOTES) . ':</strong>';
166
+            $html .= '<li><strong>' . htmlspecialchars((string) $key, ENT_QUOTES) . ':</strong>';
167 167
             if (is_array($val)) {
168 168
                 $html .= $this->formatValue($val) . "</li>\n";
169 169
             } else {
170
-                $val = !empty($val) ? htmlspecialchars((string)$val, ENT_QUOTES) : '<em>null</em>';
170
+                $val = !empty($val) ? htmlspecialchars((string) $val, ENT_QUOTES) : '<em>null</em>';
171 171
                 $html .= ' ' . $val . "</li>\n";
172 172
             }
173 173
         }
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/EventListener/SiteOffListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
             return;
110 110
         }
111 111
 
112
-        $siteOff = (bool)$this->variableApi->getSystemVar('siteoff');
112
+        $siteOff = (bool) $this->variableApi->getSystemVar('siteoff');
113 113
         $hasAdminPerms = $this->permissionApi->hasPermission('ZikulaSettingsModule::', 'SiteOff::', ACCESS_ADMIN);
114 114
 
115 115
         // Check for site closed
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Doctrine/WhereFromFilterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                 } elseif (is_int($value['operand']) || is_array($value['operand']) || $value['operand'] instanceof DateTime) {
55 55
                     $dbValue = $value['operand'];
56 56
                 } else {
57
-                    $dbValue = (string)$value['operand'];
57
+                    $dbValue = (string) $value['operand'];
58 58
                 }
59 59
                 $methodMap = [
60 60
                     '=' => 'eq',
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Event/GenericEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
     public function hasException(): bool
112 112
     {
113
-        return (bool)$this->exception;
113
+        return (bool) $this->exception;
114 114
     }
115 115
 
116 116
     public function getSubject()
Please login to merge, or discard this patch.