@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | ], |
170 | 170 | ]); |
171 | 171 | |
172 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event): void { |
|
172 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event): void { |
|
173 | 173 | $form = $event->getForm(); |
174 | 174 | $attachment = $form->getData(); |
175 | 175 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | //Check the secure file checkbox, if file is in securefile location |
188 | 188 | $builder->get('secureFile')->addEventListener( |
189 | 189 | FormEvents::PRE_SET_DATA, |
190 | - static function (FormEvent $event): void { |
|
190 | + static function(FormEvent $event): void { |
|
191 | 191 | $attachment = $event->getForm()->getParent()->getData(); |
192 | 192 | if ($attachment instanceof Attachment) { |
193 | 193 | $event->setData($attachment->isSecure()); |
@@ -173,7 +173,7 @@ |
||
173 | 173 | ->add('theme', ChoiceType::class, [ |
174 | 174 | 'required' => false, |
175 | 175 | 'choices' => User::AVAILABLE_THEMES, |
176 | - 'choice_label' => static function ($entity, $key, $value) { |
|
176 | + 'choice_label' => static function($entity, $key, $value) { |
|
177 | 177 | return $value; |
178 | 178 | }, |
179 | 179 | 'attr' => [ |
@@ -87,13 +87,13 @@ |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * Gets the number of parts that are low in stock. |
|
91 | - * |
|
92 | - * That is, it's total amount is smaller than the minimal amount. |
|
93 | - * |
|
94 | - * @throws \Doctrine\ORM\NoResultException |
|
95 | - * @throws \Doctrine\ORM\NonUniqueResultException |
|
96 | - */ |
|
90 | + * Gets the number of parts that are low in stock. |
|
91 | + * |
|
92 | + * That is, it's total amount is smaller than the minimal amount. |
|
93 | + * |
|
94 | + * @throws \Doctrine\ORM\NoResultException |
|
95 | + * @throws \Doctrine\ORM\NonUniqueResultException |
|
96 | + */ |
|
97 | 97 | public function getPartCountWithLowStock(): int |
98 | 98 | { |
99 | 99 | /* Query to get total amount for every part. |