mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
Refacotring Form/Type/ChoicesListType.php : indenation
This commit is contained in:
parent
98088e5f7a
commit
46bba56776
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user