{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/mailjet/pulls/comments/32611204","id":32611204,"diff_hunk":"@@ -286,18 +281,13 @@ private function _update($contacts, $existingListId)\n                     )\n                 );\n                 \n-                $file = new SplFileObject('contacts.csv', 'w');\n                 $headers = array(\"email\",\"firstname\",\"lastname\");\n-                $file->fputcsv($headers);\n-                foreach ($contacstToAdd as $contact) {\n-                    $file->fputcsv($contact);\n+                $contstToAddCsv = '';","path":"classes/hooks/synchronization/Segment.php","position":31,"original_position":31,"commit_id":"5c45fae0edc45246319dbc0736251c31ff12f246","original_commit_id":"5c45fae0edc45246319dbc0736251c31ff12f246","user":{"login":"gaillafr","id":2244330,"avatar_url":"https://avatars.githubusercontent.com/u/2244330?v=3","gravatar_id":"","url":"https://api.github.com/users/gaillafr","html_url":"https://github.com/gaillafr","followers_url":"https://api.github.com/users/gaillafr/followers","following_url":"https://api.github.com/users/gaillafr/following{/other_user}","gists_url":"https://api.github.com/users/gaillafr/gists{/gist_id}","starred_url":"https://api.github.com/users/gaillafr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaillafr/subscriptions","organizations_url":"https://api.github.com/users/gaillafr/orgs","repos_url":"https://api.github.com/users/gaillafr/repos","events_url":"https://api.github.com/users/gaillafr/events{/privacy}","received_events_url":"https://api.github.com/users/gaillafr/received_events","type":"User","site_admin":false},"body":"Idem","created_at":"2015-06-17T09:57:34Z","updated_at":"2015-06-17T09:57:34Z","html_url":"https://github.com/PrestaShop/mailjet/pull/16#discussion_r32611204","pull_request_url":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/mailjet/pulls/comments/32611204"},"html":{"href":"https://github.com/PrestaShop/mailjet/pull/16#discussion_r32611204"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16","id":36628170,"html_url":"https://github.com/PrestaShop/mailjet/pull/16","diff_url":"https://github.com/PrestaShop/mailjet/pull/16.diff","patch_url":"https://github.com/PrestaShop/mailjet/pull/16.patch","issue_url":"https://api.github.com/repos/PrestaShop/mailjet/issues/16","number":16,"state":"open","locked":false,"title":"last changes on Mailjet Plugin","user":{"login":"FerhanGit","id":10939431,"avatar_url":"https://avatars.githubusercontent.com/u/10939431?v=3","gravatar_id":"","url":"https://api.github.com/users/FerhanGit","html_url":"https://github.com/FerhanGit","followers_url":"https://api.github.com/users/FerhanGit/followers","following_url":"https://api.github.com/users/FerhanGit/following{/other_user}","gists_url":"https://api.github.com/users/FerhanGit/gists{/gist_id}","starred_url":"https://api.github.com/users/FerhanGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FerhanGit/subscriptions","organizations_url":"https://api.github.com/users/FerhanGit/orgs","repos_url":"https://api.github.com/users/FerhanGit/repos","events_url":"https://api.github.com/users/FerhanGit/events{/privacy}","received_events_url":"https://api.github.com/users/FerhanGit/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-01T13:26:43Z","updated_at":"2015-06-17T09:57:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4e848c0c72202ba9c742cb9104af8e17af8a418","assignee":{"login":"Quetzacoalt91","id":6768917,"avatar_url":"https://avatars.githubusercontent.com/u/6768917?v=3","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/mailjet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/mailjet/issues/16/comments","statuses_url":"https://api.github.com/repos/PrestaShop/mailjet/statuses/5c45fae0edc45246319dbc0736251c31ff12f246","head":{"label":"FerhanGit:master","ref":"master","sha":"5c45fae0edc45246319dbc0736251c31ff12f246","user":{"login":"FerhanGit","id":10939431,"avatar_url":"https://avatars.githubusercontent.com/u/10939431?v=3","gravatar_id":"","url":"https://api.github.com/users/FerhanGit","html_url":"https://github.com/FerhanGit","followers_url":"https://api.github.com/users/FerhanGit/followers","following_url":"https://api.github.com/users/FerhanGit/following{/other_user}","gists_url":"https://api.github.com/users/FerhanGit/gists{/gist_id}","starred_url":"https://api.github.com/users/FerhanGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FerhanGit/subscriptions","organizations_url":"https://api.github.com/users/FerhanGit/orgs","repos_url":"https://api.github.com/users/FerhanGit/repos","events_url":"https://api.github.com/users/FerhanGit/events{/privacy}","received_events_url":"https://api.github.com/users/FerhanGit/received_events","type":"User","site_admin":false},"repo":{"id":32919077,"name":"mailjet","full_name":"FerhanGit/mailjet","owner":{"login":"FerhanGit","id":10939431,"avatar_url":"https://avatars.githubusercontent.com/u/10939431?v=3","gravatar_id":"","url":"https://api.github.com/users/FerhanGit","html_url":"https://github.com/FerhanGit","followers_url":"https://api.github.com/users/FerhanGit/followers","following_url":"https://api.github.com/users/FerhanGit/following{/other_user}","gists_url":"https://api.github.com/users/FerhanGit/gists{/gist_id}","starred_url":"https://api.github.com/users/FerhanGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FerhanGit/subscriptions","organizations_url":"https://api.github.com/users/FerhanGit/orgs","repos_url":"https://api.github.com/users/FerhanGit/repos","events_url":"https://api.github.com/users/FerhanGit/events{/privacy}","received_events_url":"https://api.github.com/users/FerhanGit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FerhanGit/mailjet","description":"","fork":true,"url":"https://api.github.com/repos/FerhanGit/mailjet","forks_url":"https://api.github.com/repos/FerhanGit/mailjet/forks","keys_url":"https://api.github.com/repos/FerhanGit/mailjet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FerhanGit/mailjet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FerhanGit/mailjet/teams","hooks_url":"https://api.github.com/repos/FerhanGit/mailjet/hooks","issue_events_url":"https://api.github.com/repos/FerhanGit/mailjet/issues/events{/number}","events_url":"https://api.github.com/repos/FerhanGit/mailjet/events","assignees_url":"https://api.github.com/repos/FerhanGit/mailjet/assignees{/user}","branches_url":"https://api.github.com/repos/FerhanGit/mailjet/branches{/branch}","tags_url":"https://api.github.com/repos/FerhanGit/mailjet/tags","blobs_url":"https://api.github.com/repos/FerhanGit/mailjet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FerhanGit/mailjet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FerhanGit/mailjet/git/refs{/sha}","trees_url":"https://api.github.com/repos/FerhanGit/mailjet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FerhanGit/mailjet/statuses/{sha}","languages_url":"https://api.github.com/repos/FerhanGit/mailjet/languages","stargazers_url":"https://api.github.com/repos/FerhanGit/mailjet/stargazers","contributors_url":"https://api.github.com/repos/FerhanGit/mailjet/contributors","subscribers_url":"https://api.github.com/repos/FerhanGit/mailjet/subscribers","subscription_url":"https://api.github.com/repos/FerhanGit/mailjet/subscription","commits_url":"https://api.github.com/repos/FerhanGit/mailjet/commits{/sha}","git_commits_url":"https://api.github.com/repos/FerhanGit/mailjet/git/commits{/sha}","comments_url":"https://api.github.com/repos/FerhanGit/mailjet/comments{/number}","issue_comment_url":"https://api.github.com/repos/FerhanGit/mailjet/issues/comments{/number}","contents_url":"https://api.github.com/repos/FerhanGit/mailjet/contents/{+path}","compare_url":"https://api.github.com/repos/FerhanGit/mailjet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FerhanGit/mailjet/merges","archive_url":"https://api.github.com/repos/FerhanGit/mailjet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FerhanGit/mailjet/downloads","issues_url":"https://api.github.com/repos/FerhanGit/mailjet/issues{/number}","pulls_url":"https://api.github.com/repos/FerhanGit/mailjet/pulls{/number}","milestones_url":"https://api.github.com/repos/FerhanGit/mailjet/milestones{/number}","notifications_url":"https://api.github.com/repos/FerhanGit/mailjet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FerhanGit/mailjet/labels{/name}","releases_url":"https://api.github.com/repos/FerhanGit/mailjet/releases{/id}","created_at":"2015-03-26T09:47:48Z","updated_at":"2015-04-30T11:37:10Z","pushed_at":"2015-06-16T14:50:56Z","git_url":"git://github.com/FerhanGit/mailjet.git","ssh_url":"git@github.com:FerhanGit/mailjet.git","clone_url":"https://github.com/FerhanGit/mailjet.git","svn_url":"https://github.com/FerhanGit/mailjet","homepage":null,"size":3600,"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":"PrestaShop:master","ref":"master","sha":"641522459b00cb3bf50c7eb82cd1d7e041e8746e","user":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":23387625,"name":"mailjet","full_name":"PrestaShop/mailjet","owner":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrestaShop/mailjet","description":"","fork":false,"url":"https://api.github.com/repos/PrestaShop/mailjet","forks_url":"https://api.github.com/repos/PrestaShop/mailjet/forks","keys_url":"https://api.github.com/repos/PrestaShop/mailjet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/mailjet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/mailjet/teams","hooks_url":"https://api.github.com/repos/PrestaShop/mailjet/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/mailjet/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/mailjet/events","assignees_url":"https://api.github.com/repos/PrestaShop/mailjet/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/mailjet/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/mailjet/tags","blobs_url":"https://api.github.com/repos/PrestaShop/mailjet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/mailjet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/mailjet/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/mailjet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/mailjet/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/mailjet/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/mailjet/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/mailjet/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/mailjet/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/mailjet/subscription","commits_url":"https://api.github.com/repos/PrestaShop/mailjet/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/mailjet/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/mailjet/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/mailjet/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/mailjet/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/mailjet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/mailjet/merges","archive_url":"https://api.github.com/repos/PrestaShop/mailjet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/mailjet/downloads","issues_url":"https://api.github.com/repos/PrestaShop/mailjet/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/mailjet/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/mailjet/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/mailjet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/mailjet/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/mailjet/releases{/id}","created_at":"2014-08-27T11:45:08Z","updated_at":"2015-04-30T16:40:50Z","pushed_at":"2015-06-16T14:50:56Z","git_url":"git://github.com/PrestaShop/mailjet.git","ssh_url":"git@github.com:PrestaShop/mailjet.git","clone_url":"https://github.com/PrestaShop/mailjet.git","svn_url":"https://github.com/PrestaShop/mailjet","homepage":null,"size":3749,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16"},"html":{"href":"https://github.com/PrestaShop/mailjet/pull/16"},"issue":{"href":"https://api.github.com/repos/PrestaShop/mailjet/issues/16"},"comments":{"href":"https://api.github.com/repos/PrestaShop/mailjet/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/mailjet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/mailjet/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/mailjet/statuses/5c45fae0edc45246319dbc0736251c31ff12f246"}}}}