Code Duplication    Length = 11-11 lines in 2 locations

src/Xhgui/Controller/Run.php 2 locations

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