psr-2 method visibility declaration check