Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9933f63

Browse files
Cleanup more @return annotations
1 parent 6374738 commit 9933f63

12 files changed

Lines changed: 29 additions & 29 deletions

DelegatingEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function supports($name)
8686
*
8787
* @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance
8888
*
89-
* @return EngineInterface The engine
89+
* @return EngineInterface
9090
*
9191
* @throws \RuntimeException if no engine able to work with the template is found
9292
*/

EngineInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface EngineInterface
3636
* @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance
3737
* @param array $parameters An array of parameters to pass to the template
3838
*
39-
* @return string The evaluated template as a string
39+
* @return string
4040
*
4141
* @throws \RuntimeException if the template cannot be rendered
4242
*/
@@ -47,7 +47,7 @@ public function render($name, array $parameters = []);
4747
*
4848
* @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance
4949
*
50-
* @return bool true if the template exists, false otherwise
50+
* @return bool
5151
*
5252
* @throws \RuntimeException if the engine cannot handle the template name
5353
*/
@@ -58,7 +58,7 @@ public function exists($name);
5858
*
5959
* @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance
6060
*
61-
* @return bool true if this class supports the given template, false otherwise
61+
* @return bool
6262
*/
6363
public function supports($name);
6464
}

Helper/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function setCharset(string $charset)
3434
/**
3535
* Gets the default charset.
3636
*
37-
* @return string The default charset
37+
* @return string
3838
*/
3939
public function getCharset()
4040
{

Helper/HelperInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface HelperInterface
2121
/**
2222
* Returns the canonical name of this helper.
2323
*
24-
* @return string The canonical name
24+
* @return string
2525
*/
2626
public function getName();
2727

@@ -33,7 +33,7 @@ public function setCharset(string $charset);
3333
/**
3434
* Gets the default charset.
3535
*
36-
* @return string The default charset
36+
* @return string
3737
*/
3838
public function getCharset();
3939
}

Helper/SlotsHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function has(string $name)
7373
*
7474
* @param bool|string $default The default slot content
7575
*
76-
* @return string The slot content
76+
* @return string
7777
*/
7878
public function get(string $name, $default = false)
7979
{
@@ -115,7 +115,7 @@ public function output(string $name, $default = false)
115115
/**
116116
* Returns the canonical name of this helper.
117117
*
118-
* @return string The canonical name
118+
* @return string
119119
*/
120120
public function getName()
121121
{

Loader/FilesystemLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function isFresh(TemplateReferenceInterface $template, int $time)
8787
/**
8888
* Returns true if the file is an existing absolute path.
8989
*
90-
* @return bool true if the path exists and is absolute, false otherwise
90+
* @return bool
9191
*/
9292
protected static function isAbsolutePath(string $file)
9393
{

PhpEngine.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function supports($name)
118118
/**
119119
* Evaluates a template.
120120
*
121-
* @return string|false The evaluated template, or false if the engine is unable to render the template
121+
* @return string|false
122122
*
123123
* @throws \InvalidArgumentException
124124
*/
@@ -167,7 +167,7 @@ protected function evaluate(Storage $template, array $parameters = [])
167167
*
168168
* @param string $name The helper name
169169
*
170-
* @return HelperInterface The helper value
170+
* @return HelperInterface
171171
*
172172
* @throws \InvalidArgumentException if the helper is not defined
173173
*/
@@ -182,7 +182,7 @@ public function offsetGet($name)
182182
*
183183
* @param string $name The helper name
184184
*
185-
* @return bool true if the helper is defined, false otherwise
185+
* @return bool
186186
*/
187187
#[\ReturnTypeWillChange]
188188
public function offsetExists($name)
@@ -255,7 +255,7 @@ public function set(HelperInterface $helper, string $alias = null)
255255
/**
256256
* Returns true if the helper if defined.
257257
*
258-
* @return bool true if the helper is defined, false otherwise
258+
* @return bool
259259
*/
260260
public function has(string $name)
261261
{
@@ -291,7 +291,7 @@ public function extend(string $template)
291291
*
292292
* @param mixed $value A variable to escape
293293
*
294-
* @return mixed The escaped value
294+
* @return mixed
295295
*/
296296
public function escape($value, string $context = 'html')
297297
{
@@ -330,7 +330,7 @@ public function setCharset(string $charset)
330330
/**
331331
* Gets the current charset.
332332
*
333-
* @return string The current charset
333+
* @return string
334334
*/
335335
public function getCharset()
336336
{
@@ -349,7 +349,7 @@ public function setEscaper(string $context, callable $escaper)
349349
/**
350350
* Gets an escaper for a given context.
351351
*
352-
* @return callable A PHP callable
352+
* @return callable
353353
*
354354
* @throws \InvalidArgumentException
355355
*/
@@ -408,7 +408,7 @@ protected function initializeEscapers()
408408
*
409409
* @param string $value The value to escape
410410
*
411-
* @return string the escaped value
411+
* @return string
412412
*/
413413
function ($value) use ($flags) {
414414
// Numbers and Boolean values get turned into strings which can cause problems
@@ -423,7 +423,7 @@ function ($value) use ($flags) {
423423
*
424424
* @param string $value The value to escape
425425
*
426-
* @return string the escaped value
426+
* @return string
427427
*/
428428
function ($value) {
429429
if ('UTF-8' != $this->getCharset()) {

Storage/FileStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FileStorage extends Storage
2121
/**
2222
* Returns the content of the template.
2323
*
24-
* @return string The template content
24+
* @return string
2525
*/
2626
public function getContent()
2727
{

Storage/Storage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(string $template)
3131
/**
3232
* Returns the object string representation.
3333
*
34-
* @return string The template name
34+
* @return string
3535
*/
3636
public function __toString()
3737
{
@@ -41,7 +41,7 @@ public function __toString()
4141
/**
4242
* Returns the content of the template.
4343
*
44-
* @return string The template content
44+
* @return string
4545
*/
4646
abstract public function getContent();
4747
}

Storage/StringStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class StringStorage extends Storage
2121
/**
2222
* Returns the content of the template.
2323
*
24-
* @return string The template content
24+
* @return string
2525
*/
2626
public function getContent()
2727
{

0 commit comments

Comments
 (0)