Code Duplication    Length = 14-14 lines in 2 locations

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

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

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

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