Generator/AbstractFileGenerator.php

Summary

Maintainability
A
0 mins
Test Coverage

Saw unextractable annotation for comment '* @var [type]'
Open

     * @var [type]
Severity: Info
Found in Generator/AbstractFileGenerator.php by phan

Possibly zero references to public method \Yoghi\Bundle\MaddaBundle\Generator\AbstractFileGenerator::getErrors()
Open

    public function getErrors()
Severity: Minor
Found in Generator/AbstractFileGenerator.php by phan

Possibly zero references to public method \Yoghi\Bundle\MaddaBundle\Generator\AbstractFileGenerator::toString()
Open

    public function toString()
Severity: Minor
Found in Generator/AbstractFileGenerator.php by phan

The method _createFileOnDir is not named in camelCase.
Open

    protected function _createFileOnDir(Local $adapter, $outFile)
    {
        $filesystem = new Filesystem($adapter);

        $dir = pathinfo($adapter->getPathPrefix().$outFile, PATHINFO_DIRNAME).'/';
Severity: Minor
Found in Generator/AbstractFileGenerator.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

There are no issues that match your filters.

Category
Status