ampache/ampache

View on GitHub
src/Module/Api/Method/SongsMethod.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method empty from undeclared class \Ampache\Module\Api\Api
Open

            Api::empty('song', $input['api_format']);
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Parameter $user has undeclared type \Ampache\Repository\Model\User
Open

    public static function songs(array $input, User $user): bool
Severity: Minor
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method set_offset from undeclared class \Ampache\Module\Api\Json_Data
Open

                Json_Data::set_offset((int)($input['offset'] ?? 0));
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method set_limit from undeclared class \Ampache\Module\Api\Json_Data
Open

                Json_Data::set_limit($input['limit'] ?? 0);
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method set_limit from undeclared class \Ampache\Module\Api\Xml_Data
Open

                Xml_Data::set_limit($input['limit'] ?? 0);
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method getBrowse from undeclared class \Ampache\Module\Api\Api
Open

        $browse = Api::getBrowse();
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method set_offset from undeclared class \Ampache\Module\Api\Xml_Data
Open

                Xml_Data::set_offset((int)($input['offset'] ?? 0));
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method songs from undeclared class \Ampache\Module\Api\Xml_Data
Open

                echo Xml_Data::songs($results, $user);
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

Call to method songs from undeclared class \Ampache\Module\Api\Json_Data
Open

                echo Json_Data::songs($results, $user);
Severity: Critical
Found in src/Module/Api/Method/SongsMethod.php by phan

There are no issues that match your filters.

Category
Status