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

grabAttribsBeforePropertyToken() private method

It's a shorthand for grabAttribsBeforeToken method.
private grabAttribsBeforePropertyToken ( 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 grabAttribsBeforePropertyToken(Tokens $tokens, $index)
    {
        static $tokenAttribsMap = array(T_VAR => 'var', T_PRIVATE => 'visibility', T_PROTECTED => 'visibility', T_PUBLIC => 'visibility', T_STATIC => 'static');
        return $this->grabAttribsBeforeToken($tokens, $index, $tokenAttribsMap, array('visibility' => array('index' => null, 'token' => new Token(array(T_PUBLIC, 'public'))), 'static' => null));
    }