Covivo/mobicoop

View on GitHub

Showing 1,607 of 1,615 total issues

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200630105900.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20210305111500.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200324162000.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20210623143800.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27

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

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

<?php

declare(strict_types=1);

// namespace DoctrineMigrations; // For dev
Severity: Major
Found in client/src/Migrations/Version20220509142454.php and 7 other locations - About 50 mins to fix
api/src/Migrations/Version20220419141300.php on lines 1..28
api/src/Migrations/Version20220722104055.php on lines 1..28
api/src/Migrations/Version20220922080835.php on lines 1..28
api/src/Migrations/Version20230706162010.php on lines 1..27
api/src/Migrations/Version20231026130000.php on lines 1..30
api/src/Migrations/Version20231222142000.php on lines 1..28
client/src/Migrations/Version20230525141016.php on lines 1..29

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

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

<?php

declare(strict_types=1);

namespace DoctrineMigrations;
Severity: Major
Found in api/src/Migrations/Version20230706162010.php and 7 other locations - About 50 mins to fix
api/src/Migrations/Version20220419141300.php on lines 1..28
api/src/Migrations/Version20220722104055.php on lines 1..28
api/src/Migrations/Version20220922080835.php on lines 1..28
api/src/Migrations/Version20231026130000.php on lines 1..30
api/src/Migrations/Version20231222142000.php on lines 1..28
client/src/Migrations/Version20220509142454.php on lines 1..29
client/src/Migrations/Version20230525141016.php on lines 1..29

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200602110600.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20201104085100.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php

declare(strict_types=1);

// namespace DoctrineMigrations; // For dev
Severity: Major
Found in client/src/Migrations/Version20230525141016.php and 7 other locations - About 50 mins to fix
api/src/Migrations/Version20220419141300.php on lines 1..28
api/src/Migrations/Version20220722104055.php on lines 1..28
api/src/Migrations/Version20220922080835.php on lines 1..28
api/src/Migrations/Version20230706162010.php on lines 1..27
api/src/Migrations/Version20231026130000.php on lines 1..30
api/src/Migrations/Version20231222142000.php on lines 1..28
client/src/Migrations/Version20220509142454.php on lines 1..29

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200529164800.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20201023100200.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php

declare(strict_types=1);

namespace DoctrineMigrations;
Severity: Major
Found in api/src/Migrations/Version20231026130000.php and 7 other locations - About 50 mins to fix
api/src/Migrations/Version20220419141300.php on lines 1..28
api/src/Migrations/Version20220722104055.php on lines 1..28
api/src/Migrations/Version20220922080835.php on lines 1..28
api/src/Migrations/Version20230706162010.php on lines 1..27
api/src/Migrations/Version20231222142000.php on lines 1..28
client/src/Migrations/Version20220509142454.php on lines 1..29
client/src/Migrations/Version20230525141016.php on lines 1..29

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20201119113000.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php

declare(strict_types=1);

namespace DoctrineMigrations;
Severity: Major
Found in api/src/Migrations/Version20231222142000.php and 7 other locations - About 50 mins to fix
api/src/Migrations/Version20220419141300.php on lines 1..28
api/src/Migrations/Version20220722104055.php on lines 1..28
api/src/Migrations/Version20220922080835.php on lines 1..28
api/src/Migrations/Version20230706162010.php on lines 1..27
api/src/Migrations/Version20231026130000.php on lines 1..30
client/src/Migrations/Version20220509142454.php on lines 1..29
client/src/Migrations/Version20230525141016.php on lines 1..29

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20210223103800.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200604090000.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200604090000.php and 12 other locations - About 50 mins to fix
api/src/Migrations/Version20200324162000.php on lines 1..61
api/src/Migrations/Version20200529164800.php on lines 1..26
api/src/Migrations/Version20200602110600.php on lines 1..26
api/src/Migrations/Version20200630105900.php on lines 1..26
api/src/Migrations/Version20200709175500.php on lines 1..28
api/src/Migrations/Version20200722100505.php on lines 1..26
api/src/Migrations/Version20201023100200.php on lines 1..27
api/src/Migrations/Version20201104085100.php on lines 1..26
api/src/Migrations/Version20201119113000.php on lines 1..29
api/src/Migrations/Version20210223103800.php on lines 1..26
api/src/Migrations/Version20210305111500.php on lines 1..27
api/src/Migrations/Version20210623143800.php on lines 1..26

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

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

<?php

declare(strict_types=1);

namespace DoctrineMigrations;
Severity: Major
Found in api/src/Migrations/Version20220419141300.php and 7 other locations - About 50 mins to fix
api/src/Migrations/Version20220722104055.php on lines 1..28
api/src/Migrations/Version20220922080835.php on lines 1..28
api/src/Migrations/Version20230706162010.php on lines 1..27
api/src/Migrations/Version20231026130000.php on lines 1..30
api/src/Migrations/Version20231222142000.php on lines 1..28
client/src/Migrations/Version20220509142454.php on lines 1..29
client/src/Migrations/Version20230525141016.php on lines 1..29

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

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

        } elseif ($this->request->get('_route') == self::USER_LOGIN_TOKEN_EMAIL_ROUTE && $this->request->get('emailToken')) {
            // we want to login with token, we set the credentials for the dataProvider
            $this->dataProvider->setPassword(null);
            $this->dataProvider->setUsername($this->request->get('email'));
            $this->dataProvider->setEmailToken($this->request->get('emailToken'));
Severity: Minor
Found in client/src/MobicoopBundle/User/Service/UserProvider.php and 1 other location - About 50 mins to fix
client/src/MobicoopBundle/User/Service/UserProvider.php on lines 76..83

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

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

        } elseif ($this->request->get('_route') == self::USER_LOGIN_TOKEN_ROUTE && $this->request->get('emailToken')) {
            // we want to login with token, we set the credentials for the dataProvider
            $this->dataProvider->setPassword(null);
            $this->dataProvider->setUsername($this->request->get('email'));
            $this->dataProvider->setEmailToken($this->request->get('emailToken'));
Severity: Minor
Found in client/src/MobicoopBundle/User/Service/UserProvider.php and 1 other location - About 50 mins to fix
client/src/MobicoopBundle/User/Service/UserProvider.php on lines 83..90

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

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

Identical blocks of code found in 3 locations. Consider refactoring.
Open

            foreach ($days as $day) {
                $mintime = $request->get($day.'_mintime');
                if ('' !== $mintime) {
                    $searchParameters['outward'][$day]['mintime'] = $mintime;
                }
Severity: Major
Found in api/src/ExternalJourney/Service/JourneyProviderRdex.php and 2 other locations - About 45 mins to fix
api/src/ExternalJourney/Admin/Service/ExternalJourneyManager.php on lines 166..175
api/src/ExternalJourney/Service/JourneyProviderStandardRdex.php on lines 92..101

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

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