src/Tool/ShortArraySyntax.php
public function run(string $file, Node $node): array
    {
        if ($node->flags !== \ast\flags\ARRAY_SYNTAX_LONG) {
            Logger::getInstance()->debug('Ignore flags: '.$node->flags);
            return [];
        }

        return [new Hint(
            self::HINT_TYPE,
            self::HINT_MESSAGE,
            $file,
            $node->lineno,
            self::HINT_LINK
        )];
    }
public function run(string $file, Node $node): array
    {
        if ($node->flags !== \ast\flags\ARRAY_SYNTAX_LONG) {
            Logger::getInstance()->debug('Ignore flags: '.$node->flags);
            return [];
        }

        return [new Hint(
            self::HINT_TYPE,
            self::HINT_MESSAGE,
            $file,
            $node->lineno,
            self::HINT_LINK
        )];
    }
public function run ( string $ file , Node $ node ) : array { if ( $ node -> flags !== \ ast \ flags \ ARRAY_SYNTAX_LONG ) { Logger :: getInstance ( ) -> debug ( 'Ignore flags: ' . $ node -> flags ) ; return [ ] ; } return [ new Hint ( self :: HINT_TYPE , self :: HINT_MESSAGE , $ file , $ node -> lineno , self :: HINT_LINK ) ] ; }
Detect ARRAY_SYNTAX_LONG node.

@param string $file File name to be analyzed.
@param Node   $node AST node to be analyzed.
@return Hint[] List of hints obtained from results.
Detect ARRAY_SYNTAX_LONG node .