Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 200
Zeile 66... Zeile 66...
66
        }
66
        }
Zeile 67... Zeile 67...
67
 
67
 
68
        return false;
68
        return false;
Zeile -... Zeile 69...
-
 
69
    }
-
 
70
 
-
 
71
    protected function nodeFirstNamedArgumentIndex(Node\Expr\CallLike|Node\Attribute|Node\Expr\New_ $node): int
-
 
72
    {
-
 
73
        $args = $node instanceof Node\Expr\CallLike ? $node->getRawArgs() : $node->args;
-
 
74
 
-
 
75
        foreach ($args as $i => $arg) {
-
 
76
            if ($arg instanceof Node\Arg && null !== $arg->name) {
-
 
77
                return $i;
-
 
78
            }
-
 
79
        }
-
 
80
 
-
 
81
        return \PHP_INT_MAX;
69
    }
82
    }
70
 
83
 
71
    private function getStringNamedArguments(Node\Expr\CallLike|Node\Attribute $node, string $argumentName = null, bool $isArgumentNamePattern = false): array
84
    private function getStringNamedArguments(Node\Expr\CallLike|Node\Attribute $node, string $argumentName = null, bool $isArgumentNamePattern = false): array
72
    {
85
    {