src/Pug/Engine/OptionsHandler.php
Avoid using undefined variables such as '$start' which will lead to PHP notices. Open
Open
return [$token[1], $start, $end];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$start' which will lead to PHP notices. Open
Open
if ($this->getNamespaceOffsets($token, $afterNamespace, $start, $end)) {
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$end' which will lead to PHP notices. Open
Open
foreach ($this->filterNamespaceStringTokens($tokens, $afterNamespace, $start, $end) as $token) {
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$afterNamespace' which will lead to PHP notices. Open
Open
foreach ($this->filterNamespaceStringTokens($tokens, $afterNamespace, $start, $end) as $token) {
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$end' which will lead to PHP notices. Open
Open
if ($this->getNamespaceOffsets($token, $afterNamespace, $start, $end)) {
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$afterNamespace' which will lead to PHP notices. Open
Open
if ($this->getNamespaceOffsets($token, $afterNamespace, $start, $end)) {
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$end' which will lead to PHP notices. Open
Open
return [$token[1], $start, $end];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$start' which will lead to PHP notices. Open
Open
foreach ($this->filterNamespaceStringTokens($tokens, $afterNamespace, $start, $end) as $token) {
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Parameter $event
has undeclared type \Phug\Compiler\Event\OutputEvent
Open
Open
$options['on_output'] = function (OutputEvent $event) use ($onOutput, $postRender) {
- Exclude checks
Call to undeclared method \Pug\Engine\OptionsHandler::addOptionNameHandlers
Open
Open
$this->addOptionNameHandlers(function ($name) {
- Exclude checks
Call to method setInput
from undeclared class \Phug\Lexer\Event\LexEvent
Open
Open
$event->setInput(call_user_func($preRender, $event->getInput()));
- Exclude checks
Call to method getOutput
from undeclared class \Phug\Compiler\Event\OutputEvent
Open
Open
$output = $event->getOutput();
- Exclude checks
Call to method setOutput
from undeclared class \Phug\Compiler\Event\OutputEvent
Open
Open
$event->setOutput($output);
- Exclude checks
Parameter $event
has undeclared type \Phug\Lexer\Event\LexEvent
Open
Open
$options['on_lex'] = function (LexEvent $event) use ($onLex, $preRender) {
- Exclude checks
Call to method getInput
from undeclared class \Phug\Lexer\Event\LexEvent
Open
Open
$event->setInput(call_user_func($preRender, $event->getInput()));
- Exclude checks