syntaxerrors/Steam

View on GitHub

Showing 59 of 59 total issues

Line exceeds 120 characters; contains 122 characters
Open

    public function GetOwnedGames($includeAppInfo = true, $includePlayedFreeGames = false, $appIdsFilter = []): Collection

Line exceeds 120 characters; contains 123 characters
Open

        $this->recommendations    = $this->checkIssetField($app, 'recommendations', $this->getFakeRecommendationsObject());

Line exceeds 120 characters; contains 141 characters
Open

                    $result->city = $countriesFile->{$this->locCountryCode}->states->{$this->locStateCode}->cities->{$this->locCityId}->name;

Line exceeds 120 characters; contains 131 characters
Open

        $countriesFile = json_decode(\file_get_contents(__DIR__ . '/../Resources/countries.json'), null, 512, JSON_THROW_ON_ERROR);

Line exceeds 120 characters; contains 139 characters
Open

            throw new ApiCallFailedException('Api call failed to complete due to a server error.', $e->getResponse()->getStatusCode(), $e);

Whitespace found at end of line
Open

}

Expected 1 space after IF keyword; 0 found
Open

        if($summaries) {

Expected 1 space after closing parenthesis; found 0
Open

        if(count((array)$details) == 0){

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                $id = $this->convertToAll($id)->id64;

Closing parenthesis of a multi-line function call must be on a line by itself
Open

            });

Expected 1 space after closing parenthesis; found 9
Open

        if (! empty(array_filter($gameDetails)))

Line indented incorrectly; expected 16 spaces, found 12
Open

            });

Space before opening parenthesis of function call prohibited
Open

        return match ($personaState) {

Closing brace indented incorrectly; expected 16 spaces, found 12
Open

            });

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => 'Unknown',

Whitespace found at end of line
Open

}

Expected 1 space after IF keyword; 0 found
Open

            if(property_exists($player, 'steamid')) {

Expected 1 space after IF keyword; 0 found
Open

        if(count((array)$details) == 0){

Space before opening parenthesis of function call prohibited
Open

        $this->app->singleton('steam-api', fn () => new Client());
Severity
Category
Status
Source
Language