awslabs / aws-elasticache-cluster-client-memcached-for-php
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 3% duplication:
    • 4,251 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 128 duplicated lines
  • 14 duplicates
system3% (128 lines)
Duplication per Extension
c3% (128 lines)
Duplication per Component (primary)
ROOT3% (128 lines)
fastlz0% (0 lines)
server-example0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
10 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
217:227 (1%)
453:463 (1%)
view
8 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
154:161 (1%)
363:370 (1%)
view
7 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
1999:2005 (<1%)
2188:2194 (<1%)
view
7 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
107:114 (1%)
217:224 (1%)
view
7 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
107:114 (1%)
453:460 (1%)
view
7 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
1746:1756 (<1%)
1783:1793 (<1%)
view
6 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
2298:2303 (<1%)
2308:2313 (<1%)
view
6 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
2085:2090 (<1%)
2095:2100 (<1%)
view
6 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
4055:4060 (<1%)
4063:4068 (<1%)
view
6 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
152:158 (1%)
453:459 (1%)
view
6 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
1992:1997 (<1%)
2019:2024 (<1%)
view
6 x 2 ROOT
ROOT
php_memcached.c
php_memcached.c
1876:1883 (<1%)
2097:2104 (<1%)
view
6 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
107:113 (1%)
152:158 (1%)
view
6 x 2 ROOT
ROOT
php_memcached_server.c
php_memcached_server.c
152:158 (1%)
217:223 (1%)
view