PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
NodeManipulator
<?php declare (strict_types=1); namespace Rector\NodeManipulator; use PhpParser\Node\Arg; use PhpParser\Node\Expr\FuncCall; use Rector\PhpParser\Node\Value\ValueResolver; final class FuncCallManipulator { /** * @readonly * @var \Rector\PhpParser\Node\Value\ValueResolver */ private $valueResolver; public function __construct(ValueResolver $valueResolver) { $this->valueResolver = $valueResolver; } /** * @param FuncCall[] $compactFuncCalls * @return string[] */ public function extractArgumentsFromCompactFuncCalls(array $compactFuncCalls) : array { $arguments = []; foreach ($compactFuncCalls as $compactFuncCall) { foreach ($compactFuncCall->args as $arg) { if (!$arg instanceof Arg) { continue; } $value = $this->valueResolver->getValue($arg->value); if ($value === null) { continue; } $arguments[] = $value; } } return $arguments; } }
[-] ClassDependencyManipulator.php
[edit]
[-] IfManipulator.php
[edit]
[-] FunctionLikeManipulator.php
[edit]
[-] PropertyFetchAssignManipulator.php
[edit]
[-] ClassConstManipulator.php
[edit]
[+]
..
[-] FuncCallManipulator.php
[edit]
[-] ClassInsertManipulator.php
[edit]
[-] StmtsManipulator.php
[edit]
[-] ClassManipulator.php
[edit]
[-] PropertyManipulator.php
[edit]
[-] ClassMethodPropertyFetchManipulator.php
[edit]
[-] ClassMethodAssignManipulator.php
[edit]
[-] ClassMethodManipulator.php
[edit]
[-] AssignManipulator.php
[edit]
[-] BinaryOpManipulator.php
[edit]