Passed
Push — master ( afa093...62b3b6 )
by Jan
04:43
created
src/DataTables/PartsDataTable.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $dataTable
81 81
             ->add('picture', TextColumn::class, [
82 82
                 'label' => '',
83
-                'render' => function ($value, Part $context) {
83
+                'render' => function($value, Part $context) {
84 84
                     $preview_attachment = $this->previewGenerator->getTablePreviewAttachment($context);
85 85
                     if (null === $preview_attachment) {
86 86
                         return '';
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             ])
98 98
             ->add('name', TextColumn::class, [
99 99
                 'label' => $this->translator->trans('part.table.name'),
100
-                'render' => function ($value, Part $context) {
100
+                'render' => function($value, Part $context) {
101 101
                     return sprintf(
102 102
                         '<a href="%s">%s</a>',
103 103
                         $this->urlGenerator->infoURL($context),
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             ])
127 127
             ->add('storelocation', TextColumn::class, [
128 128
                 'label' => $this->translator->trans('part.table.storeLocations'),
129
-                'render' => function ($value, Part $context) {
129
+                'render' => function($value, Part $context) {
130 130
                     $tmp = [];
131 131
                     foreach ($context->getPartLots() as $lot) {
132 132
                         //Ignore lots without storelocation
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ])
146 146
             ->add('amount', TextColumn::class, [
147 147
                 'label' => $this->translator->trans('part.table.amount'),
148
-                'render' => function ($value, Part $context) {
148
+                'render' => function($value, Part $context) {
149 149
                     $amount = $context->getAmountSum();
150 150
 
151 151
                     return $this->amountFormatter->format($amount, $context->getPartUnit());
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             ->add('minamount', TextColumn::class, [
155 155
                 'label' => $this->translator->trans('part.table.minamount'),
156 156
                 'visible' => false,
157
-                'render' => function ($value, Part $context) {
157
+                'render' => function($value, Part $context) {
158 158
                     return $this->amountFormatter->format($value, $context->getPartUnit());
159 159
                 },
160 160
             ])
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
             ->addOrderBy('name')
219 219
             ->createAdapter(FetchJoinORMAdapter::class, [
220 220
                 'simple_total_query' => true,
221
-                'query' => function (QueryBuilder $builder): void {
221
+                'query' => function(QueryBuilder $builder): void {
222 222
                     $this->getQuery($builder);
223 223
                 },
224 224
                 'entity' => Part::class,
225 225
                 'criteria' => [
226
-                    function (QueryBuilder $builder) use ($options): void {
226
+                    function(QueryBuilder $builder) use ($options): void {
227 227
                         $this->buildCriteria($builder, $options);
228 228
                     },
229 229
                     new SearchCriteriaProvider(),
Please login to merge, or discard this patch.