Completed
Push — master ( e051f1...7eb81a )
by Iman
03:49 queued 01:42
created
src/WidgetGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     }
99 99
 
100 100
     /**
101
-     * @return mixed|string
101
+     * @return string
102 102
      */
103 103
     private function _getViewPath()
104 104
     {
Please login to merge, or discard this patch.
src/Utils/Normalizers/TemplateNormalizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
         // replace slashes with dots
18 18
         $className = str_replace(['\\', '/'], '.', $className);
19 19
 
20
-        if (! property_exists($widget, 'template')) {
21
-            $widget->template = 'Widgets::'.$className.'View';
20
+        if (!property_exists($widget, 'template')) {
21
+            $widget->template = 'Widgets::' . $className . 'View';
22 22
         }
23 23
 
24
-        if (! view()->exists($widget->template)) {
25
-            throw new \InvalidArgumentException("View file [{$className}View] not found by: '".get_class($widget)." '");
24
+        if (!view()->exists($widget->template)) {
25
+            throw new \InvalidArgumentException("View file [{$className}View] not found by: '" . get_class($widget) . " '");
26 26
         }
27 27
     }
28 28
 }
Please login to merge, or discard this patch.