Code Duplication    Length = 17-17 lines in 2 locations

tests/mocks/AnalyticsResponseHomePageMock.php 1 location

@@ 3-19 (lines=17) @@
1
<?php
2
3
class AnalyticsResponseHomePageMock extends Google_Service_AnalyticsReporting_ReportRow
4
{
5
6
    public $response;
7
8
    public function getDimensions()
9
    {
10
        return [0 => '/'];
11
    }
12
13
    public function getMetrics()
14
    {
15
        $return = new Google_Service_AnalyticsReporting_DateRangeValues();
16
        $return->setValues([0 => 45477]);
17
        return [$return];
18
    }
19
}

tests/mocks/AnalyticsResponseNoPageMock.php 1 location

@@ 3-19 (lines=17) @@
1
<?php
2
3
class AnalyticsResponseNoPageMock extends Google_Service_AnalyticsReporting_ReportRow
4
{
5
6
    public $response;
7
8
    public function getDimensions()
9
    {
10
        return [0 => '/i-do-not-exist'];
11
    }
12
13
    public function getMetrics()
14
    {
15
        $return = new Google_Service_AnalyticsReporting_DateRangeValues();
16
        $return->setValues([0 => 1]);
17
        return [$return];
18
    }
19
}