Code Duplication    Length = 11-11 lines in 2 locations

src/Xhgui/Controller/Run.php 2 locations

@@ 291-301 (lines=11) @@
288
        ));
289
    }
290
291
    public function callgraph()
292
    {
293
        $request = $this->app->request();
294
        $profile = $this->profiles->get($request->get('id'));
295
296
        $this->_template = 'runs/callgraph.twig';
297
        $this->set(array(
298
            'profile' => $profile,
299
            'date_format' => $this->app->config('date.format'),
300
        ));
301
    }
302
303
    public function callgraphData()
304
    {
@@ 316-326 (lines=11) @@
313
        return $response->body(json_encode($callgraph));
314
    }
315
316
    public function flamegraph()
317
    {
318
        $request = $this->app->request();
319
        $profile = $this->profiles->get($request->get('id'));
320
321
        $this->_template = 'runs/flamegraph.twig';
322
        $this->set(array(
323
            'profile' => $profile,
324
            'date_format' => $this->app->config('date.format'),
325
        ));
326
    }
327
328
    public function flamegraphData()
329
    {