@@ -129,12 +129,12 @@ discard block |
||
| 129 | 129 | $formRequest = clone $request; |
| 130 | 130 | $formRequest->setMethod('GET'); |
| 131 | 131 | $filter = new PartFilter($this->nodesListBuilder); |
| 132 | - if($filter_changer !== null){ |
|
| 132 | + if ($filter_changer !== null) { |
|
| 133 | 133 | $filter_changer($filter); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | $filterForm = $this->createForm(PartFilterType::class, $filter, ['method' => 'GET']); |
| 137 | - if($form_changer !== null) { |
|
| 137 | + if ($form_changer !== null) { |
|
| 138 | 138 | $form_changer($filterForm); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -164,9 +164,9 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | return $this->showListWithFilter($request, |
| 166 | 166 | 'parts/lists/category_list.html.twig', |
| 167 | - function (PartFilter $filter) use ($category) { |
|
| 167 | + function(PartFilter $filter) use ($category) { |
|
| 168 | 168 | $filter->getCategory()->setOperator('INCLUDING_CHILDREN')->setValue($category); |
| 169 | - }, function (FormInterface $filterForm) { |
|
| 169 | + }, function(FormInterface $filterForm) { |
|
| 170 | 170 | $this->disableFormFieldAfterCreation($filterForm->get('category')->get('value')); |
| 171 | 171 | }, [ |
| 172 | 172 | 'entity' => $category, |
@@ -186,9 +186,9 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | return $this->showListWithFilter($request, |
| 188 | 188 | 'parts/lists/footprint_list.html.twig', |
| 189 | - function (PartFilter $filter) use ($footprint) { |
|
| 189 | + function(PartFilter $filter) use ($footprint) { |
|
| 190 | 190 | $filter->getFootprint()->setOperator('INCLUDING_CHILDREN')->setValue($footprint); |
| 191 | - }, function (FormInterface $filterForm) { |
|
| 191 | + }, function(FormInterface $filterForm) { |
|
| 192 | 192 | $this->disableFormFieldAfterCreation($filterForm->get('footprint')->get('value')); |
| 193 | 193 | }, [ |
| 194 | 194 | 'entity' => $footprint, |
@@ -208,9 +208,9 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | return $this->showListWithFilter($request, |
| 210 | 210 | 'parts/lists/manufacturer_list.html.twig', |
| 211 | - function (PartFilter $filter) use ($manufacturer) { |
|
| 211 | + function(PartFilter $filter) use ($manufacturer) { |
|
| 212 | 212 | $filter->getManufacturer()->setOperator('INCLUDING_CHILDREN')->setValue($manufacturer); |
| 213 | - }, function (FormInterface $filterForm) { |
|
| 213 | + }, function(FormInterface $filterForm) { |
|
| 214 | 214 | $this->disableFormFieldAfterCreation($filterForm->get('manufacturer')->get('value')); |
| 215 | 215 | }, [ |
| 216 | 216 | 'entity' => $manufacturer, |
@@ -230,9 +230,9 @@ discard block |
||
| 230 | 230 | |
| 231 | 231 | return $this->showListWithFilter($request, |
| 232 | 232 | 'parts/lists/store_location_list.html.twig', |
| 233 | - function (PartFilter $filter) use ($storelocation) { |
|
| 233 | + function(PartFilter $filter) use ($storelocation) { |
|
| 234 | 234 | $filter->getStorelocation()->setOperator('INCLUDING_CHILDREN')->setValue($storelocation); |
| 235 | - }, function (FormInterface $filterForm) { |
|
| 235 | + }, function(FormInterface $filterForm) { |
|
| 236 | 236 | $this->disableFormFieldAfterCreation($filterForm->get('storelocation')->get('value')); |
| 237 | 237 | }, [ |
| 238 | 238 | 'entity' => $storelocation, |
@@ -252,9 +252,9 @@ discard block |
||
| 252 | 252 | |
| 253 | 253 | return $this->showListWithFilter($request, |
| 254 | 254 | 'parts/lists/supplier_list.html.twig', |
| 255 | - function (PartFilter $filter) use ($supplier) { |
|
| 255 | + function(PartFilter $filter) use ($supplier) { |
|
| 256 | 256 | $filter->getSupplier()->setOperator('INCLUDING_CHILDREN')->setValue($supplier); |
| 257 | - }, function (FormInterface $filterForm) { |
|
| 257 | + }, function(FormInterface $filterForm) { |
|
| 258 | 258 | $this->disableFormFieldAfterCreation($filterForm->get('supplier')->get('value')); |
| 259 | 259 | }, [ |
| 260 | 260 | 'entity' => $supplier, |
@@ -274,9 +274,9 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | return $this->showListWithFilter($request, |
| 276 | 276 | 'parts/lists/tags_list.html.twig', |
| 277 | - function (PartFilter $filter) use ($tag) { |
|
| 277 | + function(PartFilter $filter) use ($tag) { |
|
| 278 | 278 | $filter->getTags()->setOperator('ANY')->setValue($tag); |
| 279 | - }, function (FormInterface $filterForm) { |
|
| 279 | + }, function(FormInterface $filterForm) { |
|
| 280 | 280 | $this->disableFormFieldAfterCreation($filterForm->get('tags')->get('value')); |
| 281 | 281 | }, [ |
| 282 | 282 | 'tag' => $tag, |
@@ -334,6 +334,6 @@ discard block |
||
| 334 | 334 | */ |
| 335 | 335 | public function showAll(Request $request, DataTableFactory $dataTable) |
| 336 | 336 | { |
| 337 | - return $this->showListWithFilter($request,'parts/lists/all_list.html.twig'); |
|
| 337 | + return $this->showListWithFilter($request, 'parts/lists/all_list.html.twig'); |
|
| 338 | 338 | } |
| 339 | 339 | } |