@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | { |
| 11 | 11 | /** |
| 12 | 12 | * @param LoaderInterface $loader A loader instance. |
| 13 | - * @return MustacheEngine Chainable |
|
| 13 | + * @return AbstractEngine Chainable |
|
| 14 | 14 | */ |
| 15 | 15 | public function setLoader(LoaderInterface $loader); |
| 16 | 16 | |
@@ -28,7 +28,6 @@ discard block |
||
| 28 | 28 | public function render($templateIdent, $context); |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @param string $templateIdent |
|
| 32 | 31 | * @param mixed $context |
| 33 | 32 | * @return string |
| 34 | 33 | */ |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | public function filenameFromIdent($ident) |
| 81 | 81 | { |
| 82 | - $filename = str_replace([ '\\' ], '.', $ident); |
|
| 82 | + $filename = str_replace(['\\'], '.', $ident); |
|
| 83 | 83 | $filename .= '.mustache'; |
| 84 | 84 | |
| 85 | 85 | return $filename; |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | */ |
| 95 | 95 | public function filenameFromIdent($ident) |
| 96 | 96 | { |
| 97 | - $filename = str_replace([ '\\' ], '.', $ident); |
|
| 97 | + $filename = str_replace(['\\'], '.', $ident); |
|
| 98 | 98 | $filename .= '.twig'; |
| 99 | 99 | |
| 100 | 100 | return $filename; |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | */ |
| 95 | 95 | public function filenameFromIdent($ident) |
| 96 | 96 | { |
| 97 | - $filename = str_replace([ '\\' ], '.', $ident); |
|
| 97 | + $filename = str_replace(['\\'], '.', $ident); |
|
| 98 | 98 | $filename .= '.twig'; |
| 99 | 99 | |
| 100 | 100 | return $filename; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param string $engine |
| 47 | 47 | * @throws InvalidArgumentException |
| 48 | - * @return ViewableInterface Chainable |
|
| 48 | + * @return ViewableTrait Chainable |
|
| 49 | 49 | */ |
| 50 | 50 | public function setTemplateEngine($engine) |
| 51 | 51 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @param string $ident |
| 78 | 78 | * @throws InvalidArgumentException |
| 79 | - * @return ViewableInterface Chainable |
|
| 79 | + * @return ViewableTrait Chainable |
|
| 80 | 80 | */ |
| 81 | 81 | public function setTemplateIdent($ident) |
| 82 | 82 | { |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * @param ViewInterface|array $view |
|
| 101 | + * @param ViewInterface $view |
|
| 102 | 102 | * @throws InvalidArgumentException If the view parameter is not an array or a View object. |
| 103 | - * @return ViewableInterface Chainable |
|
| 103 | + * @return ViewableTrait Chainable |
|
| 104 | 104 | */ |
| 105 | 105 | public function setView(ViewInterface $view) |
| 106 | 106 | { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | - * @param string $template The template to parse and render. If null, use the object's default. |
|
| 120 | + * @param string $templateIdent The template to parse and render. If null, use the object's default. |
|
| 121 | 121 | * @return string The rendered template. |
| 122 | 122 | */ |
| 123 | 123 | public function render($templateIdent = null) |
@@ -129,7 +129,6 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * @param string $templateIdent The template ident to load and render. |
|
| 133 | 132 | * @return string The rendered template. |
| 134 | 133 | */ |
| 135 | 134 | public function renderTemplate($templateString = null) |
@@ -141,7 +140,7 @@ discard block |
||
| 141 | 140 | /** |
| 142 | 141 | * Retrieve a ViewableInterface instance for the template's context. |
| 143 | 142 | * |
| 144 | - * @return mixed |
|
| 143 | + * @return ViewableTrait |
|
| 145 | 144 | */ |
| 146 | 145 | public function viewController() |
| 147 | 146 | { |