gdbots/schemas

View on GitHub

Showing 172 of 368 total issues

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/iam/request/search-roles-request/1-0-0.json#
namespace Gdbots\Schemas\Iam\Request;
build/php/src/Gdbots/Schemas/Iam/Request/SearchAppsRequestV1.php on lines 1..162

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/iam/request/search-apps-request/1-0-0.json#
namespace Gdbots\Schemas\Iam\Request;
build/php/src/Gdbots/Schemas/Iam/Request/SearchRolesRequestV1.php on lines 1..162

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-tags-updated/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeTagsUpdatedV1.php and 1 other location - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLabelsUpdatedV1.php on lines 1..153

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-labels-updated/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeLabelsUpdatedV1.php and 1 other location - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeTagsUpdatedV1.php on lines 1..153

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

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

export default class UpdateNodeTagsV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/UpdateNodeTagsV1.js and 1 other location - About 4 days to fix
build/js/src/gdbots/ncr/command/UpdateNodeLabelsV1.js on lines 9..121

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

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

export default class UpdateNodeLabelsV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/UpdateNodeLabelsV1.js and 1 other location - About 4 days to fix
build/js/src/gdbots/ncr/command/UpdateNodeTagsV1.js on lines 9..121

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-published/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodePublishedV1.php and 1 other location - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeScheduledV1.php on lines 1..150

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-scheduled/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeScheduledV1.php and 1 other location - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodePublishedV1.php on lines 1..150

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-expired/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php and 6 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsDraftV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsPendingV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-unlocked/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php and 6 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsDraftV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsPendingV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-marked-as-draft/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsPendingV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-marked-as-pending/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsDraftV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-locked/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php and 6 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsDraftV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsPendingV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-unpublished/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php and 6 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsDraftV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsPendingV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-deleted/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeDeletedV1.php and 6 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/NodeExpiredV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeLockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsDraftV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeMarkedAsPendingV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnlockedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeUnpublishedV1.php on lines 1..148

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/iam/event/user-roles-revoked/1-0-0.json#
namespace Gdbots\Schemas\Iam\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Iam/Event/UserRolesRevokedV1.php and 3 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Iam/Event/AppRolesGrantedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/AppRolesRevokedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/UserRolesGrantedV1.php on lines 1..151

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/iam/event/user-roles-granted/1-0-0.json#
namespace Gdbots\Schemas\Iam\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Iam/Event/UserRolesGrantedV1.php and 3 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Iam/Event/AppRolesGrantedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/AppRolesRevokedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/UserRolesRevokedV1.php on lines 1..151

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/iam/event/app-roles-revoked/1-0-0.json#
namespace Gdbots\Schemas\Iam\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Iam/Event/AppRolesRevokedV1.php and 3 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Iam/Event/AppRolesGrantedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/UserRolesGrantedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/UserRolesRevokedV1.php on lines 1..151

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/iam/event/app-roles-granted/1-0-0.json#
namespace Gdbots\Schemas\Iam\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Iam/Event/AppRolesGrantedV1.php and 3 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Iam/Event/AppRolesRevokedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/UserRolesGrantedV1.php on lines 1..151
build/php/src/Gdbots/Schemas/Iam/Event/UserRolesRevokedV1.php on lines 1..151

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

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/node-created/1-0-0.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/NodeCreatedV1.php and 2 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/EdgeCreatedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/EdgeDeletedV1.php on lines 1..148

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

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