sant0ro/chocolatey

View on GitHub
app/Models/Room.php

Summary

Maintainability
A
1 hr
Test Coverage

Method store has 10 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function store(string $roomName, string $description, string $model, int $maxUsers, int $roomCategory, int $floorPaper, int $wallPaper, float $landscapePaper, int $ownerId, string $ownerName)
Severity: Major
Found in app/Models/Room.php - About 1 hr to fix

    The method store has 10 parameters. Consider reducing the number of parameters to less than 10.
    Open

        public function store(string $roomName, string $description, string $model, int $maxUsers, int $roomCategory, int $floorPaper, int $wallPaper, float $landscapePaper, int $ownerId, string $ownerName)
        {
            $this->attributes['name'] = $roomName;
            $this->attributes['description'] = $description;
            $this->attributes['model'] = $model;
    Severity: Minor
    Found in app/Models/Room.php by phpmd

    TODO found
    Open

         * @TODO: What this really does?
    Severity: Minor
    Found in app/Models/Room.php by fixme

    TODO found
    Open

         * @TODO: Get Real Full Room Image
    Severity: Minor
    Found in app/Models/Room.php by fixme

    There are no issues that match your filters.

    Category
    Status