Code Duplication    Length = 11-11 lines in 2 locations

src/Xhgui/Controller/Run.php 2 locations

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