@@ -118,11 +118,11 @@ discard block |
||
118 | 118 | public function beginWidget($name, array $options = []) |
119 | 119 | { |
120 | 120 | if (!class_exists($name)) { |
121 | - throw new Exception('Widget `' . $name . '` not found.'); |
|
121 | + throw new Exception('Widget `'.$name.'` not found.'); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | if (!empty($GLOBALS['widgetStack'][$name])) { |
125 | - throw new Exception('This widget `' . $name . '` already started!'); |
|
125 | + throw new Exception('This widget `'.$name.'` already started!'); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | $GLOBALS['widgetStack'][$name] = new $name($options); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | if (empty($GLOBALS['widgetStack'][$name]) && !class_exists($name)) { |
163 | - throw new Exception('Widget `' . $name . '` not started.'); |
|
163 | + throw new Exception('Widget `'.$name.'` not started.'); |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | /** @var \Micro\mvc\Widget $widget widget */ |