Completed
Pull Request — master (#357)
by Paul
08:47 queued 02:41
created
Bundle/WidgetBundle/Cache/WidgetCache.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         );
87 87
     }
88 88
 
89
+    /**
90
+     * @param Widget $widget
91
+     */
89 92
     private function generateHash($widget)
90 93
     {
91 94
         return sprintf('%s-%s-%s-%s',
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Predis\Client;
6 6
 use Symfony\Component\Security\Core\Authorization\AuthorizationChecker;
7
-use Symfony\Component\Security\Core\SecurityContext;
8 7
 use Victoire\Bundle\WidgetBundle\Entity\Widget;
9 8
 use Victoire\Bundle\WidgetBundle\Entity\WidgetSlotInterface;
10 9
 
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Helper/WidgetHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Bundle/CoreBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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([])
Please login to merge, or discard this patch.