2025-08-03 20:59:09 +02:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< title > Dashboard for /var/www/html/backend/app/Http/Controllers/Api/V1< / title >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< link href = "../../../../_css/bootstrap.min.css?v=11.0.10" rel = "stylesheet" type = "text/css" >
< link href = "../../../../_css/nv.d3.min.css?v=11.0.10" rel = "stylesheet" type = "text/css" >
< link href = "../../../../_css/style.css?v=11.0.10" rel = "stylesheet" type = "text/css" >
< link href = "../../../../_css/custom.css" rel = "stylesheet" type = "text/css" >
< / head >
< body >
< header >
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-md-12" >
< nav aria-label = "breadcrumb" >
< ol class = "breadcrumb" >
< li class = "breadcrumb-item" > < a href = "../../../../index.html" > /var/www/html/backend/app< / a > < / li >
< li class = "breadcrumb-item" > < a href = "../../../index.html" > Http< / a > < / li >
< li class = "breadcrumb-item" > < a href = "../../index.html" > Controllers< / a > < / li >
< li class = "breadcrumb-item" > < a href = "../index.html" > Api< / a > < / li >
< li class = "breadcrumb-item" > < a href = "index.html" > V1< / a > < / li >
< li class = "breadcrumb-item active" > (Dashboard)< / li >
< / ol >
< / nav >
< / div >
< / div >
< / div >
< / header >
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-md-12" >
< h2 > Classes< / h2 >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-6" >
< h3 > Coverage Distribution< / h3 >
< div id = "classCoverageDistribution" style = "height: 300px;" >
< svg > < / svg >
< / div >
< / div >
< div class = "col-md-6" >
< h3 > Complexity< / h3 >
< div id = "classComplexity" style = "height: 300px;" >
< svg > < / svg >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-6" >
< h3 > Insufficient Coverage< / h3 >
< div class = "scrollbox" >
< table class = "table" >
< thead >
< tr >
< th > Class< / th >
< th class = "text-right" > Coverage< / th >
< / tr >
< / thead >
< tbody >
< tr > < td > < a href = "AuthController.php.html#12" > App\Http\Controllers\Api\V1\AuthController< / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "LogsController.php.html#9" > App\Http\Controllers\Api\V1\LogsController< / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#13" > App\Http\Controllers\Api\V1\PlatformAccountsController< / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#11" > App\Http\Controllers\Api\V1\PlatformChannelsController< / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#13" > App\Http\Controllers\Api\V1\RoutingController< / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
2025-08-03 21:16:59 +02:00
< tr > < td > < a href = "FeedsController.php.html#13" > App\Http\Controllers\Api\V1\FeedsController< / a > < / td > < td class = "text-right" > 76%< / td > < / tr >
< tr > < td > < a href = "DashboardController.php.html#13" > App\Http\Controllers\Api\V1\DashboardController< / a > < / td > < td class = "text-right" > 84%< / td > < / tr >
< tr > < td > < a href = "SettingsController.php.html#10" > App\Http\Controllers\Api\V1\SettingsController< / a > < / td > < td class = "text-right" > 85%< / td > < / tr >
< tr > < td > < a href = "BaseController.php.html#8" > App\Http\Controllers\Api\V1\BaseController< / a > < / td > < td class = "text-right" > 87%< / td > < / tr >
< tr > < td > < a href = "ArticlesController.php.html#11" > App\Http\Controllers\Api\V1\ArticlesController< / a > < / td > < td class = "text-right" > 87%< / td > < / tr >
2025-08-03 20:59:09 +02:00
< / tbody >
< / table >
< / div >
< / div >
< div class = "col-md-6" >
< h3 > Project Risks< / h3 >
< div class = "scrollbox" >
< table class = "table" >
< thead >
< tr >
< th > Class< / th >
< th class = "text-right" > < abbr title = "Change Risk Anti-Patterns (CRAP) Index" > CRAP< / abbr > < / th >
< / tr >
< / thead >
< tbody >
< tr > < td > < a href = "RoutingController.php.html#13" > App\Http\Controllers\Api\V1\RoutingController< / a > < / td > < td class = "text-right" > 306< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#13" > App\Http\Controllers\Api\V1\PlatformAccountsController< / a > < / td > < td class = "text-right" > 210< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#11" > App\Http\Controllers\Api\V1\PlatformChannelsController< / a > < / td > < td class = "text-right" > 182< / td > < / tr >
< tr > < td > < a href = "AuthController.php.html#12" > App\Http\Controllers\Api\V1\AuthController< / a > < / td > < td class = "text-right" > 132< / td > < / tr >
2025-08-03 21:16:59 +02:00
< tr > < td > < a href = "FeedsController.php.html#13" > App\Http\Controllers\Api\V1\FeedsController< / a > < / td > < td class = "text-right" > 15< / td > < / tr >
2025-08-03 20:59:09 +02:00
< tr > < td > < a href = "LogsController.php.html#9" > App\Http\Controllers\Api\V1\LogsController< / a > < / td > < td class = "text-right" > 12< / td > < / tr >
2025-08-03 21:16:59 +02:00
< tr > < td > < a href = "SettingsController.php.html#10" > App\Http\Controllers\Api\V1\SettingsController< / a > < / td > < td class = "text-right" > 7< / td > < / tr >
< tr > < td > < a href = "BaseController.php.html#8" > App\Http\Controllers\Api\V1\BaseController< / a > < / td > < td class = "text-right" > 6< / td > < / tr >
< tr > < td > < a href = "ArticlesController.php.html#11" > App\Http\Controllers\Api\V1\ArticlesController< / a > < / td > < td class = "text-right" > 5< / td > < / tr >
< tr > < td > < a href = "DashboardController.php.html#13" > App\Http\Controllers\Api\V1\DashboardController< / a > < / td > < td class = "text-right" > 3< / td > < / tr >
2025-08-03 20:59:09 +02:00
< / tbody >
< / table >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-12" >
< h2 > Methods< / h2 >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-6" >
< h3 > Coverage Distribution< / h3 >
< div id = "methodCoverageDistribution" style = "height: 300px;" >
< svg > < / svg >
< / div >
< / div >
< div class = "col-md-6" >
< h3 > Complexity< / h3 >
< div id = "methodComplexity" style = "height: 300px;" >
< svg > < / svg >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-6" >
< h3 > Insufficient Coverage< / h3 >
< div class = "scrollbox" >
< table class = "table" >
< thead >
< tr >
< th > Method< / th >
< th class = "text-right" > Coverage< / th >
< / tr >
< / thead >
< tbody >
< tr > < td > < a href = "AuthController.php.html#17" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::login" > login< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "AuthController.php.html#52" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::register" > register< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "AuthController.php.html#88" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::logout" > logout< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "AuthController.php.html#102" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::me" > me< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "BaseController.php.html#52" > < abbr title = "App\Http\Controllers\Api\V1\BaseController::sendNotFound" > sendNotFound< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "BaseController.php.html#60" > < abbr title = "App\Http\Controllers\Api\V1\BaseController::sendUnauthorized" > sendUnauthorized< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "LogsController.php.html#14" > < abbr title = "App\Http\Controllers\Api\V1\LogsController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#18" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#34" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#80" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::show" > show< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#91" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#122" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#139" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::setActive" > setActive< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#16" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#32" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#63" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::show" > show< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#74" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#100" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#117" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::toggle" > toggle< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#18" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#34" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#64" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::show" > show< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#84" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#116" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#141" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::toggle" > toggle< / abbr > < / a > < / td > < td class = "text-right" > 0%< / td > < / tr >
2025-08-03 21:16:59 +02:00
< tr > < td > < a href = "FeedsController.php.html#67" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 63%< / td > < / tr >
< tr > < td > < a href = "FeedsController.php.html#33" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 66%< / td > < / tr >
< tr > < td > < a href = "ArticlesController.php.html#44" > < abbr title = "App\Http\Controllers\Api\V1\ArticlesController::approve" > approve< / abbr > < / a > < / td > < td class = "text-right" > 71%< / td > < / tr >
< tr > < td > < a href = "ArticlesController.php.html#61" > < abbr title = "App\Http\Controllers\Api\V1\ArticlesController::reject" > reject< / abbr > < / a > < / td > < td class = "text-right" > 71%< / td > < / tr >
< tr > < td > < a href = "FeedsController.php.html#89" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 71%< / td > < / tr >
< tr > < td > < a href = "SettingsController.php.html#15" > < abbr title = "App\Http\Controllers\Api\V1\SettingsController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 71%< / td > < / tr >
< tr > < td > < a href = "FeedsController.php.html#106" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::toggle" > toggle< / abbr > < / a > < / td > < td class = "text-right" > 77%< / td > < / tr >
< tr > < td > < a href = "DashboardController.php.html#22" > < abbr title = "App\Http\Controllers\Api\V1\DashboardController::stats" > stats< / abbr > < / a > < / td > < td class = "text-right" > 83%< / td > < / tr >
2025-08-03 20:59:09 +02:00
< / tbody >
< / table >
< / div >
< / div >
< div class = "col-md-6" >
< h3 > Project Risks< / h3 >
< div class = "scrollbox" >
< table class = "table" >
< thead >
< tr >
< th > Method< / th >
< th class = "text-right" > < abbr title = "Change Risk Anti-Patterns (CRAP) Index" > CRAP< / abbr > < / th >
< / tr >
< / thead >
< tbody >
< tr > < td > < a href = "AuthController.php.html#17" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::login" > login< / abbr > < / a > < / td > < td class = "text-right" > 30< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#34" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 20< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#91" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 20< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#84" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 20< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#141" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::toggle" > toggle< / abbr > < / a > < / td > < td class = "text-right" > 20< / td > < / tr >
< tr > < td > < a href = "AuthController.php.html#52" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::register" > register< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "LogsController.php.html#14" > < abbr title = "App\Http\Controllers\Api\V1\LogsController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#32" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#74" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#117" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::toggle" > toggle< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#34" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#116" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 12< / td > < / tr >
< tr > < td > < a href = "AuthController.php.html#88" > < abbr title = "App\Http\Controllers\Api\V1\AuthController::logout" > logout< / abbr > < / a > < / td > < td class = "text-right" > 6< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#122" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 6< / td > < / tr >
< tr > < td > < a href = "PlatformAccountsController.php.html#139" > < abbr title = "App\Http\Controllers\Api\V1\PlatformAccountsController::setActive" > setActive< / abbr > < / a > < / td > < td class = "text-right" > 6< / td > < / tr >
< tr > < td > < a href = "PlatformChannelsController.php.html#100" > < abbr title = "App\Http\Controllers\Api\V1\PlatformChannelsController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 6< / td > < / tr >
< tr > < td > < a href = "RoutingController.php.html#64" > < abbr title = "App\Http\Controllers\Api\V1\RoutingController::show" > show< / abbr > < / a > < / td > < td class = "text-right" > 6< / td > < / tr >
2025-08-03 21:16:59 +02:00
< tr > < td > < a href = "FeedsController.php.html#67" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::update" > update< / abbr > < / a > < / td > < td class = "text-right" > 3< / td > < / tr >
< tr > < td > < a href = "FeedsController.php.html#33" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::store" > store< / abbr > < / a > < / td > < td class = "text-right" > 3< / td > < / tr >
< tr > < td > < a href = "FeedsController.php.html#106" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::toggle" > toggle< / abbr > < / a > < / td > < td class = "text-right" > 3< / td > < / tr >
< tr > < td > < a href = "ArticlesController.php.html#44" > < abbr title = "App\Http\Controllers\Api\V1\ArticlesController::approve" > approve< / abbr > < / a > < / td > < td class = "text-right" > 2< / td > < / tr >
< tr > < td > < a href = "ArticlesController.php.html#61" > < abbr title = "App\Http\Controllers\Api\V1\ArticlesController::reject" > reject< / abbr > < / a > < / td > < td class = "text-right" > 2< / td > < / tr >
< tr > < td > < a href = "FeedsController.php.html#89" > < abbr title = "App\Http\Controllers\Api\V1\FeedsController::destroy" > destroy< / abbr > < / a > < / td > < td class = "text-right" > 2< / td > < / tr >
< tr > < td > < a href = "SettingsController.php.html#15" > < abbr title = "App\Http\Controllers\Api\V1\SettingsController::index" > index< / abbr > < / a > < / td > < td class = "text-right" > 2< / td > < / tr >
< tr > < td > < a href = "DashboardController.php.html#22" > < abbr title = "App\Http\Controllers\Api\V1\DashboardController::stats" > stats< / abbr > < / a > < / td > < td class = "text-right" > 2< / td > < / tr >
2025-08-03 20:59:09 +02:00
< / tbody >
< / table >
< / div >
< / div >
< / div >
< footer >
< hr / >
< p >
2025-08-03 21:16:59 +02:00
< small > Generated by < a href = "https://github.com/sebastianbergmann/php-code-coverage" target = "_top" > php-code-coverage 11.0.10< / a > using < a href = "https://www.php.net/" target = "_top" > PHP 8.4.10< / a > and < a href = "https://phpunit.de/" > PHPUnit 11.5.28< / a > at Sun Aug 3 19:15:34 UTC 2025.< / small >
2025-08-03 20:59:09 +02:00
< / p >
< / footer >
< / div >
< script src = "../../../../_js/jquery.min.js?v=11.0.10" type = "text/javascript" > < / script >
< script src = "../../../../_js/d3.min.js?v=11.0.10" type = "text/javascript" > < / script >
< script src = "../../../../_js/nv.d3.min.js?v=11.0.10" type = "text/javascript" > < / script >
< script type = "text/javascript" >
$(document).ready(function() {
nv.addGraph(function() {
var chart = nv.models.multiBarChart();
chart.tooltips(false)
.showControls(false)
.showLegend(false)
.reduceXTicks(false)
.staggerLabels(true)
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
2025-08-03 21:16:59 +02:00
.datum(getCoverageDistributionData([5,0,0,0,0,0,0,0,1,4,0,0], "Class Coverage"))
2025-08-03 20:59:09 +02:00
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
nv.addGraph(function() {
var chart = nv.models.multiBarChart();
chart.tooltips(false)
.showControls(false)
.showLegend(false)
.reduceXTicks(false)
.staggerLabels(true)
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
2025-08-03 21:16:59 +02:00
.datum(getCoverageDistributionData([25,0,0,0,0,0,0,2,5,1,1,7], "Method Coverage"))
2025-08-03 20:59:09 +02:00
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
function getCoverageDistributionData(data, label) {
var labels = [
'0%',
'0-10%',
'10-20%',
'20-30%',
'30-40%',
'40-50%',
'50-60%',
'60-70%',
'70-80%',
'80-90%',
'90-100%',
'100%'
];
var values = [];
$.each(labels, function(key) {
values.push({x: labels[key], y: data[key]});
});
return [
{
key: label,
values: values,
color: "#4572A7"
}
];
}
nv.addGraph(function() {
var chart = nv.models.scatterChart()
.showDistX(true)
.showDistY(true)
.showLegend(false)
.forceX([0, 100]);
chart.tooltipContent(function(graph) {
return '< p > ' + graph.point.class + '< / p > ';
});
chart.xAxis.axisLabel('Code Coverage (in percent)');
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
2025-08-03 21:16:59 +02:00
.datum(getComplexityData([[87.87878787878788,5,"< a href = \"ArticlesController.php.html#11\" > App\\Http\\Controllers\\Api\\V1\\ArticlesController< \/a>"],[0,11,"< a href = \"AuthController.php.html#12\" > App\\Http\\Controllers\\Api\\V1\\AuthController< \/a>"],[87.5,6,"< a href = \"BaseController.php.html#8\" > App\\Http\\Controllers\\Api\\V1\\BaseController< \/a>"],[84.61538461538461,3,"< a href = \"DashboardController.php.html#13\" > App\\Http\\Controllers\\Api\\V1\\DashboardController< \/a>"],[76,13,"< a href = \"FeedsController.php.html#13\" > App\\Http\\Controllers\\Api\\V1\\FeedsController< \/a>"],[0,3,"< a href = \"LogsController.php.html#9\" > App\\Http\\Controllers\\Api\\V1\\LogsController< \/a>"],[0,14,"< a href = \"PlatformAccountsController.php.html#13\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController< \/a>"],[0,13,"< a href = \"PlatformChannelsController.php.html#11\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController< \/a>"],[0,17,"< a href = \"RoutingController.php.html#13\" > App\\Http\\Controllers\\Api\\V1\\RoutingController< \/a>"],[85.18518518518519,7,"< a href = \"SettingsController.php.html#10\" > App\\Http\\Controllers\\Api\\V1\\SettingsController< \/a>"]], 'Class Complexity'))
2025-08-03 20:59:09 +02:00
.transition()
.duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
nv.addGraph(function() {
var chart = nv.models.scatterChart()
.showDistX(true)
.showDistY(true)
.showLegend(false)
.forceX([0, 100]);
chart.tooltipContent(function(graph) {
return '< p > ' + graph.point.class + '< / p > ';
});
chart.xAxis.axisLabel('Code Coverage (in percent)');
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
2025-08-03 21:16:59 +02:00
.datum(getComplexityData([[100,1,"< a href = \"ArticlesController.php.html#16\" > App\\Http\\Controllers\\Api\\V1\\ArticlesController::index< \/a>"],[71.42857142857143,2,"< a href = \"ArticlesController.php.html#44\" > App\\Http\\Controllers\\Api\\V1\\ArticlesController::approve< \/a>"],[71.42857142857143,2,"< a href = \"ArticlesController.php.html#61\" > App\\Http\\Controllers\\Api\\V1\\ArticlesController::reject< \/a>"],[0,5,"< a href = \"AuthController.php.html#17\" > App\\Http\\Controllers\\Api\\V1\\AuthController::login< \/a>"],[0,3,"< a href = \"AuthController.php.html#52\" > App\\Http\\Controllers\\Api\\V1\\AuthController::register< \/a>"],[0,2,"< a href = \"AuthController.php.html#88\" > App\\Http\\Controllers\\Api\\V1\\AuthController::logout< \/a>"],[0,1,"< a href = \"AuthController.php.html#102\" > App\\Http\\Controllers\\Api\\V1\\AuthController::me< \/a>"],[100,1,"< a href = \"BaseController.php.html#13\" > App\\Http\\Controllers\\Api\\V1\\BaseController::sendResponse< \/a>"],[100,2,"< a href = \"BaseController.php.html#27\" > App\\Http\\Controllers\\Api\\V1\\BaseController::sendError< \/a>"],[100,1,"< a href = \"BaseController.php.html#44\" > App\\Http\\Controllers\\Api\\V1\\BaseController::sendValidationError< \/a>"],[0,1,"< a href = \"BaseController.php.html#52\" > App\\Http\\Controllers\\Api\\V1\\BaseController::sendNotFound< \/a>"],[0,1,"< a href = \"BaseController.php.html#60\" > App\\Http\\Controllers\\Api\\V1\\BaseController::sendUnauthorized< \/a>"],[100,1,"< a href = \"DashboardController.php.html#15\" > App\\Http\\Controllers\\Api\\V1\\DashboardController::__construct< \/a>"],[83.33333333333334,2,"< a href = \"DashboardController.php.html#22\" > App\\Http\\Controllers\\Api\\V1\\DashboardController::stats< \/a>"],[100,1,"< a href = \"FeedsController.php.html#18\" > App\\Http\\Controllers\\Api\\V1\\FeedsController::index< \/a>"],[66.66666666666666,3,"< a href = \"FeedsController.php.html#33\" > App\\Http\\Controllers\\Api\\V1\\FeedsController::store< \/a>"],[100,1,"< a href = \"FeedsController.php.html#56\" > App\\Http\\Controllers\\Api\\V1\\FeedsController::show< \/a>"],[63.63636363636363,3,"< a href = \"FeedsController.php.html#67\" > App\\Http\\Controllers\\Api\\V1\\FeedsController::update< \/a>"],[71.42857142857143,2,"< a href = \"FeedsController.php.html#89\" > App\\Http\\Controllers\\Api\\V1\\FeedsController::destroy< \/a>"],[77.77777777777779,3,"< a href = \"FeedsController.php.html#106\" > App\\Http\\Controllers\\Api\\V1\\FeedsController::toggle< \/a>"],[0,3,"< a href = \"LogsController.php.html#14\" > App\\Http\\Controllers\\Api\\V1\\LogsController::index< \/a>"],[0,1,"< a href = \"PlatformAccountsController.php.html#18\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController::index< \/a>"],[0,4,"< a href = \"PlatformAccountsController.php.html#34\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController::store< \/a>"],[0,1,"< a href = \"PlatformAccountsController.php.html#80\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController::show< \/a>"],[0,4,"< a href = \"PlatformAccountsController.php.html#91\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController::update< \/a>"],[0,2,"< a href = \"PlatformAccountsController.php.html#122\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController::destroy< \/a>"],[0,2,"< a href = \"PlatformAccountsController.php.html#139\" > App\\Http\\Controllers\\Api\\V1\\PlatformAccountsController::setActive< \/a>"],[0,1,"< a href = \"PlatformChannelsController.php.html#16\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController::index< \/a>"],[0,3,"< a href = \"PlatformChannelsController.php.html#32\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController::store< \/a>"],[0,1,"< a href = \"PlatformChannelsController.php.html#63\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController::show< \/a>"],[0,3,"< a href = \"PlatformChannelsController.php.html#74\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController::update< \/a>"],[0,2,"< a href = \"PlatformChannelsController.php.html#100\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController::destroy< \/a>"],[0,3,"< a href = \"PlatformChannelsController.php.html#117\" > App\\Http\\Controllers\\Api\\V1\\PlatformChannelsController::toggl
2025-08-03 20:59:09 +02:00
.transition()
.duration(500)
.call(chart);
nv.utils.windowResize(chart.update);
return chart;
});
function getComplexityData(data, label) {
var values = [];
$.each(data, function(key) {
var value = Math.round(data[key][0]*100) / 100;
values.push({
x: value,
y: data[key][1],
class: data[key][2],
size: 0.05,
shape: 'diamond'
});
});
return [
{
key: label,
values: values,
color: "#4572A7"
}
];
}
});
< / script >
< / body >
< / html >