Passed
Push — master ( 99cae8...a7ea63 )
by Jan
03:08
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $dataTable//->add("id", TextColumn::class)
60 60
             ->add('name', TextColumn::class, ['label' => 'name.label',
61
-            'render' => function ($value, Part $context) {
61
+            'render' => function($value, Part $context) {
62 62
                 return $this->urlGenerator->infoHTML($context);
63
-            }, ])
63
+            },])
64 64
             ->add('description', TextColumn::class, ['label' => 'description.label'])
65 65
             ->add('category', TextColumn::class, ['field' => 'category.name', 'label' => 'category.label'])
66 66
             ->add('instock', TextColumn::class, ['label' => 'instock.label_short'])
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             ->createAdapter(ORMAdapter::class, [
71 71
                 'entity' => Part::class,
72 72
                 'criteria' => [
73
-                function (QueryBuilder $builder) use ($options) {
73
+                function(QueryBuilder $builder) use ($options) {
74 74
                     if (isset($options['cid'])) {
75 75
                         $builder->andWhere('part.category = :cid')
76 76
                             ->setParameter('cid', $options['cid']);
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
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                     'disabled' => !$this->security->isGranted('name.edit', $part), ])
65 65
             ->add('description', TextType::class, ['required' => false, 'empty_data' => '',
66 66
                 'label' => 'description.label', 'help' => 'bbcode.hint', 'attr' => ['placeholder' => 'part.description.placeholder'],
67
-                'disabled' => !$this->security->isGranted('description.edit', $part), 'empty_data' => '' ])
67
+                'disabled' => !$this->security->isGranted('description.edit', $part), 'empty_data' => ''])
68 68
             ->add('instock', IntegerType::class,
69 69
                 ['attr' => ['min' => 0, 'placeholder' => 'part.instock.placeholder'], 'label' => 'instock.label',
70 70
                 'disabled' => !$this->security->isGranted('instock.edit', $part), ])
Please login to merge, or discard this patch.
src/Entity/StructuralDBElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -329,12 +329,12 @@
 block discarded – undo
329 329
 
330 330
         if ($show_root) {
331 331
             $breadcrumb[] = array('label' => $root_name,
332
-                'disabled' => true, );
332
+                'disabled' => true,);
333 333
         }
334 334
 
335 335
         if (!$this->current_user->canDo(static::getPermissionName(), StructuralPermission::READ)) {
336 336
             return array('label' => '???',
337
-                'disabled' => true, );
337
+                'disabled' => true,);
338 338
         }
339 339
 
340 340
         $tmp = array();
Please login to merge, or discard this patch.