{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/31718962","id":31718962,"diff_hunk":"@@ -92,21 +93,23 @@ if ($type === 'success') {\n     Html::addCssClass($options, ['btn-success', 'btn-lg']);\n }\n \n-echo Html::tag('div', 'Save', $options); // renders `class=\"btn btn-success btn-lg\"`\n+echo Html::tag('div', 'Save', $options);\n+// renders '<div class=\"btn btn-success btn-lg\">Save</div>'\n ```\n \n-`Html::addCssClass()` prevents duplicating classes, so you don't need to worry the same class may appear twice:\n+`Html::addCssClass()` prevents duplicating classes, so you don't need to worry if the same class may appear twice:","path":"docs/guide/helper-html.md","position":30,"original_position":30,"commit_id":"e638ded0961d879c1f90a76067105c03c5ed9451","original_commit_id":"e638ded0961d879c1f90a76067105c03c5ed9451","user":{"login":"softark","id":342857,"avatar_url":"https://avatars.githubusercontent.com/u/342857?v=3","gravatar_id":"","url":"https://api.github.com/users/softark","html_url":"https://github.com/softark","followers_url":"https://api.github.com/users/softark/followers","following_url":"https://api.github.com/users/softark/following{/other_user}","gists_url":"https://api.github.com/users/softark/gists{/gist_id}","starred_url":"https://api.github.com/users/softark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softark/subscriptions","organizations_url":"https://api.github.com/users/softark/orgs","repos_url":"https://api.github.com/users/softark/repos","events_url":"https://api.github.com/users/softark/events{/privacy}","received_events_url":"https://api.github.com/users/softark/received_events","type":"User","site_admin":false},"body":"'worry if ...' is almost equivalent to 'worry about the possibility that ...'.\r\nSo you don't need a comma before 'if'.","created_at":"2015-06-04T13:26:04Z","updated_at":"2015-06-04T13:26:04Z","html_url":"https://github.com/yiisoft/yii2/pull/8654#discussion_r31718962","pull_request_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8654","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/31718962"},"html":{"href":"https://github.com/yiisoft/yii2/pull/8654#discussion_r31718962"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8654"}}},"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/8654","id":36929069,"html_url":"https://github.com/yiisoft/yii2/pull/8654","diff_url":"https://github.com/yiisoft/yii2/pull/8654.diff","patch_url":"https://github.com/yiisoft/yii2/pull/8654.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8654","number":8654,"state":"open","locked":false,"title":"docs/guide/helper-html.md small fixes [ci skip]","user":{"login":"softark","id":342857,"avatar_url":"https://avatars.githubusercontent.com/u/342857?v=3","gravatar_id":"","url":"https://api.github.com/users/softark","html_url":"https://github.com/softark","followers_url":"https://api.github.com/users/softark/followers","following_url":"https://api.github.com/users/softark/following{/other_user}","gists_url":"https://api.github.com/users/softark/gists{/gist_id}","starred_url":"https://api.github.com/users/softark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softark/subscriptions","organizations_url":"https://api.github.com/users/softark/orgs","repos_url":"https://api.github.com/users/softark/repos","events_url":"https://api.github.com/users/softark/events{/privacy}","received_events_url":"https://api.github.com/users/softark/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-04T12:27:16Z","updated_at":"2015-06-04T13:26:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bbf070ef84cfe7a3c2e1aac83abe1b2edcaffd1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8654/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8654/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8654/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/e638ded0961d879c1f90a76067105c03c5ed9451","head":{"label":"yiijan:guide-helper-html","ref":"guide-helper-html","sha":"e638ded0961d879c1f90a76067105c03c5ed9451","user":{"login":"yiijan","id":9405188,"avatar_url":"https://avatars.githubusercontent.com/u/9405188?v=3","gravatar_id":"","url":"https://api.github.com/users/yiijan","html_url":"https://github.com/yiijan","followers_url":"https://api.github.com/users/yiijan/followers","following_url":"https://api.github.com/users/yiijan/following{/other_user}","gists_url":"https://api.github.com/users/yiijan/gists{/gist_id}","starred_url":"https://api.github.com/users/yiijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiijan/subscriptions","organizations_url":"https://api.github.com/users/yiijan/orgs","repos_url":"https://api.github.com/users/yiijan/repos","events_url":"https://api.github.com/users/yiijan/events{/privacy}","received_events_url":"https://api.github.com/users/yiijan/received_events","type":"Organization","site_admin":false},"repo":{"id":32861195,"name":"yii2","full_name":"yiijan/yii2","owner":{"login":"yiijan","id":9405188,"avatar_url":"https://avatars.githubusercontent.com/u/9405188?v=3","gravatar_id":"","url":"https://api.github.com/users/yiijan","html_url":"https://github.com/yiijan","followers_url":"https://api.github.com/users/yiijan/followers","following_url":"https://api.github.com/users/yiijan/following{/other_user}","gists_url":"https://api.github.com/users/yiijan/gists{/gist_id}","starred_url":"https://api.github.com/users/yiijan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiijan/subscriptions","organizations_url":"https://api.github.com/users/yiijan/orgs","repos_url":"https://api.github.com/users/yiijan/repos","events_url":"https://api.github.com/users/yiijan/events{/privacy}","received_events_url":"https://api.github.com/users/yiijan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiijan/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/yiijan/yii2","forks_url":"https://api.github.com/repos/yiijan/yii2/forks","keys_url":"https://api.github.com/repos/yiijan/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiijan/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiijan/yii2/teams","hooks_url":"https://api.github.com/repos/yiijan/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiijan/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiijan/yii2/events","assignees_url":"https://api.github.com/repos/yiijan/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiijan/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiijan/yii2/tags","blobs_url":"https://api.github.com/repos/yiijan/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiijan/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiijan/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiijan/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiijan/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiijan/yii2/languages","stargazers_url":"https://api.github.com/repos/yiijan/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiijan/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiijan/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiijan/yii2/subscription","commits_url":"https://api.github.com/repos/yiijan/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiijan/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiijan/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiijan/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiijan/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiijan/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiijan/yii2/merges","archive_url":"https://api.github.com/repos/yiijan/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiijan/yii2/downloads","issues_url":"https://api.github.com/repos/yiijan/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiijan/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiijan/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiijan/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiijan/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiijan/yii2/releases{/id}","created_at":"2015-03-25T11:48:03Z","updated_at":"2015-05-08T10:34:27Z","pushed_at":"2015-06-04T12:26:25Z","git_url":"git://github.com/yiijan/yii2.git","ssh_url":"git@github.com:yiijan/yii2.git","clone_url":"https://github.com/yiijan/yii2.git","svn_url":"https://github.com/yiijan/yii2","homepage":"http://www.yiiframework.com","size":37684,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yiisoft:master","ref":"master","sha":"27f1f7f2fddb4de6e981a332ac607fd6c6bc38cc","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2 framework main development repo","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","created_at":"2012-02-13T15:32:36Z","updated_at":"2015-06-04T11:07:28Z","pushed_at":"2015-06-04T13:00:21Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":96459,"stargazers_count":5878,"watchers_count":5878,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3304,"mirror_url":null,"open_issues_count":758,"forks":3304,"open_issues":758,"watchers":5878,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8654"},"html":{"href":"https://github.com/yiisoft/yii2/pull/8654"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/8654"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/8654/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8654/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8654/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/e638ded0961d879c1f90a76067105c03c5ed9451"}}}}