{"action":"closed","issue":{"url":"https://api.github.com/repos/jeedom/core/issues/231","labels_url":"https://api.github.com/repos/jeedom/core/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/jeedom/core/issues/231/comments","events_url":"https://api.github.com/repos/jeedom/core/issues/231/events","html_url":"https://github.com/jeedom/core/issues/231","id":122916072,"number":231,"title":"Rendre compatible avec la PSR2","user":{"login":"laibulle","id":2327626,"avatar_url":"https://avatars.githubusercontent.com/u/2327626?v=3","gravatar_id":"","url":"https://api.github.com/users/laibulle","html_url":"https://github.com/laibulle","followers_url":"https://api.github.com/users/laibulle/followers","following_url":"https://api.github.com/users/laibulle/following{/other_user}","gists_url":"https://api.github.com/users/laibulle/gists{/gist_id}","starred_url":"https://api.github.com/users/laibulle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laibulle/subscriptions","organizations_url":"https://api.github.com/users/laibulle/orgs","repos_url":"https://api.github.com/users/laibulle/repos","events_url":"https://api.github.com/users/laibulle/events{/privacy}","received_events_url":"https://api.github.com/users/laibulle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-18T09:48:21Z","updated_at":"2015-12-18T09:51:27Z","closed_at":"2015-12-18T09:51:27Z","body":"Le projet actuellement structuré ne suit pas du tout les conventions PHP de ces dernières années. Il faudrait mettre les classes dans un dossier src supprimer le suffixe .class ajouter un namespace et commencer par une majuscule. (Et supprimer les includes bien sûre).\r\n\r\nBenefice:\r\nCode plus lisible\r\nCode réutilisable\r\nPossibilité de faire des tests unitaires\r\nPlus d'include dans les fichiers puisque l'autoloader de composer va s'en charger\r\nCode plus robuste"}}