Skip to content

Commit acb4596

Browse files
committedMay 13, 2015
Use __CLASS__ instead of hard-coding class names
Summary: Use `__CLASS__` instead of hard-coding class names. Depends on D12605. Test Plan: Eyeball it. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12806
1 parent f3d5e22 commit acb4596

File tree

78 files changed

+268
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+268
-233
lines changed
 

‎src/aphront/AphrontRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public static function getHTTPHeader($name, $default = null, $data = null) {
650650
* safe.
651651
*/
652652
public function isProxiedClusterRequest() {
653-
return (bool)AphrontRequest::getHTTPHeader('X-Phabricator-Cluster');
653+
return (bool)self::getHTTPHeader('X-Phabricator-Cluster');
654654
}
655655

656656

‎src/aphront/response/AphrontProxyResponse.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ abstract public function reduceProxyResponse();
6565

6666
final public function buildResponseString() {
6767
throw new Exception(
68-
'AphrontProxyResponse must implement reduceProxyResponse().');
68+
pht(
69+
'%s must implement %s.',
70+
__CLASS__,
71+
'reduceProxyResponse()'));
6972
}
7073

7174
}

0 commit comments

Comments
 (0)
Failed to load comments.