luyadev/luya-module-admin

View on GitHub
src/aws/ApiOverviewActiveWindow.php

Summary

Maintainability
A
1 hr
Test Coverage
B
80%

Showing 2 of 2 total issues

Method getAvailableApiEndpoints has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

protected function getAvailableApiEndpoints()
{
$data = [];
$generic = [];
$userId = $this->model->id;
Severity: Minor
Found in src/aws/ApiOverviewActiveWindow.php - About 1 hr to fix

    Function getAvailableApiEndpoints has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    protected function getAvailableApiEndpoints()
    {
    $data = [];
    $generic = [];
    $userId = $this->model->id;
    Severity: Minor
    Found in src/aws/ApiOverviewActiveWindow.php - About 35 mins to fix
    Category
    Status