Skip to content

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 17, 2013
1 parent e660bc9 commit c1051d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ResizeFormListener implements EventSubscriberInterface
protected $allowDelete;

/**
* @var bool
* @var Boolean
*/
private $deleteEmpty;

Expand Down Expand Up @@ -132,7 +132,6 @@ public function preSubmit(FormEvent $event)
public function onSubmit(FormEvent $event)
{
$form = $event->getForm();
$previousData = $event->getForm()->getData();
$data = $event->getData();

// At this point, $data is an array or an array-like object that already contains the
Expand All @@ -148,6 +147,7 @@ public function onSubmit(FormEvent $event)
}

if ($this->deleteEmpty) {
$previousData = $event->getForm()->getData();
foreach ($form as $name => $child) {
$isNew = !isset($previousData[$name]);

Expand Down

0 comments on commit c1051d5

Please sign in to comment.