BaguettePHP/mastodon-api

View on GitHub
sample/inc/routes.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method info from undeclared class \Monolog\Logger
Open

    chrome_log()->info("redirect", ['state' => $state, 'session' => $_SESSION]);
Severity: Critical
Found in sample/inc/routes.php by phan

Call to method info from undeclared class \Monolog\Logger
Open

    chrome_log()->info('Hello, World!');
Severity: Critical
Found in sample/inc/routes.php by phan

Call to method makePath from undeclared class \Teto\Routing\Router
Open

    $callback_url = app\get_service_base_url(router()->makePath('auth_callback'));
Severity: Critical
Found in sample/inc/routes.php by phan

Call to method makePath from undeclared class \Teto\Routing\Router
Open

    $callback_url = app\get_service_base_url(router()->makePath('auth_callback'));
Severity: Critical
Found in sample/inc/routes.php by phan

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['license'] = ['GET', '/license', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['acct'] = ['GET', '/acct/:acct', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

Call to method info from undeclared class \Monolog\Logger
Open

    chrome_log()->info('session', $_SESSION);
Severity: Critical
Found in sample/inc/routes.php by phan

Reference to instance property param from undeclared class \Teto\Routing\Action
Open

    $acct_input = $action->param['acct'];
Severity: Minor
Found in sample/inc/routes.php by phan

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['post_login'] = ['POST', '/login', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['#404'] = function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['auth_callback'] = ['GET', '/auth/callback', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

Parameter $action has undeclared type \Teto\Routing\Action
Open

$routes['index'] = ['GET', '/', function (Action $action) {
Severity: Minor
Found in sample/inc/routes.php by phan

Call to method info from undeclared class \Monolog\Logger
Open

    chrome_log()->info('session', $_SESSION);
Severity: Critical
Found in sample/inc/routes.php by phan

There are no issues that match your filters.

Category
Status