Code Duplication    Length = 11-11 lines in 2 locations

src/Xhgui/Controller/Run.php 2 locations

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