Completed
Push — 8.x-1.x ( 09a174...2d9790 )
by Janez
03:18
created
src/Plugin/Field/FieldWidget/FileBrowserWidget.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
     $delta = 0;
229 229
 
230
-    $order_class = $field_machine_name . '-delta-order';
230
+    $order_class = $field_machine_name.'-delta-order';
231 231
 
232 232
     $current = [
233 233
       '#type' => 'table',
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
             'wrapper' => $details_id,
362 362
           ],
363 363
           '#submit' => [[get_class($this), 'removeItemSubmit']],
364
-          '#name' => $field_machine_name . '_remove_' . $entity_id,
364
+          '#name' => $field_machine_name.'_remove_'.$entity_id,
365 365
           '#limit_validation_errors' => [],
366 366
           '#attributes' => ['data-entity-id' => $entity_id],
367 367
           '#access' => (bool) $widget_settings['field_widget_remove'],
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     }
417 417
 
418 418
     // Return ourself as the structure doesn't match the default.
419
-    usort($return, function ($a, $b) {
419
+    usort($return, function($a, $b) {
420 420
       return SortArray::sortByKeyInt($a, $b, '_weight');
421 421
     });
422 422
 
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
     $data['validators']['file'] = ['validators' => $this->getFileValidators()];
477 477
     // Provide context for widgets to enhance their configuration. Currently
478 478
     // we only know that "upload_location" is used.
479
-    $data['widget_context']['upload_location'] = $settings['uri_scheme'] . '://' . $settings['file_directory'];
479
+    $data['widget_context']['upload_location'] = $settings['uri_scheme'].'://'.$settings['file_directory'];
480 480
     return $data;
481 481
   }
482 482
 
Please login to merge, or discard this patch.