Méthode | Description | |
---|---|---|
__construct ( |
Create a new EchoDeviseMagic visitor | |
enterNode ( PhpParser\Node $node ) : PhpParser\Node | We need to look for different types of nodes inside of echo nodes only |
Méthode | Description | |
---|---|---|
examineExpression ( $node ) : [type] | Determines what to do with this expression | |
examineFunction ( PhpParser\Node $node ) : PhpParser\Node | Examines the function node for places to put dvsmagic() wrappers | |
isWhiteListedFunction ( [type] $node ) : boolean | we don't want to be passing ###dvsmagic-field-1-attr### to php functions, except for those functions that have been whitelisted. The only one so far is 'e' which is created by Laravel's blade to escape variables | |
traverseIntoEchoStatement ( PhpParser\Node\Stmt\Echo_ $node ) : PhpParser\Node\Stmt\Echo_ | Looks inside of this echo for valid combinations. | |
wrapNodeWithMagicMethods ( PhpParser\Node $node ) : PhpParser\Node | wraps the node inside of the dvsmagic method |
public __construct ( |
||
$DeviseParser |
public enterNode ( PhpParser\Node $node ) : PhpParser\Node | ||
$node | PhpParser\Node | |
Résultat | PhpParser\Node |
protected examineExpression ( $node ) : [type] | ||
Résultat | [type] |
protected examineFunction ( PhpParser\Node $node ) : PhpParser\Node | ||
$node | PhpParser\Node | |
Résultat | PhpParser\Node |
protected isWhiteListedFunction ( [type] $node ) : boolean | ||
$node | [type] | |
Résultat | boolean |
protected traverseIntoEchoStatement ( PhpParser\Node\Stmt\Echo_ $node ) : PhpParser\Node\Stmt\Echo_ | ||
$node | PhpParser\Node\Stmt\Echo_ | |
Résultat | PhpParser\Node\Stmt\Echo_ |
protected wrapNodeWithMagicMethods ( PhpParser\Node $node ) : PhpParser\Node | ||
$node | PhpParser\Node | |
Résultat | PhpParser\Node |