Test Setup Failed
Push — master ( b71b46...e3aac8 )
by Craig
05:13
created
src/system/SecurityCenterModule/SecurityCenterModuleInstaller.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
         $this->setSystemVar('updateversion', ZikulaKernel::VERSION);
50 50
         $this->setSystemVar('secure_domain');
51 51
         $this->setSystemVar('signcookies', 1);
52
-        $this->setSystemVar('signingkey', sha1((string) (random_int(0, time()))));
52
+        $this->setSystemVar('signingkey', sha1((string)(random_int(0, time()))));
53 53
         $this->setSystemVar('seclevel', 'Medium');
54 54
         $this->setSystemVar('secmeddays', 7);
55 55
         $this->setSystemVar('secinactivemins', 20);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/FormExtensionBundle/Form/Type/DynamicFieldType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             'placeholder' => 'Select'
92 92
         ]);
93 93
 
94
-        $formModifier = function (FormInterface $form, $formType = null) use ($builder) {
94
+        $formModifier = function(FormInterface $form, $formType = null) use ($builder) {
95 95
             switch ($formType) {
96 96
                 case ChoiceType::class:
97 97
                     $optionsType = ChoiceFormOptionsArrayType::class;
@@ -127,12 +127,12 @@  discard block
 block discarded – undo
127 127
             }
128 128
             $form->add($formOptions->getForm());
129 129
         };
130
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($formModifier) {
130
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($formModifier) {
131 131
             $data = $event->getData();
132 132
             $formType = $data['formType'];
133 133
             $formModifier($event->getForm(), $formType);
134 134
         });
135
-        $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $event) use ($formModifier) {
135
+        $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $event) use ($formModifier) {
136 136
             $formType = $event->getForm()->getData();
137 137
             $formModifier($event->getForm()->getParent(), $formType);
138 138
         });
Please login to merge, or discard this patch.
src/system/RoutesModule/Twig/TwigExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 ->getPathWithBundlePrefix($route)
88 88
         );
89 89
 
90
-        $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) {
90
+        $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) {
91 91
             return '<abbr title="' . htmlspecialchars($matches[0]) . '">'
92 92
                 . htmlspecialchars($container->getParameter($matches[1]))
93 93
                 . '</abbr>'
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $defaults = $route->getDefaults();
98 98
         $requirements = $route->getRequirements();
99
-        $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) {
99
+        $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) {
100 100
             $title = '';
101 101
             if (isset($defaults[$matches[1]])) {
102 102
                 $title .= $this->trans('Default: %value%', ['%value%' => htmlspecialchars($defaults[$matches[1]])]);
Please login to merge, or discard this patch.
src/system/AdminModule/Helper/AdminLinksHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     public function sortAdminModsByOrder(array $adminLinks = []): array
22 22
     {
23
-        usort($adminLinks, function (array $a, array $b) {
23
+        usort($adminLinks, function(array $a, array $b) {
24 24
             if ((int)$a['order'] === (int)$b['order']) {
25 25
                 return strcmp($a['moduleName'], $b['moduleName']);
26 26
             }
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Twig/Extension/SessionExtension.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             }
81 81
 
82 82
             // set class for the messages
83
-            $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapClass}";
83
+            $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapclass}";
84 84
             $totalMessages += $messages;
85 85
             // build output of the messages
86 86
             if (empty($params['tag']) || ('span' !== $params['tag'])) {
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreInstallerBundle/Helper/ParameterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $this->variableApi->set(VariableApi::CONFIG, 'locale', $params['locale']);
111 111
         // Set the System Identifier as a unique string.
112 112
         if (!$this->variableApi->get(VariableApi::CONFIG, 'system_identifier')) {
113
-            $this->variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string) (random_int(1000000000, 9999999999)), true)));
113
+            $this->variableApi->set(VariableApi::CONFIG, 'system_identifier', str_replace('.', '', uniqid((string)(random_int(1000000000, 9999999999)), true)));
114 114
         }
115 115
         // add admin email as site email
116 116
         $this->variableApi->set(VariableApi::CONFIG, 'adminmail', $params['email']);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             }
158 158
 
159 159
             // on upgrade, if a user doesn't add their custom theme back to the /theme dir, it should be reset to a core theme, if available.
160
-            $defaultTheme = (string) $this->variableApi->getSystemVar('Default_Theme');
160
+            $defaultTheme = (string)$this->variableApi->getSystemVar('Default_Theme');
161 161
             if (!$this->kernel->isBundle($defaultTheme) && $this->kernel->isBundle('ZikulaBootstrapTheme')) {
162 162
                 $this->variableApi->set(VariableApi::CONFIG, 'Default_Theme', 'ZikulaBootstrapTheme');
163 163
             }
Please login to merge, or discard this patch.
Bundle/CoreBundle/Translation/Extractor/Visitor/Php/Knp/Menu/ItemLabel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             return null;
40 40
         }
41 41
 
42
-        $methodName = (string) $node->name;
42
+        $methodName = (string)$node->name;
43 43
         if (!\in_array($methodName, ['addChild', 'setLabel'], true)) {
44 44
             return null;
45 45
         }
Please login to merge, or discard this patch.
Bundle/CoreBundle/Translation/Extractor/Visitor/Php/Knp/Menu/LinkTitle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             return null;
39 39
         }
40 40
 
41
-        $methodName = (string) $node->name;
41
+        $methodName = (string)$node->name;
42 42
         if ('setLinkAttribute' !== $methodName) {
43 43
             return null;
44 44
         }
Please login to merge, or discard this patch.
Translation/Extractor/Visitor/Php/Knp/Menu/AbstractKnpMenuVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             return null;
61 61
         }
62 62
 
63
-        $methodName = (string) $node->name;
63
+        $methodName = (string)$node->name;
64 64
         if ('setExtra' !== $methodName) {
65 65
             return null;
66 66
         }
Please login to merge, or discard this patch.