From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../wp-includes/Requests/Exception/HTTP.php | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 srcs/wordpress/wp-includes/Requests/Exception/HTTP.php (limited to 'srcs/wordpress/wp-includes/Requests/Exception/HTTP.php') diff --git a/srcs/wordpress/wp-includes/Requests/Exception/HTTP.php b/srcs/wordpress/wp-includes/Requests/Exception/HTTP.php deleted file mode 100644 index 9ac6a87..0000000 --- a/srcs/wordpress/wp-includes/Requests/Exception/HTTP.php +++ /dev/null @@ -1,71 +0,0 @@ -reason = $reason; - } - - $message = sprintf('%d %s', $this->code, $this->reason); - parent::__construct($message, 'httpresponse', $data, $this->code); - } - - /** - * Get the status message - */ - public function getReason() { - return $this->reason; - } - - /** - * Get the correct exception class for a given error code - * - * @param int|bool $code HTTP status code, or false if unavailable - * @return string Exception class name to use - */ - public static function get_class($code) { - if (!$code) { - return 'Requests_Exception_HTTP_Unknown'; - } - - $class = sprintf('Requests_Exception_HTTP_%d', $code); - if (class_exists($class)) { - return $class; - } - - return 'Requests_Exception_HTTP_Unknown'; - } -} \ No newline at end of file -- cgit