@@ -81,7 +81,7 @@ |
||
81 | 81 | ]; |
82 | 82 | |
83 | 83 | if ($zone->getType() === ZoneInterface::TYPE_ZONE) { |
84 | - $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone){ |
|
84 | + $entryOptions['entry_options']['choice_filter'] = function (ZoneInterface $subZone) use ($zone){ |
|
85 | 85 | return $zone->getId() !== $subZone->getId(); |
86 | 86 | }; |
87 | 87 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | ]; |
82 | 82 | |
83 | 83 | if ($zone->getType() === ZoneInterface::TYPE_ZONE) { |
84 | - $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone){ |
|
84 | + $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone) { |
|
85 | 85 | return $zone->getId() !== $subZone->getId(); |
86 | 86 | }; |
87 | 87 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ->setDefaults([ |
56 | 56 | 'choice_filter' => null, |
57 | 57 | 'choices' => function (Options $options) { |
58 | - $zones = $this->zoneRepository->findAll(); |
|
58 | + $zones = $this->zoneRepository->findAll(); |
|
59 | 59 | if ($options['choice_filter']) { |
60 | 60 | $zones = array_filter($zones, $options['choice_filter']); |
61 | 61 | } |