{"action":"closed","issue":{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/635","labels_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/635/comments","events_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/issues/635/events","html_url":"https://github.com/laterpay/laterpay-wordpress-plugin/issues/635","id":59415099,"number":635,"title":"[Insight] Code should not be duplicated - in laterpay/views/…/post/gift/gift_card.php, line 9","user":{"login":"drdla","id":135148,"avatar_url":"https://avatars.githubusercontent.com/u/135148?v=3","gravatar_id":"","url":"https://api.github.com/users/drdla","html_url":"https://github.com/drdla","followers_url":"https://api.github.com/users/drdla/followers","following_url":"https://api.github.com/users/drdla/following{/other_user}","gists_url":"https://api.github.com/users/drdla/gists{/gist_id}","starred_url":"https://api.github.com/users/drdla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdla/subscriptions","organizations_url":"https://api.github.com/users/drdla/orgs","repos_url":"https://api.github.com/users/drdla/repos","events_url":"https://api.github.com/users/drdla/events{/privacy}","received_events_url":"https://api.github.com/users/drdla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/labels/Quality%20Improvement","name":"Quality Improvement","color":"207de5"},{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/labels/To%20be%20Tested","name":"To be Tested","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"drdla","id":135148,"avatar_url":"https://avatars.githubusercontent.com/u/135148?v=3","gravatar_id":"","url":"https://api.github.com/users/drdla","html_url":"https://github.com/drdla","followers_url":"https://api.github.com/users/drdla/followers","following_url":"https://api.github.com/users/drdla/following{/other_user}","gists_url":"https://api.github.com/users/drdla/gists{/gist_id}","starred_url":"https://api.github.com/users/drdla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdla/subscriptions","organizations_url":"https://api.github.com/users/drdla/orgs","repos_url":"https://api.github.com/users/drdla/repos","events_url":"https://api.github.com/users/drdla/events{/privacy}","received_events_url":"https://api.github.com/users/drdla/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/milestones/3","html_url":"https://github.com/laterpay/laterpay-wordpress-plugin/milestones/v1.0","labels_url":"https://api.github.com/repos/laterpay/laterpay-wordpress-plugin/milestones/3/labels","id":704262,"number":3,"title":"v1.0","description":"Stable production release","creator":{"login":"drdla","id":135148,"avatar_url":"https://avatars.githubusercontent.com/u/135148?v=3","gravatar_id":"","url":"https://api.github.com/users/drdla","html_url":"https://github.com/drdla","followers_url":"https://api.github.com/users/drdla/followers","following_url":"https://api.github.com/users/drdla/following{/other_user}","gists_url":"https://api.github.com/users/drdla/gists{/gist_id}","starred_url":"https://api.github.com/users/drdla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdla/subscriptions","organizations_url":"https://api.github.com/users/drdla/orgs","repos_url":"https://api.github.com/users/drdla/repos","events_url":"https://api.github.com/users/drdla/events{/privacy}","received_events_url":"https://api.github.com/users/drdla/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":8,"state":"open","created_at":"2014-06-28T13:38:26Z","updated_at":"2015-03-02T14:47:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-01T20:13:59Z","updated_at":"2015-03-02T14:47:01Z","closed_at":"2015-03-02T14:47:01Z","body":"**[in laterpay/views/frontend/partials/post/gift/gift_card.php, line 9](https://github.com/laterpay/laterpay-wordpress-plugin/blob/7cae221ffba9cae420e06135a704cb9ff1d42da5/laterpay/views/frontend/partials/post/gift/gift_card.php#L9)**\r\n\r\n> The next 39 lines appear both in `laterpay/views/frontend/partials/post/gift/gift_card.php:9` and `laterpay/views/frontend/partials/post/gift/redeem_gift.php:9`.\r\n\r\n```php\r\n    <?php foreach ( $laterpay['passes_list'] as $pass ): ?><?php\r\n            $pass = (array) $pass;\r\n\r\n            $title = sprintf(\r\n                '%s<small>%s</small>',\r\n                LaterPay_Helper_View::format_number( $pass['price'] ),\r\n                $laterpay['standard_currency']\r\n            );\r\n\r\n            $period = LaterPay_Helper_TimePass::get_period_options( $pass['period'] );\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/c0535748-172c-4419-8403-e3be9715aa53/analyses/1)_"}}