{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/272","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/272/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/272/events","html_url":"https://github.com/Esri/resource-proxy/pull/272","id":101453201,"number":272,"title":"Php token expire","user":{"login":"cheetah90","id":3032091,"avatar_url":"https://avatars.githubusercontent.com/u/3032091?v=3","gravatar_id":"","url":"https://api.github.com/users/cheetah90","html_url":"https://github.com/cheetah90","followers_url":"https://api.github.com/users/cheetah90/followers","following_url":"https://api.github.com/users/cheetah90/following{/other_user}","gists_url":"https://api.github.com/users/cheetah90/gists{/gist_id}","starred_url":"https://api.github.com/users/cheetah90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheetah90/subscriptions","organizations_url":"https://api.github.com/users/cheetah90/orgs","repos_url":"https://api.github.com/users/cheetah90/repos","events_url":"https://api.github.com/users/cheetah90/events{/privacy}","received_events_url":"https://api.github.com/users/cheetah90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Esri/resource-proxy/labels/*PHP*","name":"*PHP*","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Esri/resource-proxy/milestones/3","html_url":"https://github.com/Esri/resource-proxy/milestones/1.1.0","labels_url":"https://api.github.com/repos/Esri/resource-proxy/milestones/3/labels","id":605920,"number":3,"title":"1.1.0","description":"","creator":{"login":"bsvensson","id":808357,"avatar_url":"https://avatars.githubusercontent.com/u/808357?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvensson","html_url":"https://github.com/bsvensson","followers_url":"https://api.github.com/users/bsvensson/followers","following_url":"https://api.github.com/users/bsvensson/following{/other_user}","gists_url":"https://api.github.com/users/bsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvensson/subscriptions","organizations_url":"https://api.github.com/users/bsvensson/orgs","repos_url":"https://api.github.com/users/bsvensson/repos","events_url":"https://api.github.com/users/bsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/bsvensson/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":101,"state":"open","created_at":"2014-03-21T21:44:00Z","updated_at":"2015-08-18T00:38:20Z","due_on":"2015-08-31T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-17T15:52:46Z","updated_at":"2015-08-18T00:47:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Esri/resource-proxy/pulls/272","html_url":"https://github.com/Esri/resource-proxy/pull/272","diff_url":"https://github.com/Esri/resource-proxy/pull/272.diff","patch_url":"https://github.com/Esri/resource-proxy/pull/272.patch"},"body":"Handle 10.3 server token expiration. Similar to #256 "},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/132006678","html_url":"https://github.com/Esri/resource-proxy/pull/272#issuecomment-132006678","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/272","id":132006678,"user":{"login":"bsvensson","id":808357,"avatar_url":"https://avatars.githubusercontent.com/u/808357?v=3","gravatar_id":"","url":"https://api.github.com/users/bsvensson","html_url":"https://github.com/bsvensson","followers_url":"https://api.github.com/users/bsvensson/followers","following_url":"https://api.github.com/users/bsvensson/following{/other_user}","gists_url":"https://api.github.com/users/bsvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/bsvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsvensson/subscriptions","organizations_url":"https://api.github.com/users/bsvensson/orgs","repos_url":"https://api.github.com/users/bsvensson/repos","events_url":"https://api.github.com/users/bsvensson/events{/privacy}","received_events_url":"https://api.github.com/users/bsvensson/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T00:47:28Z","updated_at":"2015-08-18T00:47:28Z","body":"@cheetah90 \r\nFor a slight performance improvement - how about wrapping the last elseif in an else which includes the fallback's:\r\n```\r\n        $jsonData = json_decode($this->proxyBody);        \r\n        $errorCode = $jsonData->{'error'}->{'code'};\r\n```\r\nThen the json_decode would only happen if not caught by the other if/elseif's, right?"}}