JABirchall/NimdaTS3

View on GitHub
app/Timer.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Method __construct has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function __construct($config, $teamSpeak3Bot)
{
$this->time = Carbon::now();
$this->nextRunTime = Carbon::now();
$this->teamSpeak3Bot = $teamSpeak3Bot;
Severity: Minor
Found in app/Timer.php - About 1 hr to fix

    Function __construct has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
    Open

    public function __construct($config, $teamSpeak3Bot)
    {
    $this->time = Carbon::now();
    $this->nextRunTime = Carbon::now();
    $this->teamSpeak3Bot = $teamSpeak3Bot;
    Severity: Minor
    Found in app/Timer.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status