@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'choices' => ['media' => 'media', 'image' => 'image', 'slideshow' => 'slideshow', 'video' => 'video'], |
| 43 | 43 | ]) |
| 44 | 44 | ->add('parent', EntityType::class, ['class' => 'Victoire\Bundle\MediaBundle\Entity\Folder', 'required' => false, |
| 45 | - 'query_builder' => function (\Doctrine\ORM\EntityRepository $er) use ($folder, $type) { |
|
| 45 | + 'query_builder' => function(\Doctrine\ORM\EntityRepository $er) use ($folder, $type) { |
|
| 46 | 46 | $qb = $er->createQueryBuilder('folder'); |
| 47 | 47 | |
| 48 | 48 | if ($folder != null && $folder->getId() != null) { |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | //we use the PRE_SUBMIT event to set the mode option |
| 67 | 67 | $builder->addEventListener( |
| 68 | 68 | FormEvents::PRE_SUBMIT, |
| 69 | - function (FormEvent $event) use ($options) { |
|
| 69 | + function(FormEvent $event) use ($options) { |
|
| 70 | 70 | //we get the raw data for the widget form |
| 71 | 71 | $rawData = $event->getData(); |
| 72 | 72 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | ->getQuery() |
| 59 | 59 | ->getResult(); |
| 60 | 60 | $templates = []; |
| 61 | - $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) { |
|
| 61 | + $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) { |
|
| 62 | 62 | array_push($templates, $template); |
| 63 | 63 | foreach ($template->getInheritors() as $template) { |
| 64 | 64 | if ($template instanceof Template) { |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | if (array_key_exists('cache_timout', $widgetParams)) { |
| 159 | 159 | return $widgetParams['cache_timout']; |
| 160 | 160 | } else { |
| 161 | - return 7 * 24 * 60 * 1000; // one week by default |
|
| 161 | + return 7*24*60*1000; // one week by default |
|
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | ->scalarNode('class')->end() |
| 65 | 65 | ->scalarNode('name')->end() |
| 66 | 66 | ->scalarNode('cache')->defaultTrue()->end() |
| 67 | - ->scalarNode('cache_timeout')->defaultValue(7 * 24 * 60 * 1000)->end() //one week |
|
| 67 | + ->scalarNode('cache_timeout')->defaultValue(7*24*60*1000)->end() //one week |
|
| 68 | 68 | ->end() |
| 69 | 69 | ->end() |
| 70 | 70 | ->defaultValue([]) |