mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-02 13:37:41 +00:00
Add @return void on last public methods
This commit is contained in:
@@ -23,6 +23,9 @@ abstract class CallExpression extends AbstractExpression
|
||||
$this->compileCallable($compiler);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function compileCallable(Compiler $compiler)
|
||||
{
|
||||
$twigCallable = $this->getAttribute('twig_callable');
|
||||
|
||||
@@ -57,6 +57,9 @@ final class ModuleNode extends Node
|
||||
$this->setSourceContext($source);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function setIndex($index)
|
||||
{
|
||||
$this->setAttribute('index', $index);
|
||||
|
||||
@@ -264,6 +264,9 @@ class Parser
|
||||
$this->traits[] = $trait;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function embedTemplate(ModuleNode $template)
|
||||
{
|
||||
$template->setIndex(mt_rand());
|
||||
|
||||
@@ -37,6 +37,9 @@ final class TokenStream
|
||||
return implode("\n", $this->tokens);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function injectTokens(array $tokens)
|
||||
{
|
||||
$this->tokens = array_merge(\array_slice($this->tokens, 0, $this->current), $tokens, \array_slice($this->tokens, $this->current));
|
||||
|
||||
Reference in New Issue
Block a user