PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer::grabAttribsBeforeMethodToken PHP Method

grabAttribsBeforeMethodToken() private method

It's a shorthand for grabAttribsBeforeToken method.
private grabAttribsBeforeMethodToken ( Tokens $tokens, integer $index ) : array
$tokens PhpCsFixer\Tokenizer\Tokens Tokens collection
$index integer token index
return array map of grabbed attributes, key is attribute name and value is array of index and clone of Token
    private function grabAttribsBeforeMethodToken(Tokens $tokens, $index)
    {
        static $tokenAttribsMap = array(T_PRIVATE => 'visibility', T_PROTECTED => 'visibility', T_PUBLIC => 'visibility', T_ABSTRACT => 'abstract', T_FINAL => 'final', T_STATIC => 'static');
        return $this->grabAttribsBeforeToken($tokens, $index, $tokenAttribsMap, array('abstract' => null, 'final' => null, 'visibility' => array('index' => null, 'token' => new Token(array(T_PUBLIC, 'public'))), 'static' => null));
    }