Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 15 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
19 | public function config() |
||
20 | { |
||
21 | $ret = <<<'EOT' |
||
22 | graph_title Job Rate |
||
23 | graph_vlabel Jobs per ${graph_period} |
||
24 | graph_category Beanstalk |
||
25 | graph_args --lower-limit 0 |
||
26 | graph_scale no |
||
27 | queue_jobs.label Jobs |
||
28 | queue_jobs.type DERIVE |
||
29 | queue_jobs.min 0 |
||
30 | EOT; |
||
31 | |||
32 | return $ret; |
||
33 | } |
||
34 | |||
45 |
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.