Showing 479 of 479 total issues

The method load_plugin_menu is not named in camelCase.
Open

    public function load_plugin_menu(string $package_name, array $menu_data, bool $require_affiliation = false): ?array
    {

        // Validate the package menu
        $this->validate_menu($package_name, $menu_data);
Severity: Minor
Found in src/Http/Composers/AbstractMenu.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_publications is not named in camelCase.
Open

    private function add_publications()
    {

        $this->publishes([
            __DIR__ . '/resources/css' => public_path('web/css'),
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_routes is not named in camelCase.
Open

    private function add_routes()
    {
        $this->loadRoutesFrom(__DIR__ . '/Http/routes.php');
    }
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_view_composers is not named in camelCase.
Open

    private function add_view_composers()
    {

        // User information view composer
        $this->app['view']->composer([
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_custom_validators is not named in camelCase.
Open

    private function add_custom_validators()
    {

        Validator::extend('cron', 'Seat\Web\Http\Validation\Custom\Cron@validate');
    }
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method override_horizon is not named in camelCase.
Open

    private function override_horizon()
    {
        $pool_key = sprintf('horizon.environments.%s', config('app.env', 'local'));
        config([$pool_key => config('seat-queues')]);
    }
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method register_policies is not named in camelCase.
Open

    private function register_policies()
    {
        $permissions = config('seat.permissions', []);

        Gate::define('global.superuser', 'Seat\Web\Acl\Policies\GlobalPolicy@superuser');
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method all_characters is not named in camelCase.
Open

    public function all_characters()
    {

        return CharacterInfo::whereIn('character_id', RefreshToken::withTrashed()->where('user_id', $this->id)->pluck('character_id'))->get();
    }
Severity: Minor
Found in src/Models/User.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_translations is not named in camelCase.
Open

    private function add_translations()
    {

        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'web');
    }
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method configure_horizon is not named in camelCase.
Open

    private function configure_horizon()
    {

        // Require the queue_manager role to view the dashboard
        Horizon::auth(function () {
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_events is not named in camelCase.
Open

    private function add_events()
    {

        // Internal Authentication Events
        $this->app->events->listen(LoginEvent::class, Login::class);
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method manage_candidates is not named in camelCase.
Open

    public function manage_candidates(User $user, Squad $squad)
    {
        return $squad->type == 'manual' && $squad->moderators->where('id', $user->id)->isNotEmpty();
    }
Severity: Minor
Found in src/Acl/Policies/SquadPolicy.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method refresh_tokens is not named in camelCase.
Open

    public function refresh_tokens()
    {
        return $this->hasMany(RefreshToken::class);
    }
Severity: Minor
Found in src/Models/User.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method validate_menu is not named in camelCase.
Open

    public function validate_menu(string $package_name, array $menu_data)
    {

        if (! is_string($package_name))
            throw new PackageMenuBuilderException(
Severity: Minor
Found in src/Http/Composers/AbstractMenu.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method show_members is not named in camelCase.
Open

    public function show_members(User $user, Squad $squad)
    {
        return ($squad->members->where('id', $user->id)->isNotEmpty() &&
            ! $squad->is_classified) ||
            $squad->moderators->where('id', $user->id)->isNotEmpty();
Severity: Minor
Found in src/Acl/Policies/SquadPolicy.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_views is not named in camelCase.
Open

    private function add_views()
    {

        $this->loadViewsFrom(__DIR__ . '/resources/views', 'web');
    }
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method main_character is not named in camelCase.
Open

    public function main_character()
    {
        return $this->hasOne(CharacterInfo::class, 'character_id', 'main_character_id')
            ->withDefault();
    }
Severity: Minor
Found in src/Models/User.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_middleware is not named in camelCase.
Open

    private function add_middleware(Router $router)
    {

        // Authenticate checks that the session is
        // simply authenticated
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method configure_api is not named in camelCase.
Open

    private function configure_api()
    {

        // ensure current annotations setting is an array of path or transform into it
        $current_annotations = config('l5-swagger.paths.annotations');
Severity: Minor
Found in src/WebServiceProvider.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method manage_members is not named in camelCase.
Open

    public function manage_members(User $user, Squad $squad)
    {
        return $squad->moderators->where('id', $user->id)->isNotEmpty();
    }
Severity: Minor
Found in src/Acl/Policies/SquadPolicy.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language