Test Setup Failed
Pull Request — master (#4514)
by Axel
05:14
created
src/system/GroupsModule/GroupsModuleInstaller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         switch ($oldVersion) {
49 49
             case '2.4.0': // shipped with Core-1.4.3
50
-                $this->setVar('mailwarning', (bool)$this->getVar('mailwarning'));
51
-                $this->setVar('hideclosed', (bool)$this->getVar('hideclosed'));
50
+                $this->setVar('mailwarning', (bool) $this->getVar('mailwarning'));
51
+                $this->setVar('hideclosed', (bool) $this->getVar('hideclosed'));
52 52
                 $this->setVar('hidePrivate', false);
53 53
                 // no break
54 54
             case '2.4.1':
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
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     {
94 94
         switch ($oldVersion) {
95 95
             case '2.9.11': // shipped with Core-1.4.3
96
-                $this->setSystemVar('UseCompression', (bool)$this->getSystemVar('UseCompression'));
96
+                $this->setSystemVar('UseCompression', (bool) $this->getSystemVar('UseCompression'));
97 97
                 // no break
98 98
             case '2.9.12': // shipped with Core-1.4.4
99 99
                 // reconfigure TZ settings
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Configurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
      */
188 188
     public function arrayDiffAssocRecursive(array $array1, array $array2): array
189 189
     {
190
-        $difference=[];
190
+        $difference = [];
191 191
         foreach ($array1 as $key => $value) {
192 192
             if (is_array($value)) {
193 193
                 if (!isset($array2[$key]) || !is_array($array2[$key])) {
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_localesettings',
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/MenuModule/MenuModuleInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 foreach ($menuItems as $menuItem) {
50 50
                     if ($menuItem->hasOption('icon')) {
51 51
                         $iconClass = (string) $menuItem->getOption('icon');
52
-                        $menuItem->setOption('icon', 'fas' . (string)s($iconClass)->slice(3));
52
+                        $menuItem->setOption('icon', 'fas' . (string) s($iconClass)->slice(3));
53 53
                     }
54 54
                 }
55 55
                 $this->entityManager->flush();
Please login to merge, or discard this patch.
src/system/UsersModule/Twig/Extension/ProfileExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         string $title = ''
96 96
     ): string {
97 97
         if (empty($userId) || $userId < 1) {
98
-            return (string)$userId;
98
+            return (string) $userId;
99 99
         }
100 100
 
101 101
         return $this->determineProfileLink($userId, null, $class, $image, $maxLength, $title);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             // truncate the user name to $maxLength chars
165 165
             $length = mb_strlen($userDisplayName);
166 166
             $truncEnd = ($maxLength > $length) ? $length : $maxLength;
167
-            $show = htmlspecialchars((string)s($userDisplayName)->slice(0, $truncEnd), ENT_QUOTES);
167
+            $show = htmlspecialchars((string) s($userDisplayName)->slice(0, $truncEnd), ENT_QUOTES);
168 168
         } else {
169 169
             $show = htmlspecialchars($userDisplayName, ENT_QUOTES);
170 170
         }
Please login to merge, or discard this patch.
src/system/ExtensionsModule/AbstractExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $ns = $this->getNamespace();
33 33
         $installerName = s($ns)->afterLast('\\')->append('Installer');
34
-        $class = $ns . '\\' . (string)$installerName;
34
+        $class = $ns . '\\' . (string) $installerName;
35 35
 
36 36
         return $class;
37 37
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $folder = $this->getNameType() . 's/';
68 68
         $name = s($this->getName())->trimEnd($this->getNameType());
69 69
 
70
-        return (string)s($folder . $name)->lower();
70
+        return (string) s($folder . $name)->lower();
71 71
     }
72 72
 
73 73
     public function getNameType(): string
Please login to merge, or discard this patch.
src/system/ExtensionsModule/Controller/HelpController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         // rewrite local links
77 77
         $content = preg_replace_callback(
78 78
             '/\[(.*?)\]\((.*?)\)/',
79
-            function ($match) use ($router, $moduleName, $raw) {
79
+            function($match) use ($router, $moduleName, $raw) {
80 80
                 $pageName = s($match[2]);
81 81
                 if (false === mb_strpos($match[2], '.md')) {
82 82
                     return $match[0];
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 // local link - rewrite
89 89
                 $urlArgs = [
90 90
                     'moduleName' => $moduleName,
91
-                    'page' => (string)$pageName->trimEnd('.md')
91
+                    'page' => (string) $pageName->trimEnd('.md')
92 92
                 ];
93 93
                 if (1 === $raw) {
94 94
                     $urlArgs['raw'] = 1;
Please login to merge, or discard this patch.
src/system/RoutesModule/Translation/ConsoleCommandListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         }
59 59
 
60 60
         if (null !== $bundle) {
61
-            $bundle = (string)s($bundle)->trimStart('@');
61
+            $bundle = (string) s($bundle)->trimStart('@');
62 62
 
63 63
             $this->extractTranslationHelper->setExtensionName($bundle);
64 64
         }
Please login to merge, or discard this patch.