Passed
Push — master ( e293a7...a67404 )
by Jan
04:02
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' => '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' => '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' => '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()),
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         $dataTable->add('filesize', TextColumn::class, [
142 142
             'label' => $this->translator->trans('attachment.table.filesize'),
143
-            'render' => function ($value, Attachment $context) {
143
+            'render' => function($value, Attachment $context) {
144 144
                 if ($this->attachmentHelper->isFileExisting($context)) {
145 145
                     return $this->attachmentHelper->getHumanFileSize($context);
146 146
                 }
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 
205 205
         $dataTable->createAdapter(ORMAdapter::class, [
206 206
             'entity' => Attachment::class,
207
-            'query' => function (QueryBuilder $builder) {
207
+            'query' => function(QueryBuilder $builder) {
208 208
                 $this->getQuery($builder);
209 209
             },
210 210
         ]);
Please login to merge, or discard this patch.