rinvex/cortex-foundation

View on GitHub
src/Transformers/LogTransformer.php

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

            // @TODO: identify the new route name. ex: adminarea.cortex.auth.members.edit
Severity: Minor
Found in src/Transformers/LogTransformer.php by fixme

The variable $causer_route is not named in camelCase.
Open

    public function transform(Log $log): array
    {
        $causer_route = '';

        if ($log->causer) {
Severity: Minor
Found in src/Transformers/LogTransformer.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 $causer_route is not named in camelCase.
Open

    public function transform(Log $log): array
    {
        $causer_route = '';

        if ($log->causer) {
Severity: Minor
Found in src/Transformers/LogTransformer.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 $causer_route is not named in camelCase.
Open

    public function transform(Log $log): array
    {
        $causer_route = '';

        if ($log->causer) {
Severity: Minor
Found in src/Transformers/LogTransformer.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