Passed
Push — master ( 0d215e...5b3533 )
by Jan
05:17 queued 44s
created
src/DataTables/AttachmentDataTable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $dataTable->add('picture', TextColumn::class, [
70 70
             'label' => '',
71
-            'render' => function ($value, Attachment $context) {
71
+            'render' => function($value, Attachment $context) {
72 72
                 if ($context->isPicture()
73 73
                     && !$context->isExternal()
74 74
                     && $this->attachmentHelper->isFileExisting($context)) {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         $dataTable->add('name', TextColumn::class, [
89 89
             'label' => $this->translator->trans('attachment.edit.name'),
90
-            'render' => function ($value, Attachment $context) {
90
+            'render' => function($value, Attachment $context) {
91 91
                 //Link to external source
92 92
                 if ($context->isExternal()) {
93 93
                     return sprintf(
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $dataTable->add('attachment_type', TextColumn::class, [
113 113
             'label' => $this->translator->trans('attachment.table.type'),
114 114
             'field' => 'attachment_type.name',
115
-            'render' => function ($value, Attachment $context) {
115
+            'render' => function($value, Attachment $context) {
116 116
                 return sprintf(
117 117
                     '<a href="%s">%s</a>',
118 118
                     $this->entityURLGenerator->editURL($context->getAttachmentType()),
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $dataTable->add('element', TextColumn::class, [
125 125
             'label' => $this->translator->trans('attachment.table.element'),
126 126
             //'propertyPath' => 'element.name',
127
-            'render' => function ($value, Attachment $context) {
127
+            'render' => function($value, Attachment $context) {
128 128
                 return sprintf(
129 129
                     '<a href="%s">%s</a>',
130 130
                     $this->entityURLGenerator->infoURL($context->getElement()),
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         ]);
139 139
 
140 140
         $dataTable->add('filesize', TextColumn::class, [
141
-            'render' => function ($value, Attachment $context) {
141
+            'render' => function($value, Attachment $context) {
142 142
                 if ($this->attachmentHelper->isFileExisting($context)) {
143 143
                     return $this->attachmentHelper->getHumanFileSize($context);
144 144
                 }
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $dataTable->createAdapter(ORMAdapter::class, [
204 204
             'entity' => Attachment::class,
205
-            'query' => function (QueryBuilder $builder) {
205
+            'query' => function(QueryBuilder $builder) {
206 206
                 $this->getQuery($builder);
207 207
             },
208 208
         ]);
Please login to merge, or discard this patch.