This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
24
throw new \LogicException('Duration must be an array ' . json_encode($this->data) . ' given');
25
}
26
2
}
27
28
29
/**
30
* The path in the final json
31
* @example
32
* path /aa/bb
33
* will be transformed to
34
* {
35
* aa : {
36
* bb: <VALUE OF RESOLVE>
37
* }
38
* }
39
* @return string
40
*/
41
2
public function getPath()
42
{
43
2
return 'config';
44
}
45
46
/**
47
* @return RendererInterface
48
*
49
* @throws \RuntimeException
50
*/
51
public function getRenderer()
52
{
53
return new \Ndrx\Profiler\Renderer\Html\Data\Config();
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.