Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 13 |
Lines | 16 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
37 | View Code Duplication | protected function getConfigs()/*# : array */ |
|
1 ignored issue
–
show
|
|||
38 | { |
||
39 | return [ |
||
40 | 'DISTINCT' => '', |
||
41 | 'COL' => '', |
||
42 | 'TABLE' => 'FROM', |
||
43 | 'JOIN' => '', |
||
44 | 'PARTITION' => 'PARTITION', // added partition here |
||
45 | 'WHERE' => 'WHERE', |
||
46 | 'GROUP' => 'GROUP BY', |
||
47 | 'HAVING' => 'HAVING', |
||
48 | 'ORDER' => 'ORDER BY', |
||
49 | 'LIMIT' => 'LIMIT', |
||
50 | 'UNION' => '', |
||
51 | ]; |
||
52 | } |
||
53 | } |
||
54 |
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.