{"action":"created","comment":{"url":"https://api.github.com/repos/enpitut/cynts/pulls/comments/44628756","id":44628756,"diff_hunk":"@@ -52,15 +49,70 @@ public function validationDefault(Validator $validator)\n \n         $validator\n             ->requirePresence('name', 'create')\n-            ->notEmpty('name');\n+            ->notEmpty('name', '名前を入力してください')\n+            ->add(\n+                'name',\n+                'custom',\n+                [\n+                    'rule' => function($value) {\n+                        if (strlen($value) > 100) {\n+                            return false;\n+                        }\n+                        return true;\n+                    },\n+                    'message' => '名前は100文字以下で設定してください',\n+                ]\n+            );\n \n         $validator\n             ->requirePresence('mail', 'create')\n-            ->notEmpty('mail');\n+            ->notEmpty('mail', 'メールアドレスを入力してください')\n+            ->add('mail',\n+                [\n+                    'emailValid' => [\n+                        'rule' => ['email', true],\n+                        'message' => '正しいメールアドレスを入力してください',\n+                    ],\n+                    'emailUnique' => [\n+                        'message' => 'このメールアドレスは既に登録されています',\n+                        'rule' => 'validateUnique',\n+                        'provider' => 'table',\n+                    ],\n+                    'emailCharacter' => [","path":"app/src/Model/Table/UsersTable.php","position":61,"original_position":61,"commit_id":"2aaf42bc9d58e29324bc71dd3b81fa67c04fa311","original_commit_id":"2aaf42bc9d58e29324bc71dd3b81fa67c04fa311","user":{"login":"metalunk","id":3294475,"avatar_url":"https://avatars.githubusercontent.com/u/3294475?v=3","gravatar_id":"","url":"https://api.github.com/users/metalunk","html_url":"https://github.com/metalunk","followers_url":"https://api.github.com/users/metalunk/followers","following_url":"https://api.github.com/users/metalunk/following{/other_user}","gists_url":"https://api.github.com/users/metalunk/gists{/gist_id}","starred_url":"https://api.github.com/users/metalunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metalunk/subscriptions","organizations_url":"https://api.github.com/users/metalunk/orgs","repos_url":"https://api.github.com/users/metalunk/repos","events_url":"https://api.github.com/users/metalunk/events{/privacy}","received_events_url":"https://api.github.com/users/metalunk/received_events","type":"User","site_admin":false},"body":"いやいや、だから emailValid で rule : email してくれてるじゃんｗｗｗ","created_at":"2015-11-12T07:47:47Z","updated_at":"2015-11-12T07:47:47Z","html_url":"https://github.com/enpitut/cynts/pull/71#discussion_r44628756","pull_request_url":"https://api.github.com/repos/enpitut/cynts/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/enpitut/cynts/pulls/comments/44628756"},"html":{"href":"https://github.com/enpitut/cynts/pull/71#discussion_r44628756"},"pull_request":{"href":"https://api.github.com/repos/enpitut/cynts/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/enpitut/cynts/pulls/71","id":47159638,"html_url":"https://github.com/enpitut/cynts/pull/71","diff_url":"https://github.com/enpitut/cynts/pull/71.diff","patch_url":"https://github.com/enpitut/cynts/pull/71.patch","issue_url":"https://api.github.com/repos/enpitut/cynts/issues/71","number":71,"state":"open","locked":false,"title":"Make sign up view","user":{"login":"chiesuzuki","id":13166700,"avatar_url":"https://avatars.githubusercontent.com/u/13166700?v=3","gravatar_id":"","url":"https://api.github.com/users/chiesuzuki","html_url":"https://github.com/chiesuzuki","followers_url":"https://api.github.com/users/chiesuzuki/followers","following_url":"https://api.github.com/users/chiesuzuki/following{/other_user}","gists_url":"https://api.github.com/users/chiesuzuki/gists{/gist_id}","starred_url":"https://api.github.com/users/chiesuzuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiesuzuki/subscriptions","organizations_url":"https://api.github.com/users/chiesuzuki/orgs","repos_url":"https://api.github.com/users/chiesuzuki/repos","events_url":"https://api.github.com/users/chiesuzuki/events{/privacy}","received_events_url":"https://api.github.com/users/chiesuzuki/received_events","type":"User","site_admin":false},"body":"綺麗になったか怪しいけど、いまこんな感じです、、","created_at":"2015-10-08T14:29:00Z","updated_at":"2015-11-12T07:47:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"373accc34004f13e5ec6c80d78d44039b99b9c84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enpitut/cynts/pulls/71/commits","review_comments_url":"https://api.github.com/repos/enpitut/cynts/pulls/71/comments","review_comment_url":"https://api.github.com/repos/enpitut/cynts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enpitut/cynts/issues/71/comments","statuses_url":"https://api.github.com/repos/enpitut/cynts/statuses/2aaf42bc9d58e29324bc71dd3b81fa67c04fa311","head":{"label":"enpitut:feature/signup","ref":"feature/signup","sha":"2aaf42bc9d58e29324bc71dd3b81fa67c04fa311","user":{"login":"enpitut","id":13328709,"avatar_url":"https://avatars.githubusercontent.com/u/13328709?v=3","gravatar_id":"","url":"https://api.github.com/users/enpitut","html_url":"https://github.com/enpitut","followers_url":"https://api.github.com/users/enpitut/followers","following_url":"https://api.github.com/users/enpitut/following{/other_user}","gists_url":"https://api.github.com/users/enpitut/gists{/gist_id}","starred_url":"https://api.github.com/users/enpitut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enpitut/subscriptions","organizations_url":"https://api.github.com/users/enpitut/orgs","repos_url":"https://api.github.com/users/enpitut/repos","events_url":"https://api.github.com/users/enpitut/events{/privacy}","received_events_url":"https://api.github.com/users/enpitut/received_events","type":"Organization","site_admin":false},"repo":{"id":40951173,"name":"cynts","full_name":"enpitut/cynts","owner":{"login":"enpitut","id":13328709,"avatar_url":"https://avatars.githubusercontent.com/u/13328709?v=3","gravatar_id":"","url":"https://api.github.com/users/enpitut","html_url":"https://github.com/enpitut","followers_url":"https://api.github.com/users/enpitut/followers","following_url":"https://api.github.com/users/enpitut/following{/other_user}","gists_url":"https://api.github.com/users/enpitut/gists{/gist_id}","starred_url":"https://api.github.com/users/enpitut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enpitut/subscriptions","organizations_url":"https://api.github.com/users/enpitut/orgs","repos_url":"https://api.github.com/users/enpitut/repos","events_url":"https://api.github.com/users/enpitut/events{/privacy}","received_events_url":"https://api.github.com/users/enpitut/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enpitut/cynts","description":"App of CYNTS","fork":false,"url":"https://api.github.com/repos/enpitut/cynts","forks_url":"https://api.github.com/repos/enpitut/cynts/forks","keys_url":"https://api.github.com/repos/enpitut/cynts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enpitut/cynts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enpitut/cynts/teams","hooks_url":"https://api.github.com/repos/enpitut/cynts/hooks","issue_events_url":"https://api.github.com/repos/enpitut/cynts/issues/events{/number}","events_url":"https://api.github.com/repos/enpitut/cynts/events","assignees_url":"https://api.github.com/repos/enpitut/cynts/assignees{/user}","branches_url":"https://api.github.com/repos/enpitut/cynts/branches{/branch}","tags_url":"https://api.github.com/repos/enpitut/cynts/tags","blobs_url":"https://api.github.com/repos/enpitut/cynts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enpitut/cynts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enpitut/cynts/git/refs{/sha}","trees_url":"https://api.github.com/repos/enpitut/cynts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enpitut/cynts/statuses/{sha}","languages_url":"https://api.github.com/repos/enpitut/cynts/languages","stargazers_url":"https://api.github.com/repos/enpitut/cynts/stargazers","contributors_url":"https://api.github.com/repos/enpitut/cynts/contributors","subscribers_url":"https://api.github.com/repos/enpitut/cynts/subscribers","subscription_url":"https://api.github.com/repos/enpitut/cynts/subscription","commits_url":"https://api.github.com/repos/enpitut/cynts/commits{/sha}","git_commits_url":"https://api.github.com/repos/enpitut/cynts/git/commits{/sha}","comments_url":"https://api.github.com/repos/enpitut/cynts/comments{/number}","issue_comment_url":"https://api.github.com/repos/enpitut/cynts/issues/comments{/number}","contents_url":"https://api.github.com/repos/enpitut/cynts/contents/{+path}","compare_url":"https://api.github.com/repos/enpitut/cynts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enpitut/cynts/merges","archive_url":"https://api.github.com/repos/enpitut/cynts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enpitut/cynts/downloads","issues_url":"https://api.github.com/repos/enpitut/cynts/issues{/number}","pulls_url":"https://api.github.com/repos/enpitut/cynts/pulls{/number}","milestones_url":"https://api.github.com/repos/enpitut/cynts/milestones{/number}","notifications_url":"https://api.github.com/repos/enpitut/cynts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enpitut/cynts/labels{/name}","releases_url":"https://api.github.com/repos/enpitut/cynts/releases{/id}","created_at":"2015-08-18T04:43:52Z","updated_at":"2015-10-02T05:31:22Z","pushed_at":"2015-11-12T06:53:41Z","git_url":"git://github.com/enpitut/cynts.git","ssh_url":"git@github.com:enpitut/cynts.git","clone_url":"https://github.com/enpitut/cynts.git","svn_url":"https://github.com/enpitut/cynts","homepage":null,"size":11682,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":3,"default_branch":"develop"}},"base":{"label":"enpitut:develop","ref":"develop","sha":"fef801a45889b2137858855456dd52ef3c7a0049","user":{"login":"enpitut","id":13328709,"avatar_url":"https://avatars.githubusercontent.com/u/13328709?v=3","gravatar_id":"","url":"https://api.github.com/users/enpitut","html_url":"https://github.com/enpitut","followers_url":"https://api.github.com/users/enpitut/followers","following_url":"https://api.github.com/users/enpitut/following{/other_user}","gists_url":"https://api.github.com/users/enpitut/gists{/gist_id}","starred_url":"https://api.github.com/users/enpitut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enpitut/subscriptions","organizations_url":"https://api.github.com/users/enpitut/orgs","repos_url":"https://api.github.com/users/enpitut/repos","events_url":"https://api.github.com/users/enpitut/events{/privacy}","received_events_url":"https://api.github.com/users/enpitut/received_events","type":"Organization","site_admin":false},"repo":{"id":40951173,"name":"cynts","full_name":"enpitut/cynts","owner":{"login":"enpitut","id":13328709,"avatar_url":"https://avatars.githubusercontent.com/u/13328709?v=3","gravatar_id":"","url":"https://api.github.com/users/enpitut","html_url":"https://github.com/enpitut","followers_url":"https://api.github.com/users/enpitut/followers","following_url":"https://api.github.com/users/enpitut/following{/other_user}","gists_url":"https://api.github.com/users/enpitut/gists{/gist_id}","starred_url":"https://api.github.com/users/enpitut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enpitut/subscriptions","organizations_url":"https://api.github.com/users/enpitut/orgs","repos_url":"https://api.github.com/users/enpitut/repos","events_url":"https://api.github.com/users/enpitut/events{/privacy}","received_events_url":"https://api.github.com/users/enpitut/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enpitut/cynts","description":"App of CYNTS","fork":false,"url":"https://api.github.com/repos/enpitut/cynts","forks_url":"https://api.github.com/repos/enpitut/cynts/forks","keys_url":"https://api.github.com/repos/enpitut/cynts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enpitut/cynts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enpitut/cynts/teams","hooks_url":"https://api.github.com/repos/enpitut/cynts/hooks","issue_events_url":"https://api.github.com/repos/enpitut/cynts/issues/events{/number}","events_url":"https://api.github.com/repos/enpitut/cynts/events","assignees_url":"https://api.github.com/repos/enpitut/cynts/assignees{/user}","branches_url":"https://api.github.com/repos/enpitut/cynts/branches{/branch}","tags_url":"https://api.github.com/repos/enpitut/cynts/tags","blobs_url":"https://api.github.com/repos/enpitut/cynts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enpitut/cynts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enpitut/cynts/git/refs{/sha}","trees_url":"https://api.github.com/repos/enpitut/cynts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enpitut/cynts/statuses/{sha}","languages_url":"https://api.github.com/repos/enpitut/cynts/languages","stargazers_url":"https://api.github.com/repos/enpitut/cynts/stargazers","contributors_url":"https://api.github.com/repos/enpitut/cynts/contributors","subscribers_url":"https://api.github.com/repos/enpitut/cynts/subscribers","subscription_url":"https://api.github.com/repos/enpitut/cynts/subscription","commits_url":"https://api.github.com/repos/enpitut/cynts/commits{/sha}","git_commits_url":"https://api.github.com/repos/enpitut/cynts/git/commits{/sha}","comments_url":"https://api.github.com/repos/enpitut/cynts/comments{/number}","issue_comment_url":"https://api.github.com/repos/enpitut/cynts/issues/comments{/number}","contents_url":"https://api.github.com/repos/enpitut/cynts/contents/{+path}","compare_url":"https://api.github.com/repos/enpitut/cynts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enpitut/cynts/merges","archive_url":"https://api.github.com/repos/enpitut/cynts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enpitut/cynts/downloads","issues_url":"https://api.github.com/repos/enpitut/cynts/issues{/number}","pulls_url":"https://api.github.com/repos/enpitut/cynts/pulls{/number}","milestones_url":"https://api.github.com/repos/enpitut/cynts/milestones{/number}","notifications_url":"https://api.github.com/repos/enpitut/cynts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enpitut/cynts/labels{/name}","releases_url":"https://api.github.com/repos/enpitut/cynts/releases{/id}","created_at":"2015-08-18T04:43:52Z","updated_at":"2015-10-02T05:31:22Z","pushed_at":"2015-11-12T06:53:41Z","git_url":"git://github.com/enpitut/cynts.git","ssh_url":"git@github.com:enpitut/cynts.git","clone_url":"https://github.com/enpitut/cynts.git","svn_url":"https://github.com/enpitut/cynts","homepage":null,"size":11682,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/enpitut/cynts/pulls/71"},"html":{"href":"https://github.com/enpitut/cynts/pull/71"},"issue":{"href":"https://api.github.com/repos/enpitut/cynts/issues/71"},"comments":{"href":"https://api.github.com/repos/enpitut/cynts/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/enpitut/cynts/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/enpitut/cynts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enpitut/cynts/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/enpitut/cynts/statuses/2aaf42bc9d58e29324bc71dd3b81fa67c04fa311"}}}}