Completed
Push — master ( e42307...ee4d71 )
by Leny
06:46
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/Cache/WidgetCache.php 1 patch
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.
Bundle/CoreBundle/Template/TemplateMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      * @param string $view   The requested template key
34 34
      * @param array  $params The params to give to the template
35 35
      *
36
-     * @return template
36
+     * @return string
37 37
      **/
38 38
     public function render($view, $params)
39 39
     {
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.
Bundle/WidgetBundle/Cache/WidgetCacheClearer.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * WidgetCache constructor.
23 23
      *
24
-     * @param Client $cache
24
+     * @param WidgetCache $cache
25 25
      */
26 26
     public function __construct(WidgetCache $cache)
27 27
     {
@@ -29,7 +29,6 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-     * @param Widget $widget
33 32
      *
34 33
      * @return string
35 34
      */
Please login to merge, or discard this patch.