{"action":"created","comment":{"url":"https://api.github.com/repos/xparse/ElementFinder/pulls/comments/172487803","pull_request_review_id":101509219,"id":172487803,"diff_hunk":"@@ -151,19 +158,20 @@ public function __toString()\n      * ```\n      *\n      * @param string $expression\n-     * @return $this\n+     * @return ElementFinder\n      */\n-    final public function remove($expression)\n+    final public function remove($expression): ElementFinder\n     {\n-        $items = $this->query($expression);\n+        $dom = clone $this;\n+        $items = $dom->query($expression);\n         foreach ($items as $key => $node) {\n             if ($node instanceof \\DOMAttr) {\n                 $node->ownerElement->removeAttribute($node->name);\n-            } else {\n-                $node->parentNode->removeChild($node);\n+                continue;","path":"src/ElementFinder.php","position":32,"original_position":32,"commit_id":"479818b6a4ffd0ec6e4e171758f894a420aeac70","original_commit_id":"479818b6a4ffd0ec6e4e171758f894a420aeac70","user":{"login":"funivan","id":425208,"avatar_url":"https://avatars3.githubusercontent.com/u/425208?v=4","gravatar_id":"","url":"https://api.github.com/users/funivan","html_url":"https://github.com/funivan","followers_url":"https://api.github.com/users/funivan/followers","following_url":"https://api.github.com/users/funivan/following{/other_user}","gists_url":"https://api.github.com/users/funivan/gists{/gist_id}","starred_url":"https://api.github.com/users/funivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funivan/subscriptions","organizations_url":"https://api.github.com/users/funivan/orgs","repos_url":"https://api.github.com/users/funivan/repos","events_url":"https://api.github.com/users/funivan/events{/privacy}","received_events_url":"https://api.github.com/users/funivan/received_events","type":"User","site_admin":false},"body":"make else branch ","created_at":"2018-03-06T11:30:15Z","updated_at":"2018-03-06T11:30:32Z","html_url":"https://github.com/xparse/ElementFinder/pull/103#discussion_r172487803","pull_request_url":"https://api.github.com/repos/xparse/ElementFinder/pulls/103","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/xparse/ElementFinder/pulls/comments/172487803"},"html":{"href":"https://github.com/xparse/ElementFinder/pull/103#discussion_r172487803"},"pull_request":{"href":"https://api.github.com/repos/xparse/ElementFinder/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/xparse/ElementFinder/pulls/103","id":173101207,"html_url":"https://github.com/xparse/ElementFinder/pull/103","diff_url":"https://github.com/xparse/ElementFinder/pull/103.diff","patch_url":"https://github.com/xparse/ElementFinder/pull/103.patch","issue_url":"https://api.github.com/repos/xparse/ElementFinder/issues/103","number":103,"state":"open","locked":false,"title":"#84 refactor remove method","user":{"login":"komendant-dev","id":23610816,"avatar_url":"https://avatars0.githubusercontent.com/u/23610816?v=4","gravatar_id":"","url":"https://api.github.com/users/komendant-dev","html_url":"https://github.com/komendant-dev","followers_url":"https://api.github.com/users/komendant-dev/followers","following_url":"https://api.github.com/users/komendant-dev/following{/other_user}","gists_url":"https://api.github.com/users/komendant-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/komendant-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komendant-dev/subscriptions","organizations_url":"https://api.github.com/users/komendant-dev/orgs","repos_url":"https://api.github.com/users/komendant-dev/repos","events_url":"https://api.github.com/users/komendant-dev/events{/privacy}","received_events_url":"https://api.github.com/users/komendant-dev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-06T09:30:36Z","updated_at":"2018-03-06T11:30:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4af8d4e42961ff9c8797df3efa01ca8ab28e3bd2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xparse/ElementFinder/pulls/103/commits","review_comments_url":"https://api.github.com/repos/xparse/ElementFinder/pulls/103/comments","review_comment_url":"https://api.github.com/repos/xparse/ElementFinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xparse/ElementFinder/issues/103/comments","statuses_url":"https://api.github.com/repos/xparse/ElementFinder/statuses/479818b6a4ffd0ec6e4e171758f894a420aeac70","head":{"label":"komendant-dev:#84-refactor_remove_method","ref":"#84-refactor_remove_method","sha":"479818b6a4ffd0ec6e4e171758f894a420aeac70","user":{"login":"komendant-dev","id":23610816,"avatar_url":"https://avatars0.githubusercontent.com/u/23610816?v=4","gravatar_id":"","url":"https://api.github.com/users/komendant-dev","html_url":"https://github.com/komendant-dev","followers_url":"https://api.github.com/users/komendant-dev/followers","following_url":"https://api.github.com/users/komendant-dev/following{/other_user}","gists_url":"https://api.github.com/users/komendant-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/komendant-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komendant-dev/subscriptions","organizations_url":"https://api.github.com/users/komendant-dev/orgs","repos_url":"https://api.github.com/users/komendant-dev/repos","events_url":"https://api.github.com/users/komendant-dev/events{/privacy}","received_events_url":"https://api.github.com/users/komendant-dev/received_events","type":"User","site_admin":false},"repo":{"id":123586894,"name":"ElementFinder","full_name":"komendant-dev/ElementFinder","owner":{"login":"komendant-dev","id":23610816,"avatar_url":"https://avatars0.githubusercontent.com/u/23610816?v=4","gravatar_id":"","url":"https://api.github.com/users/komendant-dev","html_url":"https://github.com/komendant-dev","followers_url":"https://api.github.com/users/komendant-dev/followers","following_url":"https://api.github.com/users/komendant-dev/following{/other_user}","gists_url":"https://api.github.com/users/komendant-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/komendant-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komendant-dev/subscriptions","organizations_url":"https://api.github.com/users/komendant-dev/orgs","repos_url":"https://api.github.com/users/komendant-dev/repos","events_url":"https://api.github.com/users/komendant-dev/events{/privacy}","received_events_url":"https://api.github.com/users/komendant-dev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/komendant-dev/ElementFinder","description":"Fetch data from HTML and XML via xpath/css and prepare it with regexp","fork":true,"url":"https://api.github.com/repos/komendant-dev/ElementFinder","forks_url":"https://api.github.com/repos/komendant-dev/ElementFinder/forks","keys_url":"https://api.github.com/repos/komendant-dev/ElementFinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/komendant-dev/ElementFinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/komendant-dev/ElementFinder/teams","hooks_url":"https://api.github.com/repos/komendant-dev/ElementFinder/hooks","issue_events_url":"https://api.github.com/repos/komendant-dev/ElementFinder/issues/events{/number}","events_url":"https://api.github.com/repos/komendant-dev/ElementFinder/events","assignees_url":"https://api.github.com/repos/komendant-dev/ElementFinder/assignees{/user}","branches_url":"https://api.github.com/repos/komendant-dev/ElementFinder/branches{/branch}","tags_url":"https://api.github.com/repos/komendant-dev/ElementFinder/tags","blobs_url":"https://api.github.com/repos/komendant-dev/ElementFinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/komendant-dev/ElementFinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/komendant-dev/ElementFinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/komendant-dev/ElementFinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/komendant-dev/ElementFinder/statuses/{sha}","languages_url":"https://api.github.com/repos/komendant-dev/ElementFinder/languages","stargazers_url":"https://api.github.com/repos/komendant-dev/ElementFinder/stargazers","contributors_url":"https://api.github.com/repos/komendant-dev/ElementFinder/contributors","subscribers_url":"https://api.github.com/repos/komendant-dev/ElementFinder/subscribers","subscription_url":"https://api.github.com/repos/komendant-dev/ElementFinder/subscription","commits_url":"https://api.github.com/repos/komendant-dev/ElementFinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/komendant-dev/ElementFinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/komendant-dev/ElementFinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/komendant-dev/ElementFinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/komendant-dev/ElementFinder/contents/{+path}","compare_url":"https://api.github.com/repos/komendant-dev/ElementFinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/komendant-dev/ElementFinder/merges","archive_url":"https://api.github.com/repos/komendant-dev/ElementFinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/komendant-dev/ElementFinder/downloads","issues_url":"https://api.github.com/repos/komendant-dev/ElementFinder/issues{/number}","pulls_url":"https://api.github.com/repos/komendant-dev/ElementFinder/pulls{/number}","milestones_url":"https://api.github.com/repos/komendant-dev/ElementFinder/milestones{/number}","notifications_url":"https://api.github.com/repos/komendant-dev/ElementFinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/komendant-dev/ElementFinder/labels{/name}","releases_url":"https://api.github.com/repos/komendant-dev/ElementFinder/releases{/id}","deployments_url":"https://api.github.com/repos/komendant-dev/ElementFinder/deployments","created_at":"2018-03-02T14:09:32Z","updated_at":"2018-03-02T14:09:34Z","pushed_at":"2018-03-06T09:27:20Z","git_url":"git://github.com/komendant-dev/ElementFinder.git","ssh_url":"git@github.com:komendant-dev/ElementFinder.git","clone_url":"https://github.com/komendant-dev/ElementFinder.git","svn_url":"https://github.com/komendant-dev/ElementFinder","homepage":"","size":265,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xparse:master","ref":"master","sha":"bcbc9032746bba2fd1c050bc632aab3daac73a77","user":{"login":"xparse","id":10084893,"avatar_url":"https://avatars2.githubusercontent.com/u/10084893?v=4","gravatar_id":"","url":"https://api.github.com/users/xparse","html_url":"https://github.com/xparse","followers_url":"https://api.github.com/users/xparse/followers","following_url":"https://api.github.com/users/xparse/following{/other_user}","gists_url":"https://api.github.com/users/xparse/gists{/gist_id}","starred_url":"https://api.github.com/users/xparse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xparse/subscriptions","organizations_url":"https://api.github.com/users/xparse/orgs","repos_url":"https://api.github.com/users/xparse/repos","events_url":"https://api.github.com/users/xparse/events{/privacy}","received_events_url":"https://api.github.com/users/xparse/received_events","type":"Organization","site_admin":false},"repo":{"id":27919228,"name":"ElementFinder","full_name":"xparse/ElementFinder","owner":{"login":"xparse","id":10084893,"avatar_url":"https://avatars2.githubusercontent.com/u/10084893?v=4","gravatar_id":"","url":"https://api.github.com/users/xparse","html_url":"https://github.com/xparse","followers_url":"https://api.github.com/users/xparse/followers","following_url":"https://api.github.com/users/xparse/following{/other_user}","gists_url":"https://api.github.com/users/xparse/gists{/gist_id}","starred_url":"https://api.github.com/users/xparse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xparse/subscriptions","organizations_url":"https://api.github.com/users/xparse/orgs","repos_url":"https://api.github.com/users/xparse/repos","events_url":"https://api.github.com/users/xparse/events{/privacy}","received_events_url":"https://api.github.com/users/xparse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xparse/ElementFinder","description":"Fetch data from HTML and XML via xpath/css and prepare it with regexp","fork":false,"url":"https://api.github.com/repos/xparse/ElementFinder","forks_url":"https://api.github.com/repos/xparse/ElementFinder/forks","keys_url":"https://api.github.com/repos/xparse/ElementFinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xparse/ElementFinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xparse/ElementFinder/teams","hooks_url":"https://api.github.com/repos/xparse/ElementFinder/hooks","issue_events_url":"https://api.github.com/repos/xparse/ElementFinder/issues/events{/number}","events_url":"https://api.github.com/repos/xparse/ElementFinder/events","assignees_url":"https://api.github.com/repos/xparse/ElementFinder/assignees{/user}","branches_url":"https://api.github.com/repos/xparse/ElementFinder/branches{/branch}","tags_url":"https://api.github.com/repos/xparse/ElementFinder/tags","blobs_url":"https://api.github.com/repos/xparse/ElementFinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xparse/ElementFinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xparse/ElementFinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/xparse/ElementFinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xparse/ElementFinder/statuses/{sha}","languages_url":"https://api.github.com/repos/xparse/ElementFinder/languages","stargazers_url":"https://api.github.com/repos/xparse/ElementFinder/stargazers","contributors_url":"https://api.github.com/repos/xparse/ElementFinder/contributors","subscribers_url":"https://api.github.com/repos/xparse/ElementFinder/subscribers","subscription_url":"https://api.github.com/repos/xparse/ElementFinder/subscription","commits_url":"https://api.github.com/repos/xparse/ElementFinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/xparse/ElementFinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/xparse/ElementFinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/xparse/ElementFinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/xparse/ElementFinder/contents/{+path}","compare_url":"https://api.github.com/repos/xparse/ElementFinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xparse/ElementFinder/merges","archive_url":"https://api.github.com/repos/xparse/ElementFinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xparse/ElementFinder/downloads","issues_url":"https://api.github.com/repos/xparse/ElementFinder/issues{/number}","pulls_url":"https://api.github.com/repos/xparse/ElementFinder/pulls{/number}","milestones_url":"https://api.github.com/repos/xparse/ElementFinder/milestones{/number}","notifications_url":"https://api.github.com/repos/xparse/ElementFinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xparse/ElementFinder/labels{/name}","releases_url":"https://api.github.com/repos/xparse/ElementFinder/releases{/id}","deployments_url":"https://api.github.com/repos/xparse/ElementFinder/deployments","created_at":"2014-12-12T12:17:49Z","updated_at":"2018-02-21T19:33:38Z","pushed_at":"2018-03-06T09:30:37Z","git_url":"git://github.com/xparse/ElementFinder.git","ssh_url":"git@github.com:xparse/ElementFinder.git","clone_url":"https://github.com/xparse/ElementFinder.git","svn_url":"https://github.com/xparse/ElementFinder","homepage":"","size":257,"stargazers_count":16,"watchers_count":16,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":7,"open_issues":10,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xparse/ElementFinder/pulls/103"},"html":{"href":"https://github.com/xparse/ElementFinder/pull/103"},"issue":{"href":"https://api.github.com/repos/xparse/ElementFinder/issues/103"},"comments":{"href":"https://api.github.com/repos/xparse/ElementFinder/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/xparse/ElementFinder/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/xparse/ElementFinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xparse/ElementFinder/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/xparse/ElementFinder/statuses/479818b6a4ffd0ec6e4e171758f894a420aeac70"}},"author_association":"NONE"}}
{"actor":{"display_login":"funivan"}}