DarkaOnLine/SwaggerLume

View on GitHub
src/helpers.php

Summary

Maintainability
A
0 mins
Test Coverage
B
86%

Line exceeds 120 characters; contains 147 characters
Open

        return route('swagger-lume.asset', ['asset' => $asset, 'v' => md5($file)], config('swagger-lume.force_https')) ?? app('request')->secure();
Severity: Minor
Found in src/helpers.php by phpcodesniffer

The variable $allowed_files is not named in camelCase.
Open

    function swagger_ui_dist_path($asset = null)
    {
        $allowed_files = [
            'favicon-16x16.png',
            'favicon-32x32.png',
Severity: Minor
Found in src/helpers.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $allowed_files is not named in camelCase.
Open

    function swagger_ui_dist_path($asset = null)
    {
        $allowed_files = [
            'favicon-16x16.png',
            'favicon-32x32.png',
Severity: Minor
Found in src/helpers.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status