Code Duplication    Length = 11-11 lines in 2 locations

src/Xhgui/Controller/Run.php 2 locations

@@ 278-288 (lines=11) @@
275
        ));
276
    }
277
278
    public function callgraph()
279
    {
280
        $request = $this->app->request();
281
        $profile = $this->profiles->get($request->get('id'));
282
283
        $this->_template = 'runs/callgraph.twig';
284
        $this->set(array(
285
            'profile' => $profile,
286
            'date_format' => $this->app->config('date.format'),
287
        ));
288
    }
289
290
    public function callgraphData()
291
    {
@@ 303-313 (lines=11) @@
300
        return $response->body(json_encode($callgraph));
301
    }
302
303
    public function flamegraph()
304
    {
305
        $request = $this->app->request();
306
        $profile = $this->profiles->get($request->get('id'));
307
308
        $this->_template = 'runs/flamegraph.twig';
309
        $this->set(array(
310
            'profile' => $profile,
311
            'date_format' => $this->app->config('date.format'),
312
        ));
313
    }
314
315
    public function flamegraphData()
316
    {