VisualAppeal/Matomo-PHP-API

A possible bug in _parseUrl()

michael2h4ng opened this issue · 2 comments

The code used to append the parameter date looks like this.

    if ($this->_period != self::PERIOD_RANGE) {
        $params = $params + array(
            'date' => $this->_date,
        );
    } else {
            $params = $params + array(
        'date' => $this->_rangeStart . ',' . $this->_rangeEnd,
        );
    }

However, there are actually 3 posibilities:

Currently, _parseUrl() only considers the first 2 situations. Can we implement the last situation? It's extremely useful when people want to visualize visits data over time.

Thanks.

I opened PR #15 for this issue

Thank you, i was not aware of the third possibility.