Update composer dependencies

This commit is contained in:
Kijin Sung 2017-06-29 23:39:23 +09:00
parent 49cc39e507
commit cbd324c35b
428 changed files with 17862 additions and 5885 deletions

8
vendor/rmccue/requests/library/Requests/Exception/HTTP.php vendored Executable file → Normal file
View file

@ -31,7 +31,7 @@ class Requests_Exception_HTTP extends Requests_Exception {
* There is no mechanism to pass in the status code, as this is set by the
* subclass used. Reason phrases can vary, however.
*
* @param string $reason Reason phrase
* @param string|null $reason Reason phrase
* @param mixed $data Associated data
*/
public function __construct($reason = null, $data = null) {
@ -53,10 +53,14 @@ class Requests_Exception_HTTP extends Requests_Exception {
/**
* Get the correct exception class for a given error code
*
* @param int $code HTTP status 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;

View file

@ -0,0 +1,27 @@
<?php
/**
* Exception for 304 Not Modified responses
*
* @package Requests
*/
/**
* Exception for 304 Not Modified responses
*
* @package Requests
*/
class Requests_Exception_HTTP_304 extends Requests_Exception_HTTP {
/**
* HTTP status code
*
* @var integer
*/
protected $code = 304;
/**
* Reason phrase
*
* @var string
*/
protected $reason = 'Not Modified';
}

View file

@ -0,0 +1,27 @@
<?php
/**
* Exception for 305 Use Proxy responses
*
* @package Requests
*/
/**
* Exception for 305 Use Proxy responses
*
* @package Requests
*/
class Requests_Exception_HTTP_305 extends Requests_Exception_HTTP {
/**
* HTTP status code
*
* @var integer
*/
protected $code = 305;
/**
* Reason phrase
*
* @var string
*/
protected $reason = 'Use Proxy';
}

View file

@ -0,0 +1,27 @@
<?php
/**
* Exception for 306 Switch Proxy responses
*
* @package Requests
*/
/**
* Exception for 306 Switch Proxy responses
*
* @package Requests
*/
class Requests_Exception_HTTP_306 extends Requests_Exception_HTTP {
/**
* HTTP status code
*
* @var integer
*/
protected $code = 306;
/**
* Reason phrase
*
* @var string
*/
protected $reason = 'Switch Proxy';
}

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/400.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/401.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/402.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/403.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/404.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/405.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/406.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/407.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/408.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/409.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/410.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/411.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/412.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/413.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/414.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/415.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/416.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/417.php vendored Executable file → Normal file
View file

4
vendor/rmccue/requests/library/Requests/Exception/HTTP/418.php vendored Executable file → Normal file
View file

@ -2,14 +2,14 @@
/**
* Exception for 418 I'm A Teapot responses
*
* @see http://tools.ietf.org/html/rfc2324
* @see https://tools.ietf.org/html/rfc2324
* @package Requests
*/
/**
* Exception for 418 I'm A Teapot responses
*
* @see http://tools.ietf.org/html/rfc2324
* @see https://tools.ietf.org/html/rfc2324
* @package Requests
*/
class Requests_Exception_HTTP_418 extends Requests_Exception_HTTP {

4
vendor/rmccue/requests/library/Requests/Exception/HTTP/428.php vendored Executable file → Normal file
View file

@ -2,14 +2,14 @@
/**
* Exception for 428 Precondition Required responses
*
* @see http://tools.ietf.org/html/rfc6585
* @see https://tools.ietf.org/html/rfc6585
* @package Requests
*/
/**
* Exception for 428 Precondition Required responses
*
* @see http://tools.ietf.org/html/rfc6585
* @see https://tools.ietf.org/html/rfc6585
* @package Requests
*/
class Requests_Exception_HTTP_428 extends Requests_Exception_HTTP {

4
vendor/rmccue/requests/library/Requests/Exception/HTTP/429.php vendored Executable file → Normal file
View file

@ -2,14 +2,14 @@
/**
* Exception for 429 Too Many Requests responses
*
* @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
* @see https://tools.ietf.org/html/draft-nottingham-http-new-status-04
* @package Requests
*/
/**
* Exception for 429 Too Many Requests responses
*
* @see http://tools.ietf.org/html/draft-nottingham-http-new-status-04
* @see https://tools.ietf.org/html/draft-nottingham-http-new-status-04
* @package Requests
*/
class Requests_Exception_HTTP_429 extends Requests_Exception_HTTP {

4
vendor/rmccue/requests/library/Requests/Exception/HTTP/431.php vendored Executable file → Normal file
View file

@ -2,14 +2,14 @@
/**
* Exception for 431 Request Header Fields Too Large responses
*
* @see http://tools.ietf.org/html/rfc6585
* @see https://tools.ietf.org/html/rfc6585
* @package Requests
*/
/**
* Exception for 431 Request Header Fields Too Large responses
*
* @see http://tools.ietf.org/html/rfc6585
* @see https://tools.ietf.org/html/rfc6585
* @package Requests
*/
class Requests_Exception_HTTP_431 extends Requests_Exception_HTTP {

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/500.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/501.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/502.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/503.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/504.php vendored Executable file → Normal file
View file

0
vendor/rmccue/requests/library/Requests/Exception/HTTP/505.php vendored Executable file → Normal file
View file

4
vendor/rmccue/requests/library/Requests/Exception/HTTP/511.php vendored Executable file → Normal file
View file

@ -2,14 +2,14 @@
/**
* Exception for 511 Network Authentication Required responses
*
* @see http://tools.ietf.org/html/rfc6585
* @see https://tools.ietf.org/html/rfc6585
* @package Requests
*/
/**
* Exception for 511 Network Authentication Required responses
*
* @see http://tools.ietf.org/html/rfc6585
* @see https://tools.ietf.org/html/rfc6585
* @package Requests
*/
class Requests_Exception_HTTP_511 extends Requests_Exception_HTTP {

4
vendor/rmccue/requests/library/Requests/Exception/HTTP/Unknown.php vendored Executable file → Normal file
View file

@ -14,7 +14,7 @@ class Requests_Exception_HTTP_Unknown extends Requests_Exception_HTTP {
/**
* HTTP status code
*
* @var integer
* @var integer|bool Code if available, false if an error occurred
*/
protected $code = 0;
@ -31,7 +31,7 @@ class Requests_Exception_HTTP_Unknown extends Requests_Exception_HTTP {
* If `$data` is an instance of {@see Requests_Response}, uses the status
* code from it. Otherwise, sets as 0
*
* @param string $reason Reason phrase
* @param string|null $reason Reason phrase
* @param mixed $data Associated data
*/
public function __construct($reason = null, $data = null) {

View file

@ -0,0 +1,5 @@
<?php
class Requests_Exception_Transport extends Requests_Exception {
}

View file

@ -0,0 +1,56 @@
<?php
class Requests_Exception_Transport_cURL extends Requests_Exception_Transport {
const EASY = 'cURLEasy';
const MULTI = 'cURLMulti';
const SHARE = 'cURLShare';
/**
* cURL error code
*
* @var integer
*/
protected $code = -1;
/**
* Which type of cURL error
*
* EASY|MULTI|SHARE
*
* @var string
*/
protected $type = 'Unknown';
/**
* Clear text error message
*
* @var string
*/
protected $reason = 'Unknown';
public function __construct($message, $type, $data = null, $code = 0) {
if ($type !== null) {
$this->type = $type;
}
if ($code !== null) {
$this->code = $code;
}
if ($message !== null) {
$this->reason = $message;
}
$message = sprintf('%d %s', $this->code, $this->reason);
parent::__construct($message, $this->type, $data, $this->code);
}
/**
* Get the error message
*/
public function getReason() {
return $this->reason;
}
}