{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/54126551","id":54126551,"diff_hunk":"@@ -66,7 +66,7 @@ public function createProcessForFile($path)\n     public function createProcessForSource($source)\n     {\n         if (null === $this->temporaryFile) {\n-            $this->temporaryFile = tempnam('.', 'tmp');\n+            $this->temporaryFile = tempnam('.', 'cs_fix_tmp_');","path":"Symfony/CS/LintManager.php","position":null,"original_position":5,"commit_id":"2a3d2704709398083261b1d2cc850369d9c93555","original_commit_id":"4ddd2207d1a6e027b396567c942682c96242a5fa","user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars.githubusercontent.com/u/10462973?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"body":":+1: even beter :)","created_at":"2016-02-25T16:55:56Z","updated_at":"2016-02-25T16:55:56Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1798#discussion_r54126551","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/54126551"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1798#discussion_r54126551"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798","id":60513503,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1798","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1798.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1798.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1798","number":1798,"state":"open","locked":false,"title":"LintManager - meaningful tempnam","user":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars.githubusercontent.com/u/152236?v=3","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"body":"Killing the process manually leave the temporary file on the filesystem, as [`__destruct`](https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/1.11/Symfony/CS/LintManager.php#L31-L36) is not called.\r\n\r\nIn doubt, a meaningful name for the temporary file helps identifying them and manually getting rid of them if needed.","created_at":"2016-02-24T14:06:41Z","updated_at":"2016-02-25T16:55:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffb38eb98d848c66e7f6aae83623b3c7c48b8f3c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798/comments","review_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1798/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/2a3d2704709398083261b1d2cc850369d9c93555","head":{"label":"Slamdunk:patch-1","ref":"patch-1","sha":"2a3d2704709398083261b1d2cc850369d9c93555","user":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars.githubusercontent.com/u/152236?v=3","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"repo":{"id":26592681,"name":"PHP-CS-Fixer","full_name":"Slamdunk/PHP-CS-Fixer","owner":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars.githubusercontent.com/u/152236?v=3","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slamdunk/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":true,"url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/releases{/id}","deployments_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/deployments","created_at":"2014-11-13T14:56:30Z","updated_at":"2016-02-15T10:38:35Z","pushed_at":"2016-02-25T07:18:24Z","git_url":"git://github.com/Slamdunk/PHP-CS-Fixer.git","ssh_url":"git@github.com:Slamdunk/PHP-CS-Fixer.git","clone_url":"https://github.com/Slamdunk/PHP-CS-Fixer.git","svn_url":"https://github.com/Slamdunk/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":5074,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"FriendsOfPHP:1.11","ref":"1.11","sha":"3c7ab34f37c813d6abfdb70a58ec2a9d0f1c67b8","user":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"repo":{"id":4344257,"name":"PHP-CS-Fixer","full_name":"FriendsOfPHP/PHP-CS-Fixer","owner":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":false,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/releases{/id}","deployments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/deployments","created_at":"2012-05-16T06:42:23Z","updated_at":"2016-02-25T15:53:44Z","pushed_at":"2016-02-25T08:19:31Z","git_url":"git://github.com/FriendsOfPHP/PHP-CS-Fixer.git","ssh_url":"git@github.com:FriendsOfPHP/PHP-CS-Fixer.git","clone_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer.git","svn_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":8345,"stargazers_count":2997,"watchers_count":2997,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":464,"mirror_url":null,"open_issues_count":126,"forks":464,"open_issues":126,"watchers":2997,"default_branch":"1.12"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1798"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1798"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1798/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1798/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/2a3d2704709398083261b1d2cc850369d9c93555"}}}}