Code Duplication    Length = 14-14 lines in 2 locations

src/Kunstmaan/DashboardBundle/Command/Helper/Analytics/AbstractAnalyticsCommandHelper.php 1 location

@@ 85-98 (lines=14) @@
82
     *
83
     * @return array the resultset
84
     */
85
    protected function executeQuery(AnalyticsOverview $overview, $metrics)
86
    {
87
        $timestamps = $this->getTimestamps($overview);
88
        $extra = $this->getExtra($overview);
89
90
        // execute query
91
        $results = $this->query->getResultsByDate(
92
            $timestamps['begin'],
93
            $timestamps['end'],
94
            $metrics,
95
            $extra
96
        );
97
98
        return $results->getRows();
99
    }
100
101
    abstract public function getData(&$overview);

src/Kunstmaan/DashboardBundle/Command/Helper/Analytics/GoalCommandHelper.php 1 location

@@ 69-82 (lines=14) @@
66
     *
67
     * @return mixed
68
     */
69
    private function requestGoalResults(AnalyticsOverview $overview, $metrics, $dimensions)
70
    {
71
        $timestamps = $this->getTimestamps($overview);
72
73
        // execute query
74
        $results = $this->query->getResultsByDate(
75
            $timestamps['begin'],
76
            $timestamps['end'],
77
            $metrics,
78
            $dimensions
79
        );
80
81
        return $results->getRows();
82
    }
83
84
    /**
85
     * get data and save it for the overview