@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * @param string $input |
31 | 31 | * |
32 | - * @return mixed |
|
32 | + * @return string |
|
33 | 33 | */ |
34 | 34 | public function process($input) |
35 | 35 | { |
@@ -66,11 +66,9 @@ |
||
66 | 66 | |
67 | 67 | try { |
68 | 68 | $include = $this->core->templateFactory($resource, $identifier, $cache_time, $cache_id, $compile_id); |
69 | - } |
|
70 | - catch (SecurityException $e) { |
|
69 | + } catch (SecurityException $e) { |
|
71 | 70 | $this->core->triggerError('Include : Security restriction : ' . $e->getMessage(), E_USER_WARNING); |
72 | - } |
|
73 | - catch (Exception $e) { |
|
71 | + } catch (Exception $e) { |
|
74 | 72 | $this->core->triggerError('Include : ' . $e->getMessage(), E_USER_WARNING); |
75 | 73 | } |
76 | 74 |
@@ -50,8 +50,7 @@ |
||
50 | 50 | if (!class_exists(Core::NAMESPACE_PLUGINS_BLOCKS . 'PluginIf')) { |
51 | 51 | try { |
52 | 52 | $compiler->getDwoo()->getLoader()->loadPlugin('if'); |
53 | - } |
|
54 | - catch (Exception $e) { |
|
53 | + } catch (Exception $e) { |
|
55 | 54 | throw new CompilationException($compiler, 'Tif: the if plugin is required to use Tif'); |
56 | 55 | } |
57 | 56 | } |