Completed
Push — 8.x-1.x ( b8bbd8...65369b )
by Janez
02:56
created
src/Plugin/Field/FieldWidget/FileBrowserWidget.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     $delta = 0;
214 214
 
215
-    $order_class = $field_machine_name . '-delta-order';
215
+    $order_class = $field_machine_name.'-delta-order';
216 216
 
217 217
     $current = [
218 218
       '#type' => 'table',
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
       $current[$entity_id] = [
290 290
         '#attributes' => [
291 291
           'class' => ['draggable'],
292
-          'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity_id,
292
+          'data-entity-id' => $entity->getEntityTypeId().':'.$entity_id,
293 293
         ],
294 294
         'display' => $display,
295 295
         'filename' => ['#markup' => $entity->label()],
@@ -346,10 +346,10 @@  discard block
 block discarded – undo
346 346
             'wrapper' => $details_id,
347 347
           ],
348 348
           '#submit' => [[get_class($this), 'removeItemSubmit']],
349
-          '#name' => $field_machine_name . '_remove_' . $entity_id,
349
+          '#name' => $field_machine_name.'_remove_'.$entity_id,
350 350
           '#limit_validation_errors' => [array_merge($field_parents, [$field_machine_name, 'target_id'])],
351 351
           '#attributes' => [
352
-              'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity_id,
352
+              'data-entity-id' => $entity->getEntityTypeId().':'.$entity_id,
353 353
               'data-row-id' => $weight
354 354
           ],
355 355
           '#access' => (bool) $widget_settings['field_widget_remove'],
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
     }
406 406
 
407 407
     // Return ourself as the structure doesn't match the default.
408
-    usort($return, function ($a, $b) {
408
+    usort($return, function($a, $b) {
409 409
       return SortArray::sortByKeyInt($a, $b, '_weight');
410 410
     });
411 411
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
     $data['validators']['file'] = ['validators' => $this->getFileValidators()];
466 466
     // Provide context for widgets to enhance their configuration. Currently
467 467
     // we only know that "upload_location" is used.
468
-    $data['widget_context']['upload_location'] = $settings['uri_scheme'] . '://' . $settings['file_directory'];
468
+    $data['widget_context']['upload_location'] = $settings['uri_scheme'].'://'.$settings['file_directory'];
469 469
     return $data;
470 470
   }
471 471
 
Please login to merge, or discard this patch.