Completed
Push — master ( 568367...e274d6 )
by Jan
04:05
created
src/Form/Type/StructuralEntityType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -66,15 +66,15 @@  discard block
 block discarded – undo
66 66
 
67 67
         $resolver->setDefaults(['attr' => ['class' => 'selectpicker', 'data-live-search' => true],
68 68
             'show_fullpath_in_subtext' => true, //When this is enabled, the full path will be shown in subtext
69
-            'subentities_of' => null,   //Only show entities with the given parent class
70
-            'disable_not_selectable' => false,  //Disable entries with not selectable property
71
-            'choice_loader' => function (Options $options) {
72
-                return new CallbackChoiceLoader(function () use ($options) {
69
+            'subentities_of' => null, //Only show entities with the given parent class
70
+            'disable_not_selectable' => false, //Disable entries with not selectable property
71
+            'choice_loader' => function(Options $options) {
72
+                return new CallbackChoiceLoader(function() use ($options) {
73 73
                     return $this->getEntries($options);
74 74
                 });
75
-            }, 'choice_label' => function ($choice, $key, $value) {
75
+            }, 'choice_label' => function($choice, $key, $value) {
76 76
                 return $this->generateChoiceLabels($choice, $key, $value);
77
-            }, 'choice_attr' => function ($choice, $key, $value) {
77
+            }, 'choice_attr' => function($choice, $key, $value) {
78 78
                 return $this->generateChoiceAttr($choice, $key, $value);
79 79
             }
80 80
         ]);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 
111 111
         $tmp = str_repeat('   ', $choice->getLevel()); //Use 3 spaces for intendation
112
-        $tmp .=  htmlspecialchars($choice->getName($parent));
112
+        $tmp .= htmlspecialchars($choice->getName($parent));
113 113
         return $tmp;
114 114
     }
115 115
 
Please login to merge, or discard this patch.
src/Form/PartType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                     'disabled' => !$this->security->isGranted('name.edit', $part), ])
66 66
             ->add('description', TextType::class, ['required' => false, 'empty_data' => '',
67 67
                 'label' => 'description.label', 'help' => 'bbcode.hint', 'attr' => ['placeholder' => 'part.description.placeholder'],
68
-                'disabled' => !$this->security->isGranted('description.edit', $part), 'empty_data' => '' ])
68
+                'disabled' => !$this->security->isGranted('description.edit', $part), 'empty_data' => ''])
69 69
             /*->add('instock', IntegerType::class,
70 70
                 ['attr' => ['min' => 0, 'placeholder' => 'part.instock.placeholder'], 'label' => 'instock.label',
71 71
                 'disabled' => !$this->security->isGranted('instock.edit', $part), ]) */
Please login to merge, or discard this patch.