{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/52463679","id":52463679,"diff_hunk":"@@ -45,17 +45,29 @@ protected function presentProduct(array $rawProduct)\n             $this->imageRetriever,\n             $this->link,\n             $this->pricePresenter,\n-            new ProductColorsRetriever,\n+            new ProductColorsRetriever(),\n             $this->translator\n         );\n \n-        $settings = new ProductPresentationSettings;\n+        $settings = new ProductPresentationSettings();\n \n         $settings->catalog_mode = Configuration::get('PS_CATALOG_MODE');\n         $settings->include_taxes = $this->includeTaxes();\n-        $settings->allow_add_variant_to_cart_from_listing =  (int)Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY');\n+        $settings->allow_add_variant_to_cart_from_listing = (int) Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY');\n         $settings->stock_management_enabled = Configuration::get('PS_STOCK_MANAGEMENT');\n \n+        if (is_string($rawProduct['attributes'])) {","path":"src/Adapter/Cart/CartPresenter.php","position":30,"original_position":30,"commit_id":"6dc097f486265d86dc4dbd6b16d9eba07f1d937a","original_commit_id":"6dc097f486265d86dc4dbd6b16d9eba07f1d937a","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"body":"I don't like it, but I don't want to take the risk to update `Cart` class for now.","created_at":"2016-02-10T14:31:17Z","updated_at":"2016-02-10T14:31:17Z","html_url":"https://github.com/PrestaShop/PrestaShop/pull/4945#discussion_r52463679","pull_request_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/52463679"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/4945#discussion_r52463679"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945"}}},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945","id":58891781,"html_url":"https://github.com/PrestaShop/PrestaShop/pull/4945","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/4945.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/4945.patch","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4945","number":4945,"state":"open","locked":false,"title":"Updated presenters for \"Add to cart\" scenario","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"body":"Made available a new property in $subtotals to get amount without shipping cost","created_at":"2016-02-10T13:44:25Z","updated_at":"2016-02-10T14:31:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1b907123aeb35d0fcf98bd9f12d102bb75c47e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4945/comments","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/6dc097f486265d86dc4dbd6b16d9eba07f1d937a","head":{"label":"mickaelandrieu:update-presenters","ref":"update-presenters","sha":"6dc097f486265d86dc4dbd6b16d9eba07f1d937a","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"repo":{"id":45130346,"name":"PrestaShop","full_name":"mickaelandrieu/PrestaShop","owner":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mickaelandrieu/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open-source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/mickaelandrieu/PrestaShop","forks_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/forks","keys_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/teams","hooks_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/events","assignees_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/tags","blobs_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/subscription","commits_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/merges","archive_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/downloads","issues_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/deployments","created_at":"2015-10-28T17:34:50Z","updated_at":"2016-01-12T13:36:53Z","pushed_at":"2016-02-10T14:29:58Z","git_url":"git://github.com/mickaelandrieu/PrestaShop.git","ssh_url":"git@github.com:mickaelandrieu/PrestaShop.git","clone_url":"https://github.com/mickaelandrieu/PrestaShop.git","svn_url":"https://github.com/mickaelandrieu/PrestaShop","homepage":"http://www.prestashop.com/","size":228889,"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":"develop"}},"base":{"label":"PrestaShop:develop","ref":"develop","sha":"5055ffce56cf15fdabcd74e5a3128320823d4357","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":6763587,"name":"PrestaShop","full_name":"PrestaShop/PrestaShop","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/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open Source e-commerce solution.","fork":false,"url":"https://api.github.com/repos/PrestaShop/PrestaShop","forks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/forks","keys_url":"https://api.github.com/repos/PrestaShop/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/PrestaShop/teams","hooks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/events","assignees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/tags","blobs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscription","commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/PrestaShop/merges","archive_url":"https://api.github.com/repos/PrestaShop/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/PrestaShop/downloads","issues_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/deployments","created_at":"2012-11-19T16:41:31Z","updated_at":"2016-02-10T13:22:31Z","pushed_at":"2016-02-10T14:31:05Z","git_url":"git://github.com/PrestaShop/PrestaShop.git","ssh_url":"git@github.com:PrestaShop/PrestaShop.git","clone_url":"https://github.com/PrestaShop/PrestaShop.git","svn_url":"https://github.com/PrestaShop/PrestaShop","homepage":"http://www.prestashop.com/","size":256565,"stargazers_count":1627,"watchers_count":1627,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1783,"mirror_url":null,"open_issues_count":420,"forks":1783,"open_issues":420,"watchers":1627,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/4945"},"issue":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4945"},"comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/4945/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/4945/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/6dc097f486265d86dc4dbd6b16d9eba07f1d937a"}}}}