@@ -79,7 +79,7 @@ |
||
79 | 79 | ]); |
80 | 80 | |
81 | 81 | //Add pricedetails after we know the data, so we can set the default currency |
82 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
82 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
83 | 83 | /** @var Orderdetail $orderdetail */ |
84 | 84 | $orderdetail = $event->getData(); |
85 | 85 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | throw new \RuntimeException('$context must be a Part object!'); |
61 | 61 | } |
62 | 62 | $tmp = ''; |
63 | - $attachments = $context->getAttachments()->filter(function (Attachment $attachment) { |
|
63 | + $attachments = $context->getAttachments()->filter(function(Attachment $attachment) { |
|
64 | 64 | return $attachment->getShowInTable() && $this->attachmentManager->isFileExisting($attachment); |
65 | 65 | }); |
66 | 66 |
@@ -136,7 +136,7 @@ |
||
136 | 136 | $secure_class_name = str_replace('\\', '_', $class); |
137 | 137 | $key = 'treeview_'.$this->keyGenerator->generateKey().'_'.$secure_class_name; |
138 | 138 | |
139 | - $ret = $this->cache->get($key, function (ItemInterface $item) use ($repo, $parent, $secure_class_name) { |
|
139 | + $ret = $this->cache->get($key, function(ItemInterface $item) use ($repo, $parent, $secure_class_name) { |
|
140 | 140 | // Invalidate when groups, a element with the class or the user changes |
141 | 141 | $item->tag(['groups', 'tree_treeview', $this->keyGenerator->generateKey(), $secure_class_name]); |
142 | 142 |
@@ -166,7 +166,7 @@ |
||
166 | 166 | $secure_class_name = str_replace('\\', '_', $class_name); |
167 | 167 | $key = 'list_'.$this->keyGenerator->generateKey().'_'.$secure_class_name.$parent_id; |
168 | 168 | |
169 | - $ret = $this->cache->get($key, function (ItemInterface $item) use ($class_name, $parent, $secure_class_name) { |
|
169 | + $ret = $this->cache->get($key, function(ItemInterface $item) use ($class_name, $parent, $secure_class_name) { |
|
170 | 170 | // Invalidate when groups, a element with the class or the user changes |
171 | 171 | $item->tag(['groups', 'tree_list', $this->keyGenerator->generateKey(), $secure_class_name]); |
172 | 172 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | public function buildForm(FormBuilderInterface $builder, array $options) |
45 | 45 | { |
46 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
46 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
47 | 47 | $form = $event->getForm(); |
48 | 48 | /** @var User $user */ |
49 | 49 | $user = $event->getData(); |