Covivo/mobicoop

View on GitHub

Showing 1,454 of 1,619 total issues

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

<?php declare(strict_types=1);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200108095045.php and 4 other locations - About 6 days to fix
api/src/Migrations/Version20191114140807.php on lines 1..136
api/src/Migrations/Version20191217100312.php on lines 1..136
api/src/Migrations/Version20200103102800.php on lines 1..136
api/src/Migrations/Version20200103142235.php on lines 1..136

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20191118072554.php and 1 other location - About 5 days to fix
api/src/Migrations/Version20200103105600.php on lines 1..134

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20200103105600.php and 1 other location - About 5 days to fix
api/src/Migrations/Version20191118072554.php on lines 1..134

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20191128133808.php and 2 other locations - About 5 days to fix
api/src/Migrations/Version20191219153943.php on lines 1..133
api/src/Migrations/Version20191220162430.php on lines 1..133

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20191220162430.php and 2 other locations - About 5 days to fix
api/src/Migrations/Version20191128133808.php on lines 1..133
api/src/Migrations/Version20191219153943.php on lines 1..133

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20191219153943.php and 2 other locations - About 5 days to fix
api/src/Migrations/Version20191128133808.php on lines 1..133
api/src/Migrations/Version20191220162430.php on lines 1..133

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20191217095439.php and 1 other location - About 5 days to fix
api/src/Migrations/Version20191217100553.php on lines 1..132

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

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);

namespace DoctrineMigrations;

use Doctrine\DBAL\Schema\Schema;
Severity: Major
Found in api/src/Migrations/Version20191217100553.php and 1 other location - About 5 days to fix
api/src/Migrations/Version20191217095439.php on lines 1..132

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

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/Version20191128134044.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191111093917.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191221090541.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191106105029.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191106165721.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191216083607.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191220134133.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191217100836.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191221093705.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128

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

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/Version20191111091726.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191211113507.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191129100232.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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/Version20191129100232.php and 12 other locations - About 5 days to fix
api/src/Migrations/Version20191106105029.php on lines 1..128
api/src/Migrations/Version20191106165721.php on lines 1..128
api/src/Migrations/Version20191111091726.php on lines 1..128
api/src/Migrations/Version20191111093917.php on lines 1..128
api/src/Migrations/Version20191128134044.php on lines 1..128
api/src/Migrations/Version20191128134130.php on lines 1..128
api/src/Migrations/Version20191211113507.php on lines 1..128
api/src/Migrations/Version20191216083607.php on lines 1..128
api/src/Migrations/Version20191217100836.php on lines 1..128
api/src/Migrations/Version20191220134133.php on lines 1..128
api/src/Migrations/Version20191221090541.php on lines 1..128
api/src/Migrations/Version20191221093705.php on lines 1..128

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

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