PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer::getDeclareStrictTypeSequence PHP Method

getDeclareStrictTypeSequence() private method

private getDeclareStrictTypeSequence ( ) : PhpCsFixer\Tokenizer\Token[]
return PhpCsFixer\Tokenizer\Token[]
    private function getDeclareStrictTypeSequence()
    {
        static $sequence = null;
        // do not look for open tag, closing semicolon or empty lines;
        // - open tag is tested by isCandidate
        // - semicolon or end tag must be there to be valid PHP
        // - empty tokens and comments are dealt with later
        if (null === $sequence) {
            $sequence = array(new Token(array(T_DECLARE, 'declare')), new Token('('), new Token(array(T_STRING, 'strict_types')), new Token('='), new Token(array(T_LNUMBER, '1')), new Token(')'));
        }
        return $sequence;
    }