Passed
Push — dependabot/composer/symfony/me... ( ef819e )
by
unknown
07:32
created
src/Zikula/Bundle/FormExtensionBundle/Form/Type/DynamicFieldType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             'placeholder' => 'Select',
79 79
         ]);
80 80
 
81
-        $formModifier = function (FormInterface $form, $formType = null) use ($builder) {
81
+        $formModifier = function(FormInterface $form, $formType = null) use ($builder) {
82 82
             switch ($formType) {
83 83
                 case ChoiceType::class:
84 84
                     $optionsType = ChoiceFormOptionsArrayType::class;
@@ -114,12 +114,12 @@  discard block
 block discarded – undo
114 114
             }
115 115
             $form->add($formOptions->getForm());
116 116
         };
117
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($formModifier) {
117
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($formModifier) {
118 118
             $data = $event->getData();
119 119
             $formType = $data['formType'];
120 120
             $formModifier($event->getForm(), $formType);
121 121
         });
122
-        $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $event) use ($formModifier) {
122
+        $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $event) use ($formModifier) {
123 123
             $formType = $event->getForm()->getData();
124 124
             $formModifier($event->getForm()->getParent(), $formType);
125 125
         });
Please login to merge, or discard this patch.
src/Zikula/Bundle/CoreBundle/Twig/Runtime/CoreRuntime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     {
72 72
         $string = preg_replace_callback(
73 73
             '/(.)@(.)/s',
74
-            static function ($m) {
74
+            static function($m) {
75 75
                 return '&#' . sprintf('%03d', ord($m[1])) . ';@&#' . sprintf('%03d', ord($m[2])) . ';';
76 76
             },
77 77
             $string
Please login to merge, or discard this patch.
src/Zikula/Bundle/CoreBundle/Tests/Bundle/MetaDataTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         }
119 119
     }
120 120
 }
121
-EOF
121
+eof
122 122
         ;
123 123
 
124 124
         return json_decode($json, true);
Please login to merge, or discard this patch.
src/Zikula/Bundle/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/Zikula/Bundle/CoreBundle/Command/TranslationKeyToValueCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 Example running against default messages directory
45 45
 
46 46
   <info>php %command.full_name%</info>
47
-EOF
47
+eof
48 48
             )
49 49
         ;
50 50
     }
Please login to merge, or discard this patch.
src/Zikula/Bundle/CoreBundle/Site/SiteDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         return $this->requestStack->getCurrentRequest()->getLocale();
81 81
     }
82 82
 
83
-    private function getLocalizedField(string $fieldName): string|array
83
+    private function getLocalizedField(string $fieldName): string | array
84 84
     {
85 85
         $locale = $this->getLocale();
86 86
         if (array_key_exists($locale, $this->siteData) && isset($this->siteData[$locale][$fieldName])) {
Please login to merge, or discard this patch.
system/ZAuthBundle/Validator/Constraints/ValidRegistrationVerification.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 string $message = 'The fields are invalid.';
22 22
 
23
-    public function getTargets(): string|array
23
+    public function getTargets(): string | array
24 24
     {
25 25
         return self::CLASS_CONSTRAINT;
26 26
     }
Please login to merge, or discard this patch.
src/system/ZAuthBundle/Validator/Constraints/ValidUserFields.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 string $message = 'The fields are invalid.';
22 22
 
23
-    public function getTargets(): string|array
23
+    public function getTargets(): string | array
24 24
     {
25 25
         return self::CLASS_CONSTRAINT;
26 26
     }
Please login to merge, or discard this patch.
src/system/ThemeBundle/EventListener/CreateThemedResponseListener.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@
 block discarded – undo
57 57
         }
58 58
 
59 59
         $route = $request->attributes->get('_route', '');
60
-        if (str_starts_with($route, 'home')) { // TODO remove hardcoded assumption -> check if controller is a dashboard
60
+        if (str_starts_with($route, 'home')) {
61
+// TODO remove hardcoded assumption -> check if controller is a dashboard
61 62
             return;
62 63
         }
63 64
 
Please login to merge, or discard this patch.