{"action":"closed","issue":{"url":"https://api.github.com/repos/Teplitsa/Leyka/issues/53","repository_url":"https://api.github.com/repos/Teplitsa/Leyka","labels_url":"https://api.github.com/repos/Teplitsa/Leyka/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Teplitsa/Leyka/issues/53/comments","events_url":"https://api.github.com/repos/Teplitsa/Leyka/issues/53/events","html_url":"https://github.com/Teplitsa/Leyka/issues/53","id":100077295,"number":53,"title":"[Insight] exit() and die() functions should be avoided - in gateways/cp/leyka-class-cp-gateway.php, line 1","user":{"login":"GSuvorov","id":5485989,"avatar_url":"https://avatars.githubusercontent.com/u/5485989?v=3","gravatar_id":"","url":"https://api.github.com/users/GSuvorov","html_url":"https://github.com/GSuvorov","followers_url":"https://api.github.com/users/GSuvorov/followers","following_url":"https://api.github.com/users/GSuvorov/following{/other_user}","gists_url":"https://api.github.com/users/GSuvorov/gists{/gist_id}","starred_url":"https://api.github.com/users/GSuvorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GSuvorov/subscriptions","organizations_url":"https://api.github.com/users/GSuvorov/orgs","repos_url":"https://api.github.com/users/GSuvorov/repos","events_url":"https://api.github.com/users/GSuvorov/events{/privacy}","received_events_url":"https://api.github.com/users/GSuvorov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"Ahaenor","id":2002971,"avatar_url":"https://avatars.githubusercontent.com/u/2002971?v=3","gravatar_id":"","url":"https://api.github.com/users/Ahaenor","html_url":"https://github.com/Ahaenor","followers_url":"https://api.github.com/users/Ahaenor/followers","following_url":"https://api.github.com/users/Ahaenor/following{/other_user}","gists_url":"https://api.github.com/users/Ahaenor/gists{/gist_id}","starred_url":"https://api.github.com/users/Ahaenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ahaenor/subscriptions","organizations_url":"https://api.github.com/users/Ahaenor/orgs","repos_url":"https://api.github.com/users/Ahaenor/repos","events_url":"https://api.github.com/users/Ahaenor/events{/privacy}","received_events_url":"https://api.github.com/users/Ahaenor/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-08-10T14:15:33Z","updated_at":"2016-03-15T19:16:53Z","closed_at":"2016-03-15T19:16:53Z","body":"**[in gateways/cp/leyka-class-cp-gateway.php, line 1](https://github.com/Teplitsa/Leyka/blob/5054f2fac1101bd3b0e335bd5f51c3daca68db3f/gateways/cp/leyka-class-cp-gateway.php#L1)**\r\n\r\n> This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.\r\n\r\n```php\r\n<?php if( !defined('WPINC') ) die;\r\n/**\r\n * Leyka_CP_Gateway class\r\n */\r\n\r\nclass Leyka_CP_Gateway extends Leyka_Gateway {\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/1f0f68f6-7f18-4286-9b85-7ea0234d5f02/analyses/1)_"}}