Formula9/Framework

View on GitHub
Nine/Collections/Traits/WithItemExport.php

Summary

Maintainability
A
0 mins
Test Coverage

The variable $export_structure is not named in camelCase.
Open

    public function exportPHPFile($path, $key, $baseName = NULL)
    {
        $export_structure = $key === '*' ? var_export($this->{'items'}, TRUE) : var_export($this->{'items'}[$key], TRUE);

        if (NULL === $baseName) {

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 $export_structure is not named in camelCase.
Open

    public function exportPHPFile($path, $key, $baseName = NULL)
    {
        $export_structure = $key === '*' ? var_export($this->{'items'}, TRUE) : var_export($this->{'items'}[$key], TRUE);

        if (NULL === $baseName) {

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