@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | $tree = array( |
351 | 351 | array('text' => $use_db_root_name ? htmlspecialchars($this->getName()) : $root_name, |
352 | 352 | 'href' => $page.'?'.$parameter.'='.$this->getID(), |
353 | - 'nodes' => $nodes, ), |
|
353 | + 'nodes' => $nodes,), |
|
354 | 354 | ); |
355 | 355 | } else { //Dont show root node |
356 | 356 | $tree = $nodes; |
@@ -389,12 +389,12 @@ discard block |
||
389 | 389 | |
390 | 390 | if ($show_root) { |
391 | 391 | $breadcrumb[] = array('label' => $root_name, |
392 | - 'disabled' => true, ); |
|
392 | + 'disabled' => true,); |
|
393 | 393 | } |
394 | 394 | |
395 | 395 | if (!$this->current_user->canDo(static::getPermissionName(), StructuralPermission::READ)) { |
396 | 396 | return array('label' => '???', |
397 | - 'disabled' => true, ); |
|
397 | + 'disabled' => true,); |
|
398 | 398 | } |
399 | 399 | |
400 | 400 | $tmp = array(); |
@@ -58,9 +58,9 @@ discard block |
||
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 |
||
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']); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function categoryTree(TreeBuilder $builder, Category $category = null) |
60 | 60 | { |
61 | - if($category != null) { |
|
61 | + if ($category != null) { |
|
62 | 62 | $tree[] = $builder->elementToTreeNode($category); |
63 | 63 | } else { |
64 | 64 | $tree = $builder->typeToTree(Category::class); |
@@ -64,7 +64,7 @@ |
||
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), ]) |