{"action":"created","comment":{"url":"https://api.github.com/repos/portabilis/i-educar/pulls/comments/199837328","pull_request_review_id":134034943,"id":199837328,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTgzNzMyOA==","diff_hunk":"@@ -95,4 +95,95 @@ public static function validatesCpf($cpf) {\n \n     return ($primeiroDigito == $cpf[9] && $segundoDigito == $cpf[10]);\n   }\n+\n+  /**\n+   * Valida os novos formatos de Certidão Civil.\n+   *\n+   * @author Thieres Tembra <tdt@mytdt.com.br>\n+   *\n+   * @param  string  $certidao Certidão a ser validada.\n+   * @param  bool  $motivo optional Se deseja retornar o motivo em string.\n+   * @return bool|string Se !$motivo retorna true/false.\n+   *                     Se $motivo retorna uma string com o motivo da falha ou uma string vazia (sucesso).\n+   */\n+  public static function validatesCertidaoNovoFormato($certidao, $motivo = false) {","path":"ieducar/lib/Portabilis/Utils/Validation.php","position":15,"original_position":15,"commit_id":"5167ec1b9d9a4cdf4d298b6f9f0c88a487f2f0b8","original_commit_id":"e250a199f330ccffe8ee5314c92c12ffe70a27b4","user":{"login":"Bonot","id":5911217,"node_id":"MDQ6VXNlcjU5MTEyMTc=","avatar_url":"https://avatars2.githubusercontent.com/u/5911217?v=4","gravatar_id":"","url":"https://api.github.com/users/Bonot","html_url":"https://github.com/Bonot","followers_url":"https://api.github.com/users/Bonot/followers","following_url":"https://api.github.com/users/Bonot/following{/other_user}","gists_url":"https://api.github.com/users/Bonot/gists{/gist_id}","starred_url":"https://api.github.com/users/Bonot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bonot/subscriptions","organizations_url":"https://api.github.com/users/Bonot/orgs","repos_url":"https://api.github.com/users/Bonot/repos","events_url":"https://api.github.com/users/Bonot/events{/privacy}","received_events_url":"https://api.github.com/users/Bonot/received_events","type":"User","site_admin":false},"body":"O que seria esse parâmetro `motivo`? Daria pra usar um nome mais autoexplicativo?","created_at":"2018-07-03T14:52:57Z","updated_at":"2018-07-03T14:52:57Z","html_url":"https://github.com/portabilis/i-educar/pull/292#discussion_r199837328","pull_request_url":"https://api.github.com/repos/portabilis/i-educar/pulls/292","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/comments/199837328"},"html":{"href":"https://github.com/portabilis/i-educar/pull/292#discussion_r199837328"},"pull_request":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/292"}}},"pull_request":{"url":"https://api.github.com/repos/portabilis/i-educar/pulls/292","id":198654794,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NjU0Nzk0","html_url":"https://github.com/portabilis/i-educar/pull/292","diff_url":"https://github.com/portabilis/i-educar/pull/292.diff","patch_url":"https://github.com/portabilis/i-educar/pull/292.patch","issue_url":"https://api.github.com/repos/portabilis/i-educar/issues/292","number":292,"state":"open","locked":false,"title":"Novas análises na exportação para o Educacenso / Conversão de campos no arquivo final do Educacenso","user":{"login":"tembra","id":6340360,"node_id":"MDQ6VXNlcjYzNDAzNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6340360?v=4","gravatar_id":"","url":"https://api.github.com/users/tembra","html_url":"https://github.com/tembra","followers_url":"https://api.github.com/users/tembra/followers","following_url":"https://api.github.com/users/tembra/following{/other_user}","gists_url":"https://api.github.com/users/tembra/gists{/gist_id}","starred_url":"https://api.github.com/users/tembra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tembra/subscriptions","organizations_url":"https://api.github.com/users/tembra/orgs","repos_url":"https://api.github.com/users/tembra/repos","events_url":"https://api.github.com/users/tembra/events{/privacy}","received_events_url":"https://api.github.com/users/tembra/received_events","type":"User","site_admin":false},"body":"### **Primeiro commit**\r\n\r\nAdicionadas novas análises na exportação para o Educacenso:\r\n\r\n**Registro 60**\r\n\r\n- Verificado se o INEP do aluno possui 12 dígitos.\r\n\r\n**Registro 70**\r\n\r\n- Verificado se a data de emissão da identidade foi informado, quando o número da identidade é informado.\r\n\r\n- Verificado se a data de emissão da identidade é maior que a data de nascimento do aluno e menor que a data corrente, quando o número da identidade é informado.\r\n\r\n- Verificado se o campo livro da certidão civil contém apenas dígitos quando o tipo da certidão é formato antigo. Exibido apenas aviso.\r\n\r\n- Verificado se a data de emissão da certidão civil foi informado, quando o tipo da certidão é formato antigo.\r\n\r\n- Verificado se a data de emissão da certidão civil é maior que a data de nascimento do aluno e menor que a data corrente, quando o tipo da certidão é formato antigo.\r\n\r\n- Verificado validação da certidão civil, quando novo formato, retornando o motivo da não validação (tamanho inválido, caractere(s) inválido(s), valor inválido).\r\n\r\n- Verificado se o ano da certidão civil é igual ou maior que o ano de nascimento e menor ou igual ao ano corrente, quando novo formato.\r\n\r\n- Verificado se o NIS (PIS/PASEP) do aluno possui 11 dígitos.\r\n\r\n\r\n---\r\n\r\n### **Segundo commit**\r\n\r\nForam feitas conversões de alguns campos antes de gerar o arquivo final para o Educacenso:\r\n\r\n**Registro 00**\r\n\r\n- Campo 6: E-mail do gestor escolar\r\n\r\n- Campo 26: E-mail da escola\r\n\r\n**Registro 30**\r\n\r\n- Campo 6: E-mail do profissional escolar\r\n\r\n**Registro 70**\r\n\r\n- Campo 13: Livro da Certidão Civil (antigo formato). O sistema do Educacenso está permitindo apenas dígitos, portanto todos os caracteres que não são dígitos são removidos.","created_at":"2018-07-02T11:48:46Z","updated_at":"2018-07-03T14:52:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f7e83e258c87c199f662f5c1b58a436537e517c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/portabilis/i-educar/pulls/292/commits","review_comments_url":"https://api.github.com/repos/portabilis/i-educar/pulls/292/comments","review_comment_url":"https://api.github.com/repos/portabilis/i-educar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/portabilis/i-educar/issues/292/comments","statuses_url":"https://api.github.com/repos/portabilis/i-educar/statuses/5167ec1b9d9a4cdf4d298b6f9f0c88a487f2f0b8","head":{"label":"mytdt:master","ref":"master","sha":"5167ec1b9d9a4cdf4d298b6f9f0c88a487f2f0b8","user":{"login":"mytdt","id":6342248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNDIyNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6342248?v=4","gravatar_id":"","url":"https://api.github.com/users/mytdt","html_url":"https://github.com/mytdt","followers_url":"https://api.github.com/users/mytdt/followers","following_url":"https://api.github.com/users/mytdt/following{/other_user}","gists_url":"https://api.github.com/users/mytdt/gists{/gist_id}","starred_url":"https://api.github.com/users/mytdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mytdt/subscriptions","organizations_url":"https://api.github.com/users/mytdt/orgs","repos_url":"https://api.github.com/users/mytdt/repos","events_url":"https://api.github.com/users/mytdt/events{/privacy}","received_events_url":"https://api.github.com/users/mytdt/received_events","type":"Organization","site_admin":false},"repo":{"id":139433620,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MzM2MjA=","name":"i-educar","full_name":"mytdt/i-educar","owner":{"login":"mytdt","id":6342248,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNDIyNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6342248?v=4","gravatar_id":"","url":"https://api.github.com/users/mytdt","html_url":"https://github.com/mytdt","followers_url":"https://api.github.com/users/mytdt/followers","following_url":"https://api.github.com/users/mytdt/following{/other_user}","gists_url":"https://api.github.com/users/mytdt/gists{/gist_id}","starred_url":"https://api.github.com/users/mytdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mytdt/subscriptions","organizations_url":"https://api.github.com/users/mytdt/orgs","repos_url":"https://api.github.com/users/mytdt/repos","events_url":"https://api.github.com/users/mytdt/events{/privacy}","received_events_url":"https://api.github.com/users/mytdt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mytdt/i-educar","description":"Lançando o maior software livre educacional do Brasil!","fork":true,"url":"https://api.github.com/repos/mytdt/i-educar","forks_url":"https://api.github.com/repos/mytdt/i-educar/forks","keys_url":"https://api.github.com/repos/mytdt/i-educar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mytdt/i-educar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mytdt/i-educar/teams","hooks_url":"https://api.github.com/repos/mytdt/i-educar/hooks","issue_events_url":"https://api.github.com/repos/mytdt/i-educar/issues/events{/number}","events_url":"https://api.github.com/repos/mytdt/i-educar/events","assignees_url":"https://api.github.com/repos/mytdt/i-educar/assignees{/user}","branches_url":"https://api.github.com/repos/mytdt/i-educar/branches{/branch}","tags_url":"https://api.github.com/repos/mytdt/i-educar/tags","blobs_url":"https://api.github.com/repos/mytdt/i-educar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mytdt/i-educar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mytdt/i-educar/git/refs{/sha}","trees_url":"https://api.github.com/repos/mytdt/i-educar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mytdt/i-educar/statuses/{sha}","languages_url":"https://api.github.com/repos/mytdt/i-educar/languages","stargazers_url":"https://api.github.com/repos/mytdt/i-educar/stargazers","contributors_url":"https://api.github.com/repos/mytdt/i-educar/contributors","subscribers_url":"https://api.github.com/repos/mytdt/i-educar/subscribers","subscription_url":"https://api.github.com/repos/mytdt/i-educar/subscription","commits_url":"https://api.github.com/repos/mytdt/i-educar/commits{/sha}","git_commits_url":"https://api.github.com/repos/mytdt/i-educar/git/commits{/sha}","comments_url":"https://api.github.com/repos/mytdt/i-educar/comments{/number}","issue_comment_url":"https://api.github.com/repos/mytdt/i-educar/issues/comments{/number}","contents_url":"https://api.github.com/repos/mytdt/i-educar/contents/{+path}","compare_url":"https://api.github.com/repos/mytdt/i-educar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mytdt/i-educar/merges","archive_url":"https://api.github.com/repos/mytdt/i-educar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mytdt/i-educar/downloads","issues_url":"https://api.github.com/repos/mytdt/i-educar/issues{/number}","pulls_url":"https://api.github.com/repos/mytdt/i-educar/pulls{/number}","milestones_url":"https://api.github.com/repos/mytdt/i-educar/milestones{/number}","notifications_url":"https://api.github.com/repos/mytdt/i-educar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mytdt/i-educar/labels{/name}","releases_url":"https://api.github.com/repos/mytdt/i-educar/releases{/id}","deployments_url":"https://api.github.com/repos/mytdt/i-educar/deployments","created_at":"2018-07-02T11:22:17Z","updated_at":"2018-07-02T12:31:51Z","pushed_at":"2018-07-02T12:31:50Z","git_url":"git://github.com/mytdt/i-educar.git","ssh_url":"git@github.com:mytdt/i-educar.git","clone_url":"https://github.com/mytdt/i-educar.git","svn_url":"https://github.com/mytdt/i-educar","homepage":"","size":102985,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"portabilis:master","ref":"master","sha":"ebee2ea6735162d2776faa6693afa955f3ddc450","user":{"login":"portabilis","id":721282,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMTI4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/721282?v=4","gravatar_id":"","url":"https://api.github.com/users/portabilis","html_url":"https://github.com/portabilis","followers_url":"https://api.github.com/users/portabilis/followers","following_url":"https://api.github.com/users/portabilis/following{/other_user}","gists_url":"https://api.github.com/users/portabilis/gists{/gist_id}","starred_url":"https://api.github.com/users/portabilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portabilis/subscriptions","organizations_url":"https://api.github.com/users/portabilis/orgs","repos_url":"https://api.github.com/users/portabilis/repos","events_url":"https://api.github.com/users/portabilis/events{/privacy}","received_events_url":"https://api.github.com/users/portabilis/received_events","type":"Organization","site_admin":false},"repo":{"id":7943685,"node_id":"MDEwOlJlcG9zaXRvcnk3OTQzNjg1","name":"i-educar","full_name":"portabilis/i-educar","owner":{"login":"portabilis","id":721282,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMTI4Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/721282?v=4","gravatar_id":"","url":"https://api.github.com/users/portabilis","html_url":"https://github.com/portabilis","followers_url":"https://api.github.com/users/portabilis/followers","following_url":"https://api.github.com/users/portabilis/following{/other_user}","gists_url":"https://api.github.com/users/portabilis/gists{/gist_id}","starred_url":"https://api.github.com/users/portabilis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portabilis/subscriptions","organizations_url":"https://api.github.com/users/portabilis/orgs","repos_url":"https://api.github.com/users/portabilis/repos","events_url":"https://api.github.com/users/portabilis/events{/privacy}","received_events_url":"https://api.github.com/users/portabilis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/portabilis/i-educar","description":"Lançando o maior software livre educacional do Brasil!","fork":false,"url":"https://api.github.com/repos/portabilis/i-educar","forks_url":"https://api.github.com/repos/portabilis/i-educar/forks","keys_url":"https://api.github.com/repos/portabilis/i-educar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/portabilis/i-educar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/portabilis/i-educar/teams","hooks_url":"https://api.github.com/repos/portabilis/i-educar/hooks","issue_events_url":"https://api.github.com/repos/portabilis/i-educar/issues/events{/number}","events_url":"https://api.github.com/repos/portabilis/i-educar/events","assignees_url":"https://api.github.com/repos/portabilis/i-educar/assignees{/user}","branches_url":"https://api.github.com/repos/portabilis/i-educar/branches{/branch}","tags_url":"https://api.github.com/repos/portabilis/i-educar/tags","blobs_url":"https://api.github.com/repos/portabilis/i-educar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/portabilis/i-educar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/portabilis/i-educar/git/refs{/sha}","trees_url":"https://api.github.com/repos/portabilis/i-educar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/portabilis/i-educar/statuses/{sha}","languages_url":"https://api.github.com/repos/portabilis/i-educar/languages","stargazers_url":"https://api.github.com/repos/portabilis/i-educar/stargazers","contributors_url":"https://api.github.com/repos/portabilis/i-educar/contributors","subscribers_url":"https://api.github.com/repos/portabilis/i-educar/subscribers","subscription_url":"https://api.github.com/repos/portabilis/i-educar/subscription","commits_url":"https://api.github.com/repos/portabilis/i-educar/commits{/sha}","git_commits_url":"https://api.github.com/repos/portabilis/i-educar/git/commits{/sha}","comments_url":"https://api.github.com/repos/portabilis/i-educar/comments{/number}","issue_comment_url":"https://api.github.com/repos/portabilis/i-educar/issues/comments{/number}","contents_url":"https://api.github.com/repos/portabilis/i-educar/contents/{+path}","compare_url":"https://api.github.com/repos/portabilis/i-educar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/portabilis/i-educar/merges","archive_url":"https://api.github.com/repos/portabilis/i-educar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/portabilis/i-educar/downloads","issues_url":"https://api.github.com/repos/portabilis/i-educar/issues{/number}","pulls_url":"https://api.github.com/repos/portabilis/i-educar/pulls{/number}","milestones_url":"https://api.github.com/repos/portabilis/i-educar/milestones{/number}","notifications_url":"https://api.github.com/repos/portabilis/i-educar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/portabilis/i-educar/labels{/name}","releases_url":"https://api.github.com/repos/portabilis/i-educar/releases{/id}","deployments_url":"https://api.github.com/repos/portabilis/i-educar/deployments","created_at":"2013-01-31T19:25:31Z","updated_at":"2018-07-03T05:50:41Z","pushed_at":"2018-07-03T12:17:55Z","git_url":"git://github.com/portabilis/i-educar.git","ssh_url":"git@github.com:portabilis/i-educar.git","clone_url":"https://github.com/portabilis/i-educar.git","svn_url":"https://github.com/portabilis/i-educar","homepage":"","size":102999,"stargazers_count":67,"watchers_count":67,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":295,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":295,"open_issues":32,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/292"},"html":{"href":"https://github.com/portabilis/i-educar/pull/292"},"issue":{"href":"https://api.github.com/repos/portabilis/i-educar/issues/292"},"comments":{"href":"https://api.github.com/repos/portabilis/i-educar/issues/292/comments"},"review_comments":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/292/comments"},"review_comment":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/portabilis/i-educar/pulls/292/commits"},"statuses":{"href":"https://api.github.com/repos/portabilis/i-educar/statuses/5167ec1b9d9a4cdf4d298b6f9f0c88a487f2f0b8"}},"author_association":"NONE"}}
{"actor":{"display_login":"Bonot"}}