@@ -126,7 +126,9 @@ discard block |
||
| 126 | 126 | public function googleCode($params) |
| 127 | 127 | { |
| 128 | 128 | $id = setting('cms', 'google_code'); |
| 129 | - if (empty($id)) return ''; |
|
| 129 | + if (empty($id)) { |
|
| 130 | + return ''; |
|
| 131 | + } |
|
| 130 | 132 | // if using google tag manager |
| 131 | 133 | if (substr($id, 0, 3) === 'GTM') { |
| 132 | 134 | $head = <<<HEADJS |
@@ -923,7 +925,4 @@ discard block |
||
| 923 | 925 | if (!empty($params['assign'])) { |
| 924 | 926 | $smarty->assign($params['assign'], $output); |
| 925 | 927 | } else { |
| 926 | - return $output; |
|
| 927 | - } |
|
| 928 | - } |
|
| 929 | -} |
|
| 928 | + return $output |
|
| 930 | 929 | \ No newline at end of file |