[Cookbook][Security] Meet PSR-2 visibility requirements