OggettoWeb / Oggetto-Coding-Standard

PHP Code Sniffer rules for Oggetto coding standard
4 stars 9 forks source link

Add method name sniffer to the ruleset. Fix #10. #19

Closed vsushkov closed 10 years ago

vsushkov commented 11 years ago

Generic.NamingConventions.CamelCapsFunctionName sniffer ensures that public methods' names do not start with underscore sign but private and protected methods do.

vsushkov commented 11 years ago

Не сработала ссылка. Должно фиксить issue #10.

vsushkov commented 11 years ago

и #9 тоже фиксит

dankocherga commented 11 years ago

Вот такой код:

class Foo
{
    protected function _execute()
    {
    }
}

вызывает ошибку: "Protected method name "Foo::_execute" is not in camel caps format" На вид метод назван верно