Infanatica/InfanaticaCepModule

View on GitHub
src/InfanaticaCepModule/Service/CepService.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class CepService {

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

    public function getEnderecoByCep($cep, $format=null)

Expected 0 spaces before closing bracket; 1 found
Open

        if( is_null($format) )

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

    public function getEnderecoByCep($cep, $format=null)

Expected 1 space after IF keyword; 0 found
Open

        if( is_null($format) )

No space found after comma in function call
Open

        return $this->formatEndereco($endereco,$format);

Expected 0 spaces after opening bracket; 1 found
Open

        if( is_null($format) )

No space found after comma in function call
Open

        if(! method_exists($endereco,$nomeDoMetodo))

Expected 1 space after closing parenthesis; found 9
Open

        if( is_null($format) )

Expected 1 space after closing parenthesis; found 0
Open

        if (! $endereco instanceof EnderecoResponseInterface){

Expected 1 newline at end of file; 0 found
Open

}

Expected 1 space after IF keyword; 0 found
Open

        if(! method_exists($endereco,$nomeDoMetodo))

Expected 1 space after closing parenthesis; found 9
Open

        if(! method_exists($endereco,$nomeDoMetodo))

There are no issues that match your filters.

Category
Status