davide-casiraghi/movement_meets_life_nova

View on GitHub

Showing 95 of 95 total issues

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

<?php
namespace App\Services;

use App\Helpers\ImageHelpers;
use App\Http\Requests\TeacherStoreRequest;
Severity: Major
Found in app/Services/TeacherService.php and 1 other location - About 1 day to fix
app/Services/OrganizerService.php on lines 1..113

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

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
namespace App\Services;

use App\Helpers\ImageHelpers;
use App\Http\Requests\OrganizerStoreRequest;
Severity: Major
Found in app/Services/OrganizerService.php and 1 other location - About 1 day to fix
app/Services/TeacherService.php on lines 1..114

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

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

Method run has 255 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function run()
    {
        $countries = [
            ['name' => 'Italy', 'continent_id' => '6', 'code' => 'IT'],
            ['name' => 'United States', 'continent_id' => '3', 'code' => 'US'],
Severity: Major
Found in database/seeders/CountriesTableSeeder.php - About 1 day to fix

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

    <?php
    
    namespace App\Http\Controllers;
    
    use App\Http\Requests\PostCategoryStoreRequest;
    Severity: Major
    Found in app/Http/Controllers/PostCategoryController.php and 1 other location - About 1 day to fix
    app/Http/Controllers/EventCategoryController.php on lines 1..103

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

    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
    
    namespace App\Http\Controllers;
    
    use App\Http\Requests\EventCategoryStoreRequest;
    Severity: Major
    Found in app/Http/Controllers/EventCategoryController.php and 1 other location - About 1 day to fix
    app/Http/Controllers/PostCategoryController.php on lines 1..103

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

    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

        Route::name('quotes.')->group(function () {
            Route::get('/quotes', [QuoteController::class, 'index'])->name('index');
            Route::get('/quotes/{id}/edit', [QuoteController::class, 'edit'])->name('edit');
            Route::put('/quotes/{id}', [QuoteController::class, 'update'])->name('update');
            Route::get('/quotes/create', [QuoteController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 2 other locations - About 6 hrs to fix
    routes/web.php on lines 127..135
    routes/web.php on lines 176..184

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

    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

        Route::name('insights.')->group(function () {
            Route::get('/insights', [InsightController::class, 'index'])->name('index');
            Route::get('/insights/create', [InsightController::class, 'create'])->name('create');
            Route::get('/insights/{insight}/edit', [InsightController::class, 'edit'])->name('edit');
            Route::post('/insights', [InsightController::class, 'store'])->name('store');
    Severity: Major
    Found in routes/web.php and 2 other locations - About 6 hrs to fix
    routes/web.php on lines 127..135
    routes/web.php on lines 156..164

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

    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

        Route::name('venues.')->group(function () {
            Route::get('/venues', [VenueController::class, 'index'])->name('index');
            Route::get('/venues/{id}/edit', [VenueController::class, 'edit'])->name('edit');
            Route::put('/venues/{id}', [VenueController::class, 'update'])->name('update');
            Route::get('/venues/create', [VenueController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 2 other locations - About 6 hrs to fix
    routes/web.php on lines 156..164
    routes/web.php on lines 176..184

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

    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

    class RegionRepository
    {
        /**
         * Get all Regions.
         *
    Severity: Major
    Found in app/Repositories/RegionRepository.php and 1 other location - About 6 hrs to fix
    app/Repositories/CountryRepository.php on lines 9..93

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

    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

    class CountryRepository implements CountryRepositoryInterface
    {
    
        /**
         * Get all Countries.
    Severity: Major
    Found in app/Repositories/CountryRepository.php and 1 other location - About 6 hrs to fix
    app/Repositories/RegionRepository.php on lines 9..92

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

    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

        public function getAll(int $recordsPerPage = null, array $searchParameters = null)
        {
            $query = Teacher::orderBy('name', 'desc');
    
            if (!is_null($searchParameters)) {
    Severity: Major
    Found in app/Repositories/TeacherRepository.php and 1 other location - About 5 hrs to fix
    app/Repositories/VenueRepository.php on lines 18..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 199.

    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

        public function getAll(int $recordsPerPage = null, array $searchParameters = null)
        {
            $query = Venue::orderBy('name', 'desc');
    
            if (!is_null($searchParameters)) {
    Severity: Major
    Found in app/Repositories/VenueRepository.php and 1 other location - About 5 hrs to fix
    app/Repositories/TeacherRepository.php on lines 20..51

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

    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

        Route::name('organizers.')->group(function () {
            Route::get('/organizers', [OrganizerController::class, 'index'])->name('index');
            Route::get('/organizers/{id}/edit', [OrganizerController::class, 'edit'])->name('edit');
            Route::put('/organizers/{id}', [OrganizerController::class, 'update'])->name('update');
            Route::get('/organizers/create', [OrganizerController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 55..62
    routes/web.php on lines 65..72
    routes/web.php on lines 77..84
    routes/web.php on lines 87..94
    routes/web.php on lines 97..104
    routes/web.php on lines 107..114

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

    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

        Route::name('users.')->group(function () {
            Route::get('/users', [UserController::class, 'index'])->name('index');
            Route::get('/users/{id}/edit', [UserController::class, 'edit'])->name('edit');
            Route::put('/users/{id}', [UserController::class, 'update'])->name('update');
            Route::get('/users/create', [UserController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 65..72
    routes/web.php on lines 77..84
    routes/web.php on lines 87..94
    routes/web.php on lines 97..104
    routes/web.php on lines 107..114
    routes/web.php on lines 117..124

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

    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

        Route::name('tags.')->group(function () {
            Route::get('/tags', [TagController::class, 'index'])->name('index');
            Route::get('/tags/{id}/edit', [TagController::class, 'edit'])->name('edit');
            Route::put('/tags/{id}', [TagController::class, 'update'])->name('update');
            Route::get('/tags/create', [TagController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 55..62
    routes/web.php on lines 65..72
    routes/web.php on lines 77..84
    routes/web.php on lines 97..104
    routes/web.php on lines 107..114
    routes/web.php on lines 117..124

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

    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

        Route::name('glossaries.')->group(function () {
            Route::get('/glossaries', [GlossaryController::class, 'index'])->name('index');
            Route::get('/glossaries/{id}/edit', [GlossaryController::class, 'edit'])->name('edit');
            Route::put('/glossaries/{id}', [GlossaryController::class, 'update'])->name('update');
            Route::get('/glossaries/create', [GlossaryController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 55..62
    routes/web.php on lines 65..72
    routes/web.php on lines 77..84
    routes/web.php on lines 87..94
    routes/web.php on lines 107..114
    routes/web.php on lines 117..124

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

    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

        Route::name('posts.')->group(function () {
            Route::get('/posts', [PostController::class, 'index'])->name('index');
            Route::get('/posts/{id}/edit', [PostController::class, 'edit'])->name('edit');
            Route::put('/posts/{id}', [PostController::class, 'update'])->name('update');
            Route::get('/posts/create', [PostController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 55..62
    routes/web.php on lines 65..72
    routes/web.php on lines 87..94
    routes/web.php on lines 97..104
    routes/web.php on lines 107..114
    routes/web.php on lines 117..124

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

    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

        Route::name('teachers.')->group(function () {
            Route::get('/teachers', [TeacherController::class, 'index'])->name('index');
            Route::get('/teachers/{id}/edit', [TeacherController::class, 'edit'])->name('edit');
            Route::put('/teachers/{id}', [TeacherController::class, 'update'])->name('update');
            Route::get('/teachers/create', [TeacherController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 55..62
    routes/web.php on lines 65..72
    routes/web.php on lines 77..84
    routes/web.php on lines 87..94
    routes/web.php on lines 97..104
    routes/web.php on lines 117..124

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

    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

        Route::name('teams.')->group(function () {
            Route::get('/teams', [TeamController::class, 'index'])->name('index');
            Route::get('/teams/{id}/edit', [TeamController::class, 'edit'])->name('edit');
            Route::put('/teams/{id}', [TeamController::class, 'update'])->name('update');
            Route::get('/teams/create', [TeamController::class, 'create'])->name('create');
    Severity: Major
    Found in routes/web.php and 6 other locations - About 5 hrs to fix
    routes/web.php on lines 55..62
    routes/web.php on lines 77..84
    routes/web.php on lines 87..94
    routes/web.php on lines 97..104
    routes/web.php on lines 107..114
    routes/web.php on lines 117..124

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

    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 create.blade.php has 361 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    @extends('layouts.backend')
    
    @section('title')
        @lang('event.create_new_event')
    @endsection
    Severity: Minor
    Found in resources/views/events/create.blade.php - About 4 hrs to fix
      Severity
      Category
      Status
      Source
      Language