@@ -17,12 +17,12 @@ |
||
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 | } |