From 46bba567767a45d3f76071136383a1c3e19e6a8f Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Thu, 22 Oct 2015 15:06:14 +0200 Subject: [PATCH] Refacotring Form/Type/ChoicesListType.php : indenation --- Form/Type/ChoicesListType.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Form/Type/ChoicesListType.php b/Form/Type/ChoicesListType.php index 26ad33bf5..7cd3c4c3d 100644 --- a/Form/Type/ChoicesListType.php +++ b/Form/Type/ChoicesListType.php @@ -39,9 +39,9 @@ class ChoicesListType extends AbstractType if (NULL === $formData['slug']) { $slug = $form['name'][$locales[0]]->getData(); - $slug= strtolower($slug); - $slug= preg_replace('/[^a-zA-Z0-9 -]/','', $slug); // only take alphanumerical characters, but keep the spaces and dashes too... - $slug= str_replace(' ','-', $slug); // replace spaces by dashes + $slug = strtolower($slug); + $slug = preg_replace('/[^a-zA-Z0-9 -]/','', $slug); // only take alphanumerical characters, but keep the spaces and dashes too... + $slug = str_replace(' ','-', $slug); // replace spaces by dashes $data['slug'] = $slug; $event->setData($data);