arkaitzgarro/elastic-apm-laravel

View on GitHub
src/Collectors/RequestStartTime.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

The property $start_time is not named in camelCase.
Open

class RequestStartTime
{
    /**
     * @var float
     */
Severity: Minor
Found in src/Collectors/RequestStartTime.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $start_time is not named in camelCase.
Open

    public function setStartTime(float $start_time): void
    {
        $this->start_time = $start_time;
    }
Severity: Minor
Found in src/Collectors/RequestStartTime.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $start_time is not named in camelCase.
Open

    public function __construct(float $start_time)
    {
        $this->start_time = $start_time;
    }
Severity: Minor
Found in src/Collectors/RequestStartTime.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The variable $start_time is not named in camelCase.
Open

    public function __construct(float $start_time)
    {
        $this->start_time = $start_time;
    }
Severity: Minor
Found in src/Collectors/RequestStartTime.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 $start_time is not named in camelCase.
Open

    public function setStartTime(float $start_time): void
    {
        $this->start_time = $start_time;
    }
Severity: Minor
Found in src/Collectors/RequestStartTime.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