\r
use Exception;\r
\r
-class HTTPException extends Exception {\r
+class HTTPException extends Exception\r
+{\r
var $httpcode = 200;\r
var $httpdesc = "";\r
- public function __construct($message = "", $code = 0, Exception $previous = null) {\r
- if ($this->httpdesc == "") {\r
- $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', str_replace("Exception","",get_class($this)));\r
+\r
+ public function __construct($message = '', $code = 0, Exception $previous = null)\r
+ {\r
+ if ($this->httpdesc == '') {\r
+ $classname = str_replace('Exception', '', str_replace('Friendica\Network\HTTPException\\', '', get_class($this)));\r
+ $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', $classname);\r
}\r
parent::__construct($message, $code, $previous);\r
}\r