owncloud/core

View on GitHub

Showing 6,808 of 12,413 total issues

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

    $this->projects_locations = new Google_Service_ArtifactRegistry_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_TPU_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_Workflows_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_CloudTasks_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_NetworkManagement_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->comments = new Google_Service_Plus_Resource_Comments(
        $this,
        $this->serviceName,
        'comments',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations_catalogs_operations = new Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsOperations(
        $this,
        $this->serviceName,
        'operations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_CloudLifeSciences_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations_operations = new Google_Service_ArtifactRegistry_Resource_ProjectsLocationsOperations(
        $this,
        $this->serviceName,
        'operations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_scanConfigs_scanRuns_findings = new Google_Service_WebSecurityScanner_Resource_ProjectsScanConfigsScanRunsFindings(
        $this,
        $this->serviceName,
        'findings',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations_catalogs_eventStores_operations = new Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStoresOperations(
        $this,
        $this->serviceName,
        'operations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations_operations = new Google_Service_Speech_Resource_ProjectsLocationsOperations(
        $this,
        $this->serviceName,
        'operations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_CloudScheduler_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_ServiceDirectory_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations_repositories_files = new Google_Service_ArtifactRegistry_Resource_ProjectsLocationsRepositoriesFiles(
        $this,
        $this->serviceName,
        'files',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_SecretManager_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->operations = new Google_Service_BigQueryReservation_Resource_Operations(
        $this,
        $this->serviceName,
        'operations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_locations = new Google_Service_BigtableAdmin_Resource_ProjectsLocations(
        $this,
        $this->serviceName,
        'locations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->projects_monitoredResourceDescriptors = new Google_Service_Monitoring_Resource_ProjectsMonitoredResourceDescriptors(
        $this,
        $this->serviceName,
        'monitoredResourceDescriptors',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigee.php on lines 2611..2652
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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 28 locations. Consider refactoring.
Open

    $this->organizations_operations = new Google_Service_Apigee_Resource_OrganizationsOperations(
        $this,
        $this->serviceName,
        'operations',
        array(
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Apigateway.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 64..105
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 106..147
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ArtifactRegistry.php on lines 258..299
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryDataTransfer.php on lines 120..161
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigQueryReservation.php on lines 61..102
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/BigtableAdmin.php on lines 681..722
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudHealthcare.php on lines 65..106
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudKMS.php on lines 62..103
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudLifeSciences.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudMemorystoreforMemcached.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudRedis.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudScheduler.php on lines 55..96
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/CloudTasks.php on lines 56..97
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Firestore.php on lines 520..561
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Monitoring.php on lines 373..414
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/NetworkManagement.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Plus.php on lines 134..175
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/PlusDomains.php on lines 179..220
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 190..231
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/RecommendationsAI.php on lines 394..435
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/SecretManager.php on lines 57..98
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/ServiceDirectory.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Speech.php on lines 97..138
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/TPU.php on lines 58..99
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/WebSecurityScanner.php on lines 235..276
apps/files_external/3rdparty/google/apiclient-services/src/Google/Service/Workflows.php on lines 56..97

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 172.

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

Severity
Category
Status
Source
Language