@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Dwoo_Adapters_ZendFramework_PluginProxy's constructor. |
48 | 48 | * |
49 | - * @param Zend_View_Interface $view |
|
49 | + * @param Dwoo_Adapters_ZendFramework_View $view |
|
50 | 50 | */ |
51 | 51 | public function __construct(Zend_View_Interface $view) |
52 | 52 | { |
@@ -83,7 +83,6 @@ discard block |
||
83 | 83 | * - type class name or object for engine, dataProvider or compiler |
84 | 84 | * - any set* method (compileDir for setCompileDir ...) |
85 | 85 | * |
86 | - * @param array $options |
|
87 | 86 | * |
88 | 87 | * @return Dwoo_Adapters_ZendFramework_View |
89 | 88 | */ |
@@ -437,7 +436,6 @@ discard block |
||
437 | 436 | * Processes a view script and outputs it. Output is then |
438 | 437 | * passed through filters. |
439 | 438 | * |
440 | - * @param string $name The script script name to process |
|
441 | 439 | * |
442 | 440 | * @return string The script output |
443 | 441 | */ |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * Returns the left and right template delimiters. |
279 | 279 | * |
280 | - * @return array containing the left and the right delimiters |
|
280 | + * @return string[] containing the left and the right delimiters |
|
281 | 281 | */ |
282 | 282 | public function getDelimiters() |
283 | 283 | { |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | * Adds a preprocessor to the compiler, it will be called |
363 | 363 | * before the template is compiled. |
364 | 364 | * |
365 | - * @param mixed $callback either a valid callback to the preprocessor or a simple name if the autoload is set to |
|
365 | + * @param string $callback either a valid callback to the preprocessor or a simple name if the autoload is set to |
|
366 | 366 | * true |
367 | 367 | * @param bool $autoload if set to true, the preprocessor is auto-loaded from one of the plugin directories, else |
368 | 368 | * you must provide a valid callback |
@@ -1321,7 +1321,7 @@ discard block |
||
1321 | 1321 | * |
1322 | 1322 | * @param array $params parameter array |
1323 | 1323 | * |
1324 | - * @return array tokens |
|
1324 | + * @return Compiler tokens |
|
1325 | 1325 | */ |
1326 | 1326 | public function getParamTokens(array $params) |
1327 | 1327 | { |
@@ -478,8 +478,7 @@ discard block |
||
478 | 478 | if (!class_exists($class) && !function_exists($class)) { |
479 | 479 | try { |
480 | 480 | $this->getDwoo()->getLoader()->loadPlugin($name); |
481 | - } |
|
482 | - catch (Exception $e) { |
|
481 | + } catch (Exception $e) { |
|
483 | 482 | throw new Exception('Processor ' . $name . ' could not be found in your plugin directories, please ensure it is in a file named ' . $name . '.php in the plugin directory'); |
484 | 483 | } |
485 | 484 | } |
@@ -1633,8 +1632,7 @@ discard block |
||
1633 | 1632 | // load if plugin |
1634 | 1633 | try { |
1635 | 1634 | $this->getPluginType('if'); |
1636 | - } |
|
1637 | - catch (Exception $e) { |
|
1635 | + } catch (Exception $e) { |
|
1638 | 1636 | throw new CompilationException($this, 'Assignments require the "if" plugin to be accessible'); |
1639 | 1637 | } |
1640 | 1638 | |
@@ -3449,8 +3447,7 @@ discard block |
||
3449 | 3447 | if ($pluginType === - 1) { |
3450 | 3448 | try { |
3451 | 3449 | $this->getDwoo()->getLoader()->loadPlugin('Plugin' . Core::toCamelCase($name)); |
3452 | - } |
|
3453 | - catch (Exception $e) { |
|
3450 | + } catch (Exception $e) { |
|
3454 | 3451 | if (isset($phpFunc)) { |
3455 | 3452 | $pluginType = Core::NATIVE_PLUGIN; |
3456 | 3453 | } elseif (is_object($this->getDwoo()->getPluginProxy()) && $this->getDwoo()->getPluginProxy()->handles($name)) { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /** |
58 | 58 | * Loader constructor. |
59 | 59 | * |
60 | - * @param $cacheDir |
|
60 | + * @param string $cacheDir |
|
61 | 61 | */ |
62 | 62 | public function __construct($cacheDir) |
63 | 63 | { |
@@ -85,8 +85,8 @@ |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param $output |
88 | - * @param $dynamicId |
|
89 | - * @param $compiledFile |
|
88 | + * @param string $dynamicId |
|
89 | + * @param string $compiledFile |
|
90 | 90 | * |
91 | 91 | * @return mixed|string |
92 | 92 | */ |
@@ -64,8 +64,7 @@ |
||
64 | 64 | $compiler->findBlock('dynamic'); |
65 | 65 | |
66 | 66 | return $content; |
67 | - } |
|
68 | - catch (CompilationException $e) { |
|
67 | + } catch (CompilationException $e) { |
|
69 | 68 | } |
70 | 69 | $output = Compiler::PHP_OPEN . 'if($doCache) {' . "\n\t" . 'echo \'<dwoo:dynamic_\'.$dynamicId.\'>' . str_replace('\'', '\\\'', $content) . '</dwoo:dynamic_\'.$dynamicId.\'>\';' . "\n} else {\n\t"; |
71 | 70 | if (substr($content, 0, strlen(Compiler::PHP_OPEN)) == Compiler::PHP_OPEN) { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param string $append |
60 | 60 | * @param string $content |
61 | 61 | * |
62 | - * @return mixed|string |
|
62 | + * @return string |
|
63 | 63 | */ |
64 | 64 | public static function postProcessing(Compiler $compiler, array $params, $prepend, $append, $content) |
65 | 65 | { |
@@ -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 | { |
@@ -312,7 +312,7 @@ |
||
312 | 312 | |
313 | 313 | /** |
314 | 314 | * @param mixed $_tpl |
315 | - * @param array $data |
|
315 | + * @param Data $data |
|
316 | 316 | * @param null $_compiler |
317 | 317 | * @param bool $_output |
318 | 318 | * |
@@ -95,11 +95,9 @@ |
||
95 | 95 | |
96 | 96 | try { |
97 | 97 | $parent = $compiler->getDwoo()->templateFactory($resource, $identifier, null, null, null, $curTpl); |
98 | - } |
|
99 | - catch (SecurityException $e) { |
|
98 | + } catch (SecurityException $e) { |
|
100 | 99 | throw new CompilationException($compiler, 'Extends : Security restriction : ' . $e->getMessage()); |
101 | - } |
|
102 | - catch (Exception $e) { |
|
100 | + } catch (Exception $e) { |
|
103 | 101 | throw new CompilationException($compiler, 'Extends : ' . $e->getMessage()); |
104 | 102 | } |
105 | 103 |