Completed
Push — master ( 3ead6e...a7d6e5 )
by Iman
02:19
created
src/BaseWidget.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -300,6 +300,10 @@
 block discarded – undo
300 300
         return md5(json_encode($arg, JSON_FORCE_OBJECT) . $this->template . get_called_class());
301 301
     }
302 302
 
303
+    /**
304
+     * @param string $key
305
+     * @param \Closure $phpCode
306
+     */
303 307
     private function cacheResult($key, $phpCode)
304 308
     {
305 309
         $cache = app()->make('cache');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
     private function generateHtml(...$args)
176 176
     {
177 177
         // Everything inside this function is executed only when the cache is not available.
178
-        $expensivePhpCode = function () use ($args) {
178
+        $expensivePhpCode = function() use ($args) {
179 179
             $this->prepareDataForView($args);
180 180
 
181 181
             // render the template with the resulting data.
Please login to merge, or discard this patch.