Test Setup Failed
Push — dependabot/composer/thomaspark... ( aabc3d...0d7c4f )
by
unknown
09:36 queued 04:31
created
src/system/RoutesModule/Helper/Base/AbstractCollectionFilterHelper.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -162,17 +162,17 @@  discard block
 block discarded – undo
162 162
                 $v = (string) $v;
163 163
                 if ('workflowState' === $k && 0 === mb_strpos($v, '!')) {
164 164
                     $qb->andWhere('tbl.' . $k . ' != :' . $k)
165
-                       ->setParameter($k, mb_substr($v, 1));
165
+                        ->setParameter($k, mb_substr($v, 1));
166 166
                 } elseif (0 === mb_strpos($v, '%')) {
167 167
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
168
-                       ->setParameter($k, '%' . mb_substr($v, 1) . '%');
168
+                        ->setParameter($k, '%' . mb_substr($v, 1) . '%');
169 169
                 } elseif (in_array($k, ['schemes', 'methods'], true)) {
170 170
                     // multi list filter
171 171
                     $qb->andWhere('tbl.' . $k . ' LIKE :' . $k)
172
-                       ->setParameter($k, '%' . $v . '%');
172
+                        ->setParameter($k, '%' . $v . '%');
173 173
                 } else {
174 174
                     $qb->andWhere('tbl.' . $k . ' = :' . $k)
175
-                       ->setParameter($k, $v);
175
+                        ->setParameter($k, $v);
176 176
                 }
177 177
             }
178 178
         }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             // per default we show approved routes only
206 206
             $onlineStates = ['approved'];
207 207
             $qb->andWhere('tbl.workflowState IN (:onlineStates)')
208
-               ->setParameter('onlineStates', $onlineStates);
208
+                ->setParameter('onlineStates', $onlineStates);
209 209
         }
210 210
     
211 211
         return $qb;
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         }
273 273
     
274 274
         $qb->andWhere('tbl.createdBy = :userId')
275
-           ->setParameter('userId', $userId);
275
+            ->setParameter('userId', $userId);
276 276
     
277 277
         return $qb;
278 278
     }
Please login to merge, or discard this patch.
src/system/RoutesModule/Twig/TwigRuntime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         );
97 97
 
98 98
         $container = $this->container;
99
-        $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) {
99
+        $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) {
100 100
             return '<abbr title="' . htmlspecialchars($matches[0]) . '">'
101 101
                 . htmlspecialchars($container->getParameter($matches[1]))
102 102
                 . '</abbr>'
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         $defaults = $route->getDefaults();
107 107
         $requirements = $route->getRequirements();
108
-        $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) {
108
+        $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) {
109 109
             $title = '';
110 110
             if (isset($defaults[$matches[1]])) {
111 111
                 $title .= $this->trans('Default: %value%', ['%value%' => htmlspecialchars($defaults[$matches[1]])]);
Please login to merge, or discard this patch.
src/Zikula/CoreBundle/Command/GenerateTestUsersCommand.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
 <info>php %command.full_name% 1000 --active=I --verified=2 --regdate='>20200101'</info>
126 126
 
127
-EOT
127
+eot
128 128
             );
129 129
     }
130 130
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         }
192 192
         $randTimeStamp = mt_rand($regDate->getTimestamp(), $this->nowUTC->getTimestamp());
193 193
 
194
-        return \DateTime::createFromFormat('U', "${randTimeStamp}", $utcTz);
194
+        return \DateTime::createFromFormat('U', "${randtimestamp}", $utcTz);
195 195
     }
196 196
 
197 197
     private function insertUser(string $uname): void
Please login to merge, or discard this patch.
src/system/CategoriesModule/Controller/CategoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         return [
79 79
             'decorate' => true,
80 80
             'html' => true,
81
-            'childOpen' => function ($node) {
81
+            'childOpen' => function($node) {
82 82
                 $jsTreeData = [];
83 83
                 $jsTreeData['disabled'] = 'A' !== $node['status'];
84 84
                 $jsTreeData['type'] = $node['leaf'] ? 'leaf' : 'default';
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
                 return '<li ' . $jsTreeData . 'class="jstree-open" id="' . $this->domTreeNodePrefix . $node['id'] . '">';
88 88
             },
89
-            'nodeDecorator' => function ($node) use ($locale) {
89
+            'nodeDecorator' => function($node) use ($locale) {
90 90
                 $displayName = $node['displayName'][$locale] ?? $node['name'];
91 91
                 $title = ' title="' . $this->createTitleAttribute($node, $displayName, $locale) . '"';
92 92
                 $classes = [];
Please login to merge, or discard this patch.
src/system/CategoriesModule/Form/Type/CategoryTreeType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $resolver->setAllowedTypes('all', 'bool');
72 72
 
73 73
         $options['translator'] = $this->translator;
74
-        $resolver->setNormalizer('label', static function (Options $options, $label) {
74
+        $resolver->setNormalizer('label', static function(Options $options, $label) {
75 75
             if (null === $label || empty($label)) {
76 76
                 $isMultiple = $options['multiple'];
77 77
                 $translator = $options['translator'];
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
             return $label;
83 83
         });
84
-        $resolver->setNormalizer('placeholder', static function (Options $options, $placeholder) {
84
+        $resolver->setNormalizer('placeholder', static function(Options $options, $placeholder) {
85 85
             if (!$options['required']) {
86 86
                 if (null === $placeholder || empty($placeholder)) {
87 87
                     $isMultiple = $options['multiple'];
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
             return $placeholder;
95 95
         });
96
-        $resolver->setNormalizer('choices', function (Options $options, $choices) {
96
+        $resolver->setNormalizer('choices', function(Options $options, $choices) {
97 97
             if (empty($choices)) {
98 98
                 $choices = $this->getCategoryChoices($options);
99 99
             }
Please login to merge, or discard this patch.
src/system/CategoriesModule/Form/Type/CategoryRegistryType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         ;
80 80
 
81 81
         $translator = $this->translator;
82
-        $formModifier = function (FormInterface $form, string $modName = null) use ($translator) {
82
+        $formModifier = function(FormInterface $form, string $modName = null) use ($translator) {
83 83
             $entities = null === $modName ? [] : $this->entitySelectionBuilder->buildFor($modName);
84 84
             $form->add('entityname', ChoiceType::class, [
85 85
                 /** @Ignore */
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $builder->addEventListener(
92 92
             FormEvents::PRE_SET_DATA,
93
-            static function (FormEvent $event) use ($formModifier) {
93
+            static function(FormEvent $event) use ($formModifier) {
94 94
                 /** @var CategoryRegistryEntity $data */
95 95
                 $data = $event->getData();
96 96
                 $formModifier($event->getForm(), $data->getModname());
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $builder->get('modname')->addEventListener(
101 101
             FormEvents::POST_SUBMIT,
102
-            static function (FormEvent $event) use ($formModifier) {
102
+            static function(FormEvent $event) use ($formModifier) {
103 103
                 $modName = $event->getForm()->getData();
104 104
                 $formModifier($event->getForm()->getParent(), $modName);
105 105
             }
Please login to merge, or discard this patch.
src/system/CategoriesModule/Form/Type/CategoryType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 'mapped' => false,
111 111
                 'required' => false
112 112
             ])
113
-            ->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($translator, $options) {
113
+            ->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($translator, $options) {
114 114
                 // ensure all display name and description exist for all locales
115 115
                 /** @var CategoryEntity $category */
116 116
                 $category = $event->getData();
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
                 $event->setData($category);
136 136
             })
137
-            ->addEventListener(FormEvents::SUBMIT, static function (FormEvent $event) use ($translator, $options) {
137
+            ->addEventListener(FormEvents::SUBMIT, static function(FormEvent $event) use ($translator, $options) {
138 138
                 // ensure all locales have a display name
139 139
                 /** @var CategoryEntity $category */
140 140
                 $category = $event->getData();
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
         $builder->get('name')
156 156
             ->addModelTransformer(new CallbackTransformer(
157 157
                 // remove slash from name before persistence to prevent issues with path
158
-                static function ($string) {
158
+                static function($string) {
159 159
                     return $string;
160 160
                 },
161
-                static function ($string) {
161
+                static function($string) {
162 162
                     return str_replace('/', '&#47;', $string);
163 163
                 }
164 164
             ))
Please login to merge, or discard this patch.
src/system/CategoriesModule/Form/Type/CategoriesType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
         /** @var CategoryRegistryEntity[] $registries */
72 72
         foreach ($registries as $registry) {
73 73
             $baseCategory = $registry->getCategory();
74
-            $queryBuilderClosure = static function (CategoryRepository $repo) use ($baseCategory, $options) {
74
+            $queryBuilderClosure = static function(CategoryRepository $repo) use ($baseCategory, $options) {
75 75
                 return $repo->getChildrenQueryBuilder($baseCategory, $options['direct']);
76 76
             };
77
-            $choiceLabelClosure = static function (CategoryEntity $category) use ($baseCategory, $locale) {
77
+            $choiceLabelClosure = static function(CategoryEntity $category) use ($baseCategory, $locale) {
78 78
                 $indent = str_repeat('--', $category->getLvl() - $baseCategory->getLvl() - 1);
79 79
 
80 80
                 $categoryName = $category['displayName'][$locale] ?? $category['displayName']['en'];
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $resolver->setAllowedTypes('em', [ObjectManager::class, 'null']);
143 143
         $resolver->setAllowedTypes('showRegistryLabels', 'bool');
144 144
 
145
-        $resolver->addAllowedValues('entityCategoryClass', static function ($value) {
145
+        $resolver->addAllowedValues('entityCategoryClass', static function($value) {
146 146
             return is_subclass_of($value, AbstractCategoryAssignment::class);
147 147
         });
148 148
     }
Please login to merge, or discard this patch.
src/system/SettingsModule/Form/Type/MainSettingsType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,15 +57,15 @@  discard block
 block discarded – undo
57 57
     public function buildForm(FormBuilderInterface $builder, array $options)
58 58
     {
59 59
         $spaceReplaceCallbackTransformer = new CallbackTransformer(
60
-            static function ($originalDescription) {
60
+            static function($originalDescription) {
61 61
                 return $originalDescription;
62 62
             },
63
-            static function ($submittedDescription) {
63
+            static function($submittedDescription) {
64 64
                 return mb_ereg_replace(' ', '', $submittedDescription);
65 65
             }
66 66
         );
67 67
         $pageTitleLocalizationTransformer = new CallbackTransformer(
68
-            function ($originalPageTitle) {
68
+            function($originalPageTitle) {
69 69
                 $originalPageTitle = empty($originalPageTitle) ? '%pagetitle%' : $originalPageTitle;
70 70
                 $originalPageTitle = str_replace(
71 71
                     ['%pagetitle%', '%sitename%', '%modulename%'],
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
                 return $originalPageTitle;
77 77
             },
78
-            function ($submittedPageTitle) {
78
+            function($submittedPageTitle) {
79 79
                 $submittedPageTitle = str_replace(
80 80
                     [$this->trans('%pagetitle%'), $this->trans('%sitename%'), $this->trans('%modulename%')],
81 81
                     ['%pagetitle%', '%sitename%', '%modulename%'],
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $builder->create('permasearch', TextType::class, [
138 138
                     'label' => 'List to search for',
139 139
                     'constraints' => new Callback([
140
-                        'callback' => function ($data, ExecutionContextInterface $context) {
140
+                        'callback' => function($data, ExecutionContextInterface $context) {
141 141
                             if (mb_ereg(',$', $data)) {
142 142
                                 $context->addViolation($this->trans('Error! In your permalink settings, strings cannot be terminated with a comma.'));
143 143
                             }
Please login to merge, or discard this patch.