Code Duplication    Length = 11-11 lines in 2 locations

src/Xhgui/Controller/Run.php 2 locations

@@ 262-272 (lines=11) @@
259
        ));
260
    }
261
262
    public function callgraph()
263
    {
264
        $request = $this->app->request();
265
        $profile = $this->profiles->get($request->get('id'));
266
267
        $this->_template = 'runs/callgraph.twig';
268
        $this->set(array(
269
            'profile' => $profile,
270
            'date_format' => $this->app->config('date.format'),
271
        ));
272
    }
273
274
    public function callgraphData()
275
    {
@@ 287-297 (lines=11) @@
284
        return $response->body(json_encode($callgraph));
285
    }
286
287
    public function flamegraph()
288
    {
289
        $request = $this->app->request();
290
        $profile = $this->profiles->get($request->get('id'));
291
292
        $this->_template = 'runs/flamegraph.twig';
293
        $this->set(array(
294
            'profile' => $profile,
295
            'date_format' => $this->app->config('date.format'),
296
        ));
297
    }
298
299
    public function flamegraphData()
300
    {