Passed
Push — master ( 120eb3...86ee10 )
by Jan
04:25
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $optionsResolver->setAllowedTypes('search', ['null', 'string']);
114 114
 
115 115
         //Configure search options
116
-        $optionsResolver->setDefault('search_options', function (OptionsResolver $resolver) {
116
+        $optionsResolver->setDefault('search_options', function(OptionsResolver $resolver) {
117 117
             $resolver->setDefaults([
118 118
                                        'name' => true,
119 119
                                        'category' => true,
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $dataTable
150 150
             ->add('picture', TextColumn::class, [
151 151
                 'label' => '',
152
-                'render' => function ($value, Part $context) {
152
+                'render' => function($value, Part $context) {
153 153
                     $preview_attachment = $this->previewGenerator->getTablePreviewAttachment($context);
154 154
                     if (null === $preview_attachment) {
155 155
                         return '';
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             ])
167 167
             ->add('name', TextColumn::class, [
168 168
                 'label' => $this->translator->trans('part.table.name'),
169
-                'render' => function ($value, Part $context) {
169
+                'render' => function($value, Part $context) {
170 170
                     return sprintf(
171 171
                         '<a href="%s">%s</a>',
172 172
                         $this->urlGenerator->infoURL($context),
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             ])
196 196
             ->add('storelocation', TextColumn::class, [
197 197
                 'label' => $this->translator->trans('part.table.storeLocations'),
198
-                'render' => function ($value, Part $context) {
198
+                'render' => function($value, Part $context) {
199 199
                     $tmp = [];
200 200
                     foreach ($context->getPartLots() as $lot) {
201 201
                         //Ignore lots without storelocation
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             ])
215 215
             ->add('amount', TextColumn::class, [
216 216
                 'label' => $this->translator->trans('part.table.amount'),
217
-                'render' => function ($value, Part $context) {
217
+                'render' => function($value, Part $context) {
218 218
                     $amount = $context->getAmountSum();
219 219
 
220 220
                     return $this->amountFormatter->format($amount, $context->getPartUnit());
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             ->add('minamount', TextColumn::class, [
224 224
                 'label' => $this->translator->trans('part.table.minamount'),
225 225
                 'visible' => false,
226
-                'render' => function ($value, Part $context) {
226
+                'render' => function($value, Part $context) {
227 227
                     return $this->amountFormatter->format($value, $context->getPartUnit());
228 228
                 },
229 229
             ])
@@ -287,12 +287,12 @@  discard block
 block discarded – undo
287 287
             ->addOrderBy('name')
288 288
             ->createAdapter(FetchJoinORMAdapter::class, [
289 289
                 'simple_total_query' => true,
290
-                'query' => function (QueryBuilder $builder): void {
290
+                'query' => function(QueryBuilder $builder): void {
291 291
                     $this->getQuery($builder);
292 292
                 },
293 293
                 'entity' => Part::class,
294 294
                 'criteria' => [
295
-                    function (QueryBuilder $builder) use ($options): void {
295
+                    function(QueryBuilder $builder) use ($options): void {
296 296
                         $this->buildCriteria($builder, $options);
297 297
                     },
298 298
                     new SearchCriteriaProvider(),
Please login to merge, or discard this patch.