timegridio/timegrid

View on GitHub

Showing 381 of 381 total issues

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

<?php

return  [
  'saas' => [
    'plan_limit_reached' => 'Չի թույլատրվում',
Severity: Major
Found in resources/lang/hy_AM/app.php and 3 other locations - About 1 day to fix
resources/lang/fr_FR/app.php on lines 1..79
resources/lang/it_IT/app.php on lines 1..80
resources/lang/ru_RU/app.php on lines 1..79

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

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

return  [
  'saas' => [
    'plan_limit_reached' => 'Si è raggiunto il limite del tuo piano',
Severity: Major
Found in resources/lang/it_IT/app.php and 3 other locations - About 1 day to fix
resources/lang/fr_FR/app.php on lines 1..79
resources/lang/hy_AM/app.php on lines 1..79
resources/lang/ru_RU/app.php on lines 1..79

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

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

return  [
  'saas' => [
    'plan_limit_reached' => 'Vous avez atteint la limite de votre plan',
Severity: Major
Found in resources/lang/fr_FR/app.php and 3 other locations - About 1 day to fix
resources/lang/hy_AM/app.php on lines 1..79
resources/lang/it_IT/app.php on lines 1..80
resources/lang/ru_RU/app.php on lines 1..79

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/es_AR/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/en_US/auth.php on lines 1..49
resources/lang/es_ES/auth.php on lines 1..49
resources/lang/fr_FR/auth.php on lines 1..49
resources/lang/hy_AM/auth.php on lines 1..49
resources/lang/it_IT/auth.php on lines 1..49
resources/lang/ru_RU/auth.php on lines 1..49

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/ru_RU/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/en_US/auth.php on lines 1..49
resources/lang/es_AR/auth.php on lines 1..49
resources/lang/es_ES/auth.php on lines 1..49
resources/lang/fr_FR/auth.php on lines 1..49
resources/lang/hy_AM/auth.php on lines 1..49
resources/lang/it_IT/auth.php on lines 1..49

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/en_US/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/es_AR/auth.php on lines 1..49
resources/lang/es_ES/auth.php on lines 1..49
resources/lang/fr_FR/auth.php on lines 1..49
resources/lang/hy_AM/auth.php on lines 1..49
resources/lang/it_IT/auth.php on lines 1..49
resources/lang/ru_RU/auth.php on lines 1..49

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/it_IT/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/en_US/auth.php on lines 1..49
resources/lang/es_AR/auth.php on lines 1..49
resources/lang/es_ES/auth.php on lines 1..49
resources/lang/fr_FR/auth.php on lines 1..49
resources/lang/hy_AM/auth.php on lines 1..49
resources/lang/ru_RU/auth.php on lines 1..49

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/es_ES/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/en_US/auth.php on lines 1..49
resources/lang/es_AR/auth.php on lines 1..49
resources/lang/fr_FR/auth.php on lines 1..49
resources/lang/hy_AM/auth.php on lines 1..49
resources/lang/it_IT/auth.php on lines 1..49
resources/lang/ru_RU/auth.php on lines 1..49

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/fr_FR/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/en_US/auth.php on lines 1..49
resources/lang/es_AR/auth.php on lines 1..49
resources/lang/es_ES/auth.php on lines 1..49
resources/lang/hy_AM/auth.php on lines 1..49
resources/lang/it_IT/auth.php on lines 1..49
resources/lang/ru_RU/auth.php on lines 1..49

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

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

return  [
  //==================================== Translations ====================================//
  'btn' => [
Severity: Major
Found in resources/lang/hy_AM/auth.php and 6 other locations - About 7 hrs to fix
resources/lang/en_US/auth.php on lines 1..49
resources/lang/es_AR/auth.php on lines 1..49
resources/lang/es_ES/auth.php on lines 1..49
resources/lang/fr_FR/auth.php on lines 1..49
resources/lang/it_IT/auth.php on lines 1..49
resources/lang/ru_RU/auth.php on lines 1..49

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

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

        Route::group(['prefix' => 'humanresources'], function () {

            Route::get('', [
                'as'   => 'manager.business.humanresource.index',
                'uses' => 'HumanresourceController@index',
Severity: Major
Found in routes/web.php and 1 other location - About 6 hrs to fix
routes/web.php on lines 301..330

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

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

        Route::group(['prefix' => 'contact'], function () {
            Route::get('', [
                'as'   => 'manager.addressbook.index',
                'uses' => 'AddressbookController@index',
            ]);
Severity: Major
Found in routes/web.php and 1 other location - About 6 hrs to fix
routes/web.php on lines 333..363

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

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

File manager.php has 383 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //============================== New strings to translate ==============================//
  'agenda' => [
Severity: Minor
Found in resources/lang/it_IT/manager.php - About 5 hrs to fix

File manager.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //==================================== Translations ====================================//
  'agenda' => [
Severity: Minor
Found in resources/lang/es_ES/manager.php - About 4 hrs to fix

File manager.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //==================================== Translations ====================================//
  'agenda' => [
Severity: Minor
Found in resources/lang/en_US/manager.php - About 4 hrs to fix

File manager.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //==================================== Translations ====================================//
  'agenda' => [
Severity: Minor
Found in resources/lang/hy_AM/manager.php - About 4 hrs to fix

File manager.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //==================================== Translations ====================================//
  'agenda' => [
Severity: Minor
Found in resources/lang/ru_RU/manager.php - About 4 hrs to fix

File manager.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //==================================== Translations ====================================//
  'agenda' => [
Severity: Minor
Found in resources/lang/es_AR/manager.php - About 4 hrs to fix

File manager.php has 369 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return  [
  //==================================== Translations ====================================//
  'agenda' => [
Severity: Minor
Found in resources/lang/fr_FR/manager.php - About 4 hrs to fix

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

    public function create(Business $business)
    {
        logger()->info(__METHOD__);
        logger()->info(sprintf('businessId:%s', $business->id));

Severity: Major
Found in app/Http/Controllers/Manager/HumanresourceController.php and 1 other location - About 4 hrs to fix
app/Http/Controllers/Manager/AddressbookController.php on lines 39..57

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

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