{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp-codesniffer/issues/137","labels_url":"https://api.github.com/repos/cakephp/cakephp-codesniffer/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp-codesniffer/issues/137/comments","events_url":"https://api.github.com/repos/cakephp/cakephp-codesniffer/issues/137/events","html_url":"https://github.com/cakephp/cakephp-codesniffer/issues/137","id":96474498,"number":137,"title":"Method name \"MyController::my_action\" is not in camel caps format","user":{"login":"davehensley","id":720836,"avatar_url":"https://avatars.githubusercontent.com/u/720836?v=3","gravatar_id":"","url":"https://api.github.com/users/davehensley","html_url":"https://github.com/davehensley","followers_url":"https://api.github.com/users/davehensley/followers","following_url":"https://api.github.com/users/davehensley/following{/other_user}","gists_url":"https://api.github.com/users/davehensley/gists{/gist_id}","starred_url":"https://api.github.com/users/davehensley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davehensley/subscriptions","organizations_url":"https://api.github.com/users/davehensley/orgs","repos_url":"https://api.github.com/users/davehensley/repos","events_url":"https://api.github.com/users/davehensley/events{/privacy}","received_events_url":"https://api.github.com/users/davehensley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-22T04:51:19Z","updated_at":"2015-07-22T05:48:10Z","closed_at":null,"body":"When using the CakePHP standard, phpcs complains that my action names are underscored rather than camelCased.\r\n\r\nThis seems to have been fixed a long time ago: https://github.com/cakephp/cakephp-codesniffer/issues/2\r\n\r\nAny idea why I'm still getting the error?"},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp-codesniffer/issues/comments/123571050","html_url":"https://github.com/cakephp/cakephp-codesniffer/issues/137#issuecomment-123571050","issue_url":"https://api.github.com/repos/cakephp/cakephp-codesniffer/issues/137","id":123571050,"user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T05:48:10Z","updated_at":"2015-07-22T05:48:10Z","body":"Yes sorry, i forgot which switch it was :)  As I had expected the requirement of camel caps method name is encored by PSR standard. Code sniffer 2.x is an extension of PSR2 (which included PSR1) hence the error is expected.\r\n\r\nI would suggest just using camel caps method names for controller actions too and use routing to map required url format to the method. For e.g. if you use `DashedRoute` it already maps dashed url fragment `my-action` to method name `myAction()`."}}