Completed
Push — 8.x-1.x ( fbaab6...a3faf0 )
by Janez
02:56
created
modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     $definitions = $this->entityManager->getDefinitions();
66 66
     $entity_types = array_combine(
67 67
       array_keys($definitions),
68
-      array_map(function (EntityTypeInterface $item) { return $item->getLabel(); }, $definitions)
68
+      array_map(function(EntityTypeInterface $item) { return $item->getLabel(); }, $definitions)
69 69
     );
70 70
 
71 71
     $form['entity_type'] = [
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     $bundles = [];
83 83
     if ($entity_type) {
84 84
       $definitions = $this->entityManager->getBundleInfo($entity_type);
85
-      $bundles = array_map(function ($item) { return $item['label']; }, $definitions);
85
+      $bundles = array_map(function($item) { return $item['label']; }, $definitions);
86 86
     }
87 87
 
88 88
     $form['bundle'] = [
Please login to merge, or discard this patch.