Completed
Push — 8.x-1.x ( 370b51...8c1944 )
by Janez
02:17
created
src/Plugin/Field/FieldWidget/FileBrowserWidget.php 1 patch
Spacing   +7 added lines, -7 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',
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
       $current[$entity_id] = [
283 283
         '#attributes' => [
284 284
           'class' => ['draggable'],
285
-          'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity_id,
285
+          'data-entity-id' => $entity->getEntityTypeId().':'.$entity_id,
286 286
           'data-row-id' => $delta,
287 287
         ],
288 288
       ];
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             'options' => ['query' => ['details_id' => $details_id]],
355 355
           ],
356 356
           '#attributes' => [
357
-            'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity->id(),
357
+            'data-entity-id' => $entity->getEntityTypeId().':'.$entity->id(),
358 358
             'data-row-id' => $delta,
359 359
           ],
360 360
           '#access' => $edit_button_access,
@@ -367,10 +367,10 @@  discard block
 block discarded – undo
367 367
             'wrapper' => $details_id,
368 368
           ],
369 369
           '#submit' => [[get_class($this), 'removeItemSubmit']],
370
-          '#name' => $field_machine_name . '_remove_' . $entity_id . '_' . md5(json_encode($field_parents)),
370
+          '#name' => $field_machine_name.'_remove_'.$entity_id.'_'.md5(json_encode($field_parents)),
371 371
           '#limit_validation_errors' => [array_merge($field_parents, [$field_machine_name, 'target_id'])],
372 372
           '#attributes' => [
373
-            'data-entity-id' => $entity->getEntityTypeId() . ':' . $entity->id(),
373
+            'data-entity-id' => $entity->getEntityTypeId().':'.$entity->id(),
374 374
             'data-row-id' => $delta,
375 375
           ],
376 376
           '#access' => (bool) $widget_settings['field_widget_remove'],
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     }
429 429
 
430 430
     // Return ourself as the structure doesn't match the default.
431
-    usort($return, function ($a, $b) {
431
+    usort($return, function($a, $b) {
432 432
       return SortArray::sortByKeyInt($a, $b, '_weight');
433 433
     });
434 434
 
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
     // Add validators based on our current settings.
492 492
     $data['validators']['file'] = ['validators' => $this->getFileValidators()];
493 493
     // Provide context for widgets to enhance their configuration.
494
-    $data['widget_context']['upload_location'] = $settings['uri_scheme'] . '://' . $settings['file_directory'];
494
+    $data['widget_context']['upload_location'] = $settings['uri_scheme'].'://'.$settings['file_directory'];
495 495
     $data['widget_context']['upload_validators'] = $this->getFileValidators(TRUE);
496 496
     return $data;
497 497
   }
Please login to merge, or discard this patch.