src/Reflection/ReflectionClass.php
private function arrayWhitespace($loc): ?string
    {
        $tokens = $this->getTokenStream();
        $type   = $tokens->type($loc);
        switch ($type) {
            case T_DOUBLE_ARROW:
                return ' => ';
            case ',':
                return ', ';
            default:
                return $tokens->value($loc);
        }
    }
private function arrayWhitespace($loc): ?string
    {
        $tokens = $this->getTokenStream();
        $type   = $tokens->type($loc);
        switch ($type) {
            case T_DOUBLE_ARROW:
                return ' => ';
            case ',':
                return ', ';
            default:
                return $tokens->value($loc);
        }
    }
private function arrayWhitespace ( $ loc ) : ? string { $ tokens = $ this -> getTokenStream ( ) ; $ type = $ tokens -> type ( $ loc ) ; switch ( $ type ) { case T_DOUBLE_ARROW : return ' => ' ; case ',' : return ', ' ; default : return $ tokens -> value ( $ loc ) ; } }
Returns tokens found within an array definition PSR conforming
whitespace to make the code more readable.

@param int $loc location in the token stream

@return string code with PSR spacing for array notation
Returns tokens found within an array definition PSR conforming whitespace to make the code more readable .