owncloud/core

View on GitHub

Showing 2,751 of 6,232 total issues

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $height;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Reports_ActivityActor extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $callerType;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_AndroidEnterprise_Install extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $installState;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $lifeCycleStatus;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_YouTube_ResourceId extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $channelId;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Reports_ActivityId extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $applicationName;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_AdExchangeBuyer_EditHistoryDto extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $createdByLoginName;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Genomics_Dataset extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $createTime;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Autoscaler_ZoneMaintenanceWindows extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $beginTime;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $description;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $dataRange;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Genomics_Experiment extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $instrumentModel;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_ShoppingContent_OrdersCustomBatchRequestEntryUpdateShipment extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $carrier;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Customsearch_SearchSearchInformation extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $formattedSearchTime;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Games_PlayerLevel extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $kind;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_QPXExpress_CityData extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $code;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_IdentityToolkit_UserInfoProviderUserInfo extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $displayName;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_AndroidPublisher_AppDetails extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $contactEmail;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $changedAttributesSinceTimestamp;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storage.php on lines 2429..2471
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9045..9087
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9245..9287
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 9817..9859
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10357..10399
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 10427..10469
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 12012..12054
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTubeReporting.php on lines 443..485

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 100.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 103 locations. Consider refactoring.
Open

class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model
{
  protected $internal_gapi_mappings = array(
  );
  public $age;
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 2043..2085
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeBuyer.php on lines 3588..3630
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdExchangeSeller.php on lines 1147..1189
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2670..2712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 2714..2756
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSense.php on lines 3074..3116
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1224..1266
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1709..1751
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AdSenseHost.php on lines 1889..1931
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 3900..3942
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Analytics.php on lines 8425..8467
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2367..2409
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2672..2714
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidEnterprise.php on lines 2744..2786
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2519..2561
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 2589..2631
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AndroidPublisher.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/AppState.php on lines 229..271
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Audit.php on lines 374..416
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Autoscaler.php on lines 1359..1401
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 1337..1379
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2461..2503
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Bigquery.php on lines 2505..2547
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Blogger.php on lines 2980..3022
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3239..3281
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 3283..3325
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Books.php on lines 6412..6454
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3135..3177
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3332..3374
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Calendar.php on lines 3767..3809
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/CivicInfo.php on lines 899..941
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Classroom.php on lines 1188..1230
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Cloudbilling.php on lines 404..446
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Clouddebugger.php on lines 839..881
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 410..452
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Customsearch.php on lines 1183..1225
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Dataflow.php on lines 1132..1174
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DeploymentManager.php on lines 1949..1991
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6525..6567
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 6825..6867
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7001..7043
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Directory.php on lines 7101..7143
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 684..726
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/DoubleClickBidManager.php on lines 962..1004
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Doubleclicksearch.php on lines 1396..1438
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Drive.php on lines 3648..3690
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Fitness.php on lines 902..944
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 3670..3712
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4235..4277
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 4945..4987
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 5854..5896
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Games.php on lines 6764..6806
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesConfiguration.php on lines 789..831
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/GamesManagement.php on lines 907..949
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1690..1732
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Genomics.php on lines 1738..1780
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Gmail.php on lines 2065..2107
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 682..724
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 916..958
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/IdentityToolkit.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/MapsEngine.php on lines 4999..5041
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Mirror.php on lines 883..925
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 222..264
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 266..308
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Pagespeedonline.php on lines 375..417
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Partners.php on lines 1390..1432
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1468..1510
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1512..1554
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Plus.php on lines 1592..1634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1779..1821
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1823..1865
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 1920..1962
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/PlusDomains.php on lines 3887..3929
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 134..176
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/QPXExpress.php on lines 267..309
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 562..604
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 706..748
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reports.php on lines 908..950
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Reseller.php on lines 802..844
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1557..1599
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/SQLAdmin.php on lines 1601..1643
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 3456..3498
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 4360..4402
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 5665..5707
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6398..6440
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6478..6520
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 6568..6610
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 7865..7907
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/ShoppingContent.php on lines 8638..8680
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Spectrum.php on lines 487..529
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Storagetransfer.php on lines 958..1000
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/TagManager.php on lines 1763..1805
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Taskqueue.php on lines 592..634
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on lines 5649..5691
apps/files_external/3rdparty/google-api-php-client/src/Google/Service/YouTube.php on