@@ -43,12 +43,12 @@ |
||
43 | 43 | |
44 | 44 | $resolver->setDefaults([ |
45 | 45 | 'class' => PartLot::class, |
46 | - 'choice_label' => ChoiceList::label($this, function (PartLot $part_lot) { |
|
46 | + 'choice_label' => ChoiceList::label($this, function(PartLot $part_lot) { |
|
47 | 47 | return ($part_lot->getStorageLocation() ? $part_lot->getStorageLocation()->getFullPath() : '') |
48 | - . ' (' . $part_lot->getName() . '): ' . $part_lot->getAmount(); |
|
48 | + . ' ('.$part_lot->getName().'): '.$part_lot->getAmount(); |
|
49 | 49 | }), |
50 | - 'query_builder' => function (Options $options) { |
|
51 | - return function (EntityRepository $er) use ($options) { |
|
50 | + 'query_builder' => function(Options $options) { |
|
51 | + return function(EntityRepository $er) use ($options) { |
|
52 | 52 | return $er->createQueryBuilder('l') |
53 | 53 | ->where('l.part = :part') |
54 | 54 | ->setParameter('part', $options['part']); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | $resolver->setDefaults([ |
45 | 45 | 'choices' => $this->available_themes, |
46 | - 'choice_label' => static function ($entity, $key, $value) { |
|
46 | + 'choice_label' => static function($entity, $key, $value) { |
|
47 | 47 | return $value; |
48 | 48 | }, |
49 | 49 | 'choice_translation_domain' => false, |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $resolver->setDefaults([ |
43 | 43 | 'filter' => 'picture', |
44 | 44 | 'choice_translation_domain' => false, |
45 | - 'choice_attr' => static function (Options $options) { |
|
46 | - return static function ($choice, $key, $value) use ($options) { |
|
45 | + 'choice_attr' => static function(Options $options) { |
|
46 | + return static function($choice, $key, $value) use ($options) { |
|
47 | 47 | /** @var Attachment $choice */ |
48 | 48 | $tmp = ['data-subtext' => $choice->getFilename() ?? 'URL']; |
49 | 49 | |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | }; |
58 | 58 | }, |
59 | 59 | 'choice_label' => 'name', |
60 | - 'choice_loader' => static function (Options $options) { |
|
60 | + 'choice_loader' => static function(Options $options) { |
|
61 | 61 | return new CallbackChoiceLoader( |
62 | - static function () use ($options) { |
|
62 | + static function() use ($options) { |
|
63 | 63 | $entity = $options['entity']; |
64 | 64 | if (!$entity instanceof AttachmentContainingDBElement) { |
65 | 65 | throw new RuntimeException('$entity must have Attachments! (be of type AttachmentContainingDBElement)'); |