Passed
Push — renovate/symfony ( 7a0d53 )
by
unknown
17:12
created
src/system/UsersBundle/Repository/UserRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
         // the following process should be unnecessary because cascade = all but MySQL 5.7 not working with that (#3726)
56 56
         $qb = $this->_em->createQueryBuilder();
57 57
         $qb->delete(UserAttribute::class, 'a')
58
-           ->where('a.user = :userId')
59
-           ->setParameter('userId', $user->getUid());
58
+            ->where('a.user = :userId')
59
+            ->setParameter('userId', $user->getUid());
60 60
         $query = $qb->getQuery();
61 61
         $query->execute();
62 62
         // end of theoretically unrequired process
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Form/Type/CategoriesType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
         /** @var CategoryRegistry[] $registries */
51 51
         foreach ($registries as $registry) {
52 52
             $baseCategory = $registry->getCategory();
53
-            $queryBuilderClosure = static function (CategoryRepositoryInterface $repo) use ($baseCategory, $options) {
53
+            $queryBuilderClosure = static function(CategoryRepositoryInterface $repo) use ($baseCategory, $options) {
54 54
                 return $repo->getChildrenQueryBuilder($baseCategory, $options['direct']);
55 55
             };
56
-            $choiceLabelClosure = static function (Category $category) use ($baseCategory, $locale) {
56
+            $choiceLabelClosure = static function(Category $category) use ($baseCategory, $locale) {
57 57
                 $indent = str_repeat('--', $category->getLvl() - $baseCategory->getLvl() - 1);
58 58
 
59 59
                 $categoryName = $category['displayName'][$locale] ?? $category['displayName']['en'];
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $resolver->setAllowedTypes('em', [ObjectManager::class, 'null']);
122 122
         $resolver->setAllowedTypes('showRegistryLabels', 'bool');
123 123
 
124
-        $resolver->addAllowedValues('entityCategoryClass', static function ($value) {
124
+        $resolver->addAllowedValues('entityCategoryClass', static function($value) {
125 125
             return is_subclass_of($value, AbstractCategoryAssignment::class);
126 126
         });
127 127
     }
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Form/Type/CategoryType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 'mapped' => false,
108 108
                 'required' => false,
109 109
             ])
110
-            ->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($translator, $options) {
110
+            ->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($translator, $options) {
111 111
                 // ensure all display name and description exist for all locales
112 112
                 /** @var Category $category */
113 113
                 $category = $event->getData();
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
                 $event->setData($category);
133 133
             })
134
-            ->addEventListener(FormEvents::SUBMIT, static function (FormEvent $event) use ($translator, $options) {
134
+            ->addEventListener(FormEvents::SUBMIT, static function(FormEvent $event) use ($translator, $options) {
135 135
                 // ensure all locales have a display name
136 136
                 /** @var Category $category */
137 137
                 $category = $event->getData();
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
         $builder->get('name')
153 153
             ->addModelTransformer(new CallbackTransformer(
154 154
                 // remove slash from name before persistence to prevent issues with path
155
-                static function ($string) {
155
+                static function($string) {
156 156
                     return $string;
157 157
                 },
158
-                static function ($string) {
158
+                static function($string) {
159 159
                     return str_replace('/', '/', $string);
160 160
                 }
161 161
             ))
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Controller/NodeController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,8 @@
 block discarded – undo
79 79
                         $parent = $categoryRepository->find($parentId);
80 80
                         $category->setParent($parent);
81 81
                         $category->setRoot($parent->getRoot());
82
-                    } elseif (empty($parentId) && $request->request->has('after')) { // sibling of top-level child
82
+                    } elseif (empty($parentId) && $request->request->has('after')) {
83
+// sibling of top-level child
83 84
                         /** @var Category $sibling */
84 85
                         $sibling = $categoryRepository->find($request->request->get('after'));
85 86
                         $category->setParent($sibling->getParent());
Please login to merge, or discard this patch.
src/system/CategoriesBundle/Entity/Category.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     /**
213 213
      * @return array|string the category display name(s)
214 214
      */
215
-    public function getDisplayName(string $lang = null): array|string
215
+    public function getDisplayName(string $lang = null): array | string
216 216
     {
217 217
         if (!empty($lang)) {
218 218
             return $this->displayName[$lang] ?? $this->displayName['en'] ?? $this->name;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     /**
232 232
      * @return array|string the category display description
233 233
      */
234
-    public function getDisplayDesc(string $lang = null): array|string
234
+    public function getDisplayDesc(string $lang = null): array | string
235 235
     {
236 236
         if (!empty($lang)) {
237 237
             return $this->displayDesc[$lang] ?? $this->displayDesc['en'] ?? '';
Please login to merge, or discard this patch.
src/system/ThemeBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                             ->info('Index page behavior.')
53 53
                             ->addDefaultsIfNotSet()
54 54
                             ->validate()
55
-                                ->ifTrue(static function ($v) {
55
+                                ->ifTrue(static function($v) {
56 56
                                     $amount = 0;
57 57
                                     $amount += isset($v['template']) ? 1 : 0;
58 58
                                     $amount += isset($v['redirect']['crud']) ? 1 : 0;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                             ->info('Index page behavior.')
122 122
                             ->addDefaultsIfNotSet()
123 123
                             ->validate()
124
-                                ->ifTrue(static function ($v) {
124
+                                ->ifTrue(static function($v) {
125 125
                                     $amount = 0;
126 126
                                     $amount += isset($v['template']) ? 1 : 0;
127 127
                                     $amount += isset($v['redirect']['crud']) ? 1 : 0;
Please login to merge, or discard this patch.
src/system/ThemeBundle/EventSubscriber/CreateThemedResponseSubscriber.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.
src/system/LegalBundle/EventSubscriber/UsersUiSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
             return;
106 106
         }
107 107
 
108
-        $attributeIsEmpty = function ($name) use ($user) {
108
+        $attributeIsEmpty = function($name) use ($user) {
109 109
             if ($user->hasAttribute($name)) {
110 110
                 $v = $user->getAttributeValue($name);
111 111
 
Please login to merge, or discard this patch.
src/system/UsersBundle/Entity/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         return $this->approvedDate;
113 113
     }
114 114
 
115
-    public function setApprovedDate(string|\DateTimeInterface $approvedDate): self
115
+    public function setApprovedDate(string | \DateTimeInterface $approvedDate): self
116 116
     {
117 117
         if ($approvedDate instanceof \DateTimeInterface) {
118 118
             $this->approvedDate = $approvedDate;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         return $this->registrationDate;
151 151
     }
152 152
 
153
-    public function setRegistrationDate(string|\DateTimeInterface $registrationDate): self
153
+    public function setRegistrationDate(string | \DateTimeInterface $registrationDate): self
154 154
     {
155 155
         if ($registrationDate instanceof \DateTimeInterface) {
156 156
             $this->registrationDate = $registrationDate;
Please login to merge, or discard this patch.