Completed
Push — master ( 0b019b...a04461 )
by Iman
02:16
created
src/Utils/CacheTag.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Set token in Memory for fast access within the same request.
46 46
      * @param $tag string
47
-     * @param $token string
47
+     * @param string $token string
48 48
      * @return string
49 49
      */
50 50
     private function setTokenInMemory($tag, $token)
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Save token to disk for later requests
57 57
      * @param $tag string
58
-     * @param $token string
58
+     * @param string $token string
59 59
      */
60 60
     private function persistToken($tag, $token)
61 61
     {
Please login to merge, or discard this patch.
src/Utils/WidgetRenderer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     }
110 110
 
111 111
     /**
112
-     * @param $widget object
112
+     * @param string $widget object
113 113
      * @return \Illuminate\Foundation\Application|mixed
114 114
      */
115 115
     private function _makeWidgetObj($widget)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     private function _generateHtml($widget, ...$args)
52 52
     {
53 53
         // Everything inside this function is executed only when the cache is not available.
54
-        $expensivePhpCode = function () use ($widget, $args) {
54
+        $expensivePhpCode = function() use ($widget, $args) {
55 55
             $this->makeDataForView($widget, $args);
56 56
             // render the template with the resulting data.
57 57
             return $this->renderTemplate($widget);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function _makeWidgetObj($widget)
116 116
     {
117
-        $widget = app()->getNamespace().'Widgets\\'.$widget;
117
+        $widget = app()->getNamespace() . 'Widgets\\' . $widget;
118 118
         return app($widget);
119 119
     }
120 120
 }
Please login to merge, or discard this patch.
src/WidgetGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 
111 111
     /**
112 112
      * Creates the widget class
113
-     * @return bool
113
+     * @return false|null
114 114
      */
115 115
     private function _makeWidgetClass()
116 116
     {
Please login to merge, or discard this patch.
src/Utils/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     private function getTagTokens(array $cacheTags)
86 86
     {
87
-        return array_map(function ($tag) {
87
+        return array_map(function($tag) {
88 88
             return $this->_cacheTag->getTagToken($tag);
89 89
         }, $cacheTags);
90 90
     }
Please login to merge, or discard this patch.