Passed
Push — dependabot/composer/symfony/tr... ( 3a4521 )
by
unknown
26:05
created
src/Zikula/CoreBundle/Tests/Twig/Node/SwitchNodeTest.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         echo "case 0";
72 72
     default:
73 73
 }
74
-EOF
74
+eof
75 75
         ];
76 76
 
77 77
         // #2 switch with two cases, second with break
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         break;
99 99
     default:
100 100
 }
101
-EOF
101
+eof
102 102
         ];
103 103
 
104 104
         // #3 switch with two cases (second with break) and default
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     default:
127 127
         echo "default case";
128 128
 }
129
-EOF
129
+eof
130 130
         ];
131 131
 
132 132
         // #4 switch with two cases (first without body, second with break) and default
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     default:
154 154
         echo "default case";
155 155
 }
156
-EOF
156
+eof
157 157
         ];
158 158
 
159 159
         return $tests;
Please login to merge, or discard this patch.
src/Zikula/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/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/Zikula/CoreBundle/Command/AssetsInstallCommand.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
 <info>php %command.full_name% public --symlink --relative</info>
76 76
 
77
-EOT
77
+eot
78 78
             );
79 79
     }
80 80
 
Please login to merge, or discard this patch.
src/system/PrinterTheme/ZikulaPrinterTheme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $text = preg_replace_callback(
46 46
             '/<a [^>]*href\s*=\s*\"?([^>\"]*)\"?[^>]*>(.*?)<\/a.*?>/i',
47
-            function ($matches) {
47
+            function($matches) {
48 48
                 $this->links[] = html_entity_decode($matches[1]);
49 49
                 // return the replaced link
50 50
                 return '<strong><em>' . $matches[2] . '</em></strong> <small>[' . count($this->links) . ']</small>';
Please login to merge, or discard this patch.
Zikula/CoreInstallerBundle/EventListener/InstallUpgradeCheckListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $containsInstall = 'install' === $routeInfo['_route'];
78 78
         $containsUpgrade = 'upgrade' === $routeInfo['_route'];
79 79
         $containsLogin = 'Zikula\\UsersModule\\Controller\\AccessController::loginAction' === $routeInfo['_controller'];
80
-        $containsWdt =  '_wdt' === $routeInfo['_route'];
80
+        $containsWdt = '_wdt' === $routeInfo['_route'];
81 81
         $containsProfiler = false !== mb_strpos($routeInfo['_route'], '_profiler');
82 82
         $containsRouter = 'fos_js_routing_js' === $routeInfo['_route'];
83 83
         $doNotRedirect = $containsProfiler || $containsWdt || $containsRouter || $request->isXmlHttpRequest();
Please login to merge, or discard this patch.
Validator/Constraints/AuthenticateAdminLoginValidator.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,8 @@  discard block
 block discarded – undo
77 77
 
78 78
         $passwordEncoder = $this->encoderFactory->getEncoder(AuthenticationMappingEntity::class);
79 79
 
80
-        if (empty($user) || $user['uid'] <= 1) { // || !$passwordEncoder->isPasswordValid($user['pass'], $object['password'], null)) {
80
+        if (empty($user) || $user['uid'] <= 1) {
81
+// || !$passwordEncoder->isPasswordValid($user['pass'], $object['password'], null)) {
81 82
             $this->context
82 83
                 ->buildViolation($this->trans('Error! Could not login because the user could not be found. Please try again.'))
83 84
                 ->addViolation();
@@ -92,7 +93,8 @@  discard block
 block discarded – undo
92 93
                 // new way
93 94
                 $passwordEncoder->isPasswordValid($user['pass'], $object['password'], null)) {
94 95
                 $validPassword = true;
95
-                if ($passwordEncoder->needsRehash($user['pass'])) { // check to update hash to newer algo
96
+                if ($passwordEncoder->needsRehash($user['pass'])) {
97
+// check to update hash to newer algo
96 98
                     $this->setPassword((int) $user['uid'], $object['password']);
97 99
                 }
98 100
             }
Please login to merge, or discard this patch.
src/system/PermissionsModule/Tests/Api/PermissionApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $this->currentUserApi
68 68
             ->method('get')
69 69
             ->with($this->equalTo('uid'))
70
-            ->willReturnCallback(static function () use ($userId) {
70
+            ->willReturnCallback(static function() use ($userId) {
71 71
                 return $userId ?? Constant::USER_ID_ANONYMOUS;
72 72
             });
73 73
         $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator);
Please login to merge, or discard this patch.
src/system/PermissionsModule/Tests/Api/AbstractPermissionTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $this->userRepo
75 75
             ->method('findByUids')
76 76
             ->with($this->anything())
77
-            ->willReturnCallback(function (array $uids) {
77
+            ->willReturnCallback(function(array $uids) {
78 78
                 $groups = new ArrayCollection();
79 79
                 // getGroups returns [gid => $group, gid => $group, ...]
80 80
                 if (in_array(self::RANDOM_USER_ID, $uids, true)) {
Please login to merge, or discard this patch.