Infanatica/InfanaticaCepModule

View on GitHub

Showing 186 of 186 total issues

Opening brace of a class must be on the line after the definition
Open

class CepServiceFactory implements FactoryInterface{

Opening brace of a class must be on the line after the definition
Open

class CepNotFoundException extends \Exception{

The closing brace for the class must go on the next line after the body
Open

}

Opening brace of a class must be on the line after the definition
Open

class ViaCepAdapterFactory implements FactoryInterface{

The closing brace for the class must go on the next line after the body
Open

}

Expected 0 spaces before closing bracket; 1 found
Open

        if( is_null($format) )

Opening brace of a interface must be on the line after the definition
Open

interface CepAdapterInterface {

Expected "function abc(...)"; found "function abc (...)"
Open

    protected function isJson ($string)

Expected "function abc(...)"; found "function abc (...)"
Open

    protected function isJson ($string)

There must be one blank line after the namespace declaration
Open

namespace InfanaticaCepModule\Adapter;

Opening brace of a class must be on the line after the definition
Open

class ViaCepAdapter implements CepAdapterInterface {

There must be one blank line after the namespace declaration
Open

namespace InfanaticaCepModule\Adapter;

Expected "function abc(...)"; found "function abc (...)"
Open

    protected function isJson ($string)

Expected 1 space between comma and type hint "EnderecoResponse"; 0 found
Open

    public function __construct(Client $httpClient,EnderecoResponse $enderecoResponse)

Expected 0 spaces before opening parenthesis; 1 found
Open

    protected function isJson ($string)

Opening brace of a class must be on the line after the definition
Open

class EnderecoResponseException extends \Exception{

The closing brace for the class must go on the next line after the body
Open

}

Opening brace of a class must be on the line after the definition
Open

class PostmonAdapterFactory implements FactoryInterface{

The closing brace for the class must go on the next line after the body
Open

}

Incorrect spacing between default value and equals sign for argument "$format"; expected 1 but found 0
Open

    public function getEnderecoByCep($cep, $format=null)
Severity
Category
Status
Source
Language