Completed
Push — master ( eb5507...a12ac5 )
by Craig
05:13
created
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.
src/Zikula/CoreBundle/Twig/TokenParser/SwitchTokenParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                     $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
56 56
                     $body = $this->parser->subparse([$this, 'decideCaseFork']);
57 57
 
58
-                    $cases->setNode((string)$i, new Node([
58
+                    $cases->setNode((string) $i, new Node([
59 59
                         'expression' => $expr,
60 60
                         'body' => $body,
61 61
                     ]));
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
                     $this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
76 76
                     $this->parser->subparse([$this, 'decideCaseFork']);
77 77
 
78
-                    if ($cases->hasNode((string)$i)) {
79
-                        $cases->getNode((string)$i)->setAttribute('break', true);
78
+                    if ($cases->hasNode((string) $i)) {
79
+                        $cases->getNode((string) $i)->setAttribute('break', true);
80 80
                     }
81 81
 
82 82
                     break;
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Twig/Extension/CoreExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             return $string;
73 73
         }
74 74
 
75
-        return (bool)$string ? $this->translator->trans('Yes') : $this->translator->trans('No');
75
+        return (bool) $string ? $this->translator->trans('Yes') : $this->translator->trans('No');
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/BundlesSchemaHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $res = $qb->execute();
106 106
         foreach ($res->fetchAll() as $row) {
107 107
             if (!array_key_exists($row['bundlename'], $fileExtensions)) {
108
-                $this->removeById((int)$row['id']);
108
+                $this->removeById((int) $row['id']);
109 109
             }
110 110
         }
111 111
 
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Helper/PersistedBundleHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,8 @@
 block discarded – undo
87 87
             $rows = $conn->executeQuery($sql);
88 88
             foreach ($rows as $row) {
89 89
                 $this->extensionStateMap[$row['name']] = [
90
-                    'state' => (int)$row['state'],
91
-                    'id'    => (int)$row['id'],
90
+                    'state' => (int) $row['state'],
91
+                    'id'    => (int) $row['id'],
92 92
                 ];
93 93
             }
94 94
 
Please login to merge, or discard this patch.
src/system/UsersModule/UsersModuleInstaller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                     UsersConstant::MODVAR_LOGIN_DISPLAY_APPROVAL_STATUS
108 108
                 ];
109 109
                 foreach ($modvarsToConvertToBool as $modvarToConvert) {
110
-                    $this->setVar($modvarToConvert, (bool)$this->getVar($modvarToConvert));
110
+                    $this->setVar($modvarToConvert, (bool) $this->getVar($modvarToConvert));
111 111
                 }
112 112
                 $this->schemaTool->update([
113 113
                     UserEntity::class
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
             $value = in_array($migratedModVarName, [
281 281
                 ZAuthConstant::MODVAR_EMAIL_VERIFICATION_REQUIRED,
282 282
                 ZAuthConstant::MODVAR_PASSWORD_STRENGTH_METER_ENABLED
283
-            ], true) ? (bool)$value : $value;
283
+            ], true) ? (bool) $value : $value;
284 284
             $this->getVariableApi()->set('ZikulaZAuthModule', $migratedModVarName, $value);
285 285
         }
286 286
     }
Please login to merge, or discard this patch.
src/system/SettingsModule/SettingsModuleInstaller.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
                 $this->entityManager->flush();
105 105
             case '2.9.10':
106 106
             case '2.9.11':
107
-                $this->setSystemVar('UseCompression', (bool)$this->getSystemVar('UseCompression'));
107
+                $this->setSystemVar('UseCompression', (bool) $this->getSystemVar('UseCompression'));
108 108
             case '2.9.12': // ship with Core-1.4.4
109 109
                 // reconfigure TZ settings
110 110
                 $this->setGuestTimeZone();
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Command/ZikulaExtensionUninstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $requiredDependents = $this->dependencyHelper->getDependentExtensions($extension);
57 57
         if (!empty($requiredDependents)) {
58 58
             if ($input->isInteractive()) {
59
-                $names = implode(', ', array_map(function (ExtensionEntity $dependent) {
59
+                $names = implode(', ', array_map(function(ExtensionEntity $dependent) {
60 60
                     return $dependent->getModname();
61 61
                 }, $requiredDependents));
62 62
 
Please login to merge, or discard this patch.