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