Completed
Push — master ( c4fe9d...e2b643 )
by Jan
03:51
created
src/Form/Part/PartBaseType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             ->add('description', CKEditorType::class, ['required' => false, 'empty_data' => '',
98 98
                 'label' => 'description.label', 'help' => 'bbcode.hint', 'config_name' => 'description_config',
99 99
                 'attr' => ['placeholder' => 'part.description.placeholder', 'rows' => 2],
100
-                'disabled' => !$this->security->isGranted('description.edit', $part) ])
100
+                'disabled' => !$this->security->isGranted('description.edit', $part)])
101 101
             ->add('minAmount', SIUnitType::class,
102 102
                 ['attr' => ['min' => 0, 'placeholder' => 'part.mininstock.placeholder'], 'label' => 'mininstock.label',
103 103
                     'measurement_unit' => $part->getPartUnit(),
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 'disabled' => !$this->security->isGranted('move', $part), ])
111 111
             ->add('tags', TextType::class, ['required' => false, 'label' => 'part.tags', 'empty_data' => "",
112 112
                 'attr' => ['data-role' => 'tagsinput'],
113
-                'disabled' => !$this->security->isGranted('edit', $part) ]);
113
+                'disabled' => !$this->security->isGranted('edit', $part)]);
114 114
 
115 115
         //Manufacturer section
116 116
         $builder->add('manufacturer', StructuralEntityType::class, ['class' => Manufacturer::class,
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
             'label' => 'part.edit.master_attachment',
173 173
             'class' => PartAttachment::class,
174 174
             'attr' => ['class' => 'selectpicker'],
175
-            'choice_attr' => function ($choice, $key, $value) {
175
+            'choice_attr' => function($choice, $key, $value) {
176 176
                 /** @var Attachment $choice */
177 177
                 return ['data-subtext' => $choice->getFilename() ?? "URL"];
178 178
             },
179 179
             'choice_label' => 'name',
180
-            'query_builder' => function (EntityRepository $er) use ($part) {
180
+            'query_builder' => function(EntityRepository $er) use ($part) {
181 181
                 return $er->createQueryBuilder('u')
182 182
                     ->where('u.element = ?1')
183 183
                     ->andWhere("u.path <> ''")
Please login to merge, or discard this patch.