From: Chad Horohoe Date: Fri, 5 Nov 2010 12:59:37 +0000 (+0000) Subject: Drop silly $_ prefix from 4.x days X-Git-Tag: 1.31.0-rc.0~34078 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=f3054e5787836a06449540b94f1e3408fb617554;p=lhc%2Fweb%2Fwiklou.git Drop silly $_ prefix from 4.x days --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index ef35201235..4cd120a6a8 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -37,7 +37,12 @@ */ class WebRequest { protected $data, $headers = array(); - private $_response; + + /** + * Lazy-init response object + * @var WebResponse + */ + private $response; public function __construct() { /// @todo Fixme: this preemptive de-quoting can interfere with other web libraries @@ -665,11 +670,11 @@ class WebRequest { */ public function response() { /* Lazy initialization of response object for this request */ - if ( !is_object( $this->_response ) ) { + if ( !is_object( $this->response ) ) { $class = ( $this instanceof FauxRequest ) ? 'FauxResponse' : 'WebResponse'; - $this->_response = new $class(); + $this->response = new $class(); } - return $this->_response; + return $this->response; } /**