Completed
Pull Request — master (#351)
by Leny
06:37
created
Bundle/CoreBundle/Form/WidgetType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Form/WidgetOptionsContainer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     }
38 38
 
39 39
     /**
40
-     * @param array $options
41 40
      */
42 41
     public function add($key, $value)
43 42
     {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Command/WidgetCssGenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Renderer/WidgetRenderer.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @param Container   $container
28 28
      * @param             $victoireTwigResponsive
29
-     * @param Client      $redis
30 29
      * @param WidgetCache $widgetCache
31 30
      */
32 31
     public function __construct(Container $container, $victoireTwigResponsive, WidgetCache $widgetCache)
@@ -196,7 +195,7 @@  discard block
 block discarded – undo
196 195
      *
197 196
      * @param Widget $widget
198 197
      *
199
-     * @return mixed
198
+     * @return string
200 199
      */
201 200
     public function renderStyle(Widget $widget)
202 201
     {
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Cache/WidgetCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $hash = $this->getHash($widget);
42 42
         if ($hash) {
43 43
             $this->redis->set($hash, $content);
44
-            $this->redis->expire($hash, 7 * 24 * 60 * 1000); // cache for a week
44
+            $this->redis->expire($hash, 7*24*60*1000); // cache for a week
45 45
         }
46 46
     }
47 47
 
Please login to merge, or discard this patch.