Completed
Pull Request — master (#10)
by
unknown
02:50
created
php/Requests/libary/Requests/Exception/Transport.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Requests_Exception_Transport extends Requests_Exception {
3
+class Requests_Exception_Transport extends Requests_Exception
4
+{
4 5
 
5 6
 }
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 * @param mixed $data Associated data
36 36
 	 */
37 37
 	public function __construct($reason = null, $data = null) {
38
-		if ($reason !== null) {
38
+		if($reason !== null) {
39 39
 			$this->reason = $reason;
40 40
 		}
41 41
 
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
 	 * @return string Exception class name to use
58 58
 	 */
59 59
 	public static function get_class($code) {
60
-		if (!$code) {
60
+		if(!$code) {
61 61
 			return 'Requests_Exception_HTTP_Unknown';
62 62
 		}
63 63
 
64 64
 		$class = sprintf('Requests_Exception_HTTP_%d', $code);
65
-		if (class_exists($class)) {
65
+		if(class_exists($class)) {
66 66
 			return $class;
67 67
 		}
68 68
 
Please login to merge, or discard this patch.
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@  discard block
 block discarded – undo
10 10
  *
11 11
  * @package Requests
12 12
  */
13
-class Requests_Exception_HTTP extends Requests_Exception {
13
+class Requests_Exception_HTTP extends Requests_Exception
14
+{
14 15
 	/**
15 16
 	 * HTTP status code
16 17
 	 *
@@ -34,8 +35,10 @@  discard block
 block discarded – undo
34 35
 	 * @param string|null $reason Reason phrase
35 36
 	 * @param mixed $data Associated data
36 37
 	 */
37
-	public function __construct($reason = null, $data = null) {
38
-		if ($reason !== null) {
38
+	public function __construct($reason = null, $data = null)
39
+	{
40
+		if ($reason !== null)
41
+		{
39 42
 			$this->reason = $reason;
40 43
 		}
41 44
 
@@ -46,7 +49,8 @@  discard block
 block discarded – undo
46 49
 	/**
47 50
 	 * Get the status message
48 51
 	 */
49
-	public function getReason() {
52
+	public function getReason()
53
+	{
50 54
 		return $this->reason;
51 55
 	}
52 56
 
@@ -56,13 +60,16 @@  discard block
 block discarded – undo
56 60
 	 * @param int|bool $code HTTP status code, or false if unavailable
57 61
 	 * @return string Exception class name to use
58 62
 	 */
59
-	public static function get_class($code) {
60
-		if (!$code) {
63
+	public static function get_class($code)
64
+	{
65
+		if (!$code)
66
+		{
61 67
 			return 'Requests_Exception_HTTP_Unknown';
62 68
 		}
63 69
 
64 70
 		$class = sprintf('Requests_Exception_HTTP_%d', $code);
65
-		if (class_exists($class)) {
71
+		if (class_exists($class))
72
+		{
66 73
 			return $class;
67 74
 		}
68 75
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
 	 * @param string|null $reason Reason phrase
35 35
 	 * @param mixed $data Associated data
36 36
 	 */
37
-	public function __construct($reason = null, $data = null) {
38
-		if ($reason !== null) {
37
+	public function __construct($reason = NULL, $data = NULL) {
38
+		if ($reason !== NULL) {
39 39
 			$this->reason = $reason;
40 40
 		}
41 41
 
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/414.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
  *
11 11
  * @package Requests
12 12
  */
13
-class Requests_Exception_HTTP_414 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_414 extends Requests_Exception_HTTP
14
+{
14 15
 	/**
15 16
 	 * HTTP status code
16 17
 	 *
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/408.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
  *
11 11
  * @package Requests
12 12
  */
13
-class Requests_Exception_HTTP_408 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_408 extends Requests_Exception_HTTP
14
+{
14 15
 	/**
15 16
 	 * HTTP status code
16 17
 	 *
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/511.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
  * @see https://tools.ietf.org/html/rfc6585
13 13
  * @package Requests
14 14
  */
15
-class Requests_Exception_HTTP_511 extends Requests_Exception_HTTP {
15
+class Requests_Exception_HTTP_511 extends Requests_Exception_HTTP
16
+{
16 17
 	/**
17 18
 	 * HTTP status code
18 19
 	 *
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/428.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
  * @see https://tools.ietf.org/html/rfc6585
13 13
  * @package Requests
14 14
  */
15
-class Requests_Exception_HTTP_428 extends Requests_Exception_HTTP {
15
+class Requests_Exception_HTTP_428 extends Requests_Exception_HTTP
16
+{
16 17
 	/**
17 18
 	 * HTTP status code
18 19
 	 *
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/306.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
  *
11 11
  * @package Requests
12 12
  */
13
-class Requests_Exception_HTTP_306 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_306 extends Requests_Exception_HTTP
14
+{
14 15
 	/**
15 16
 	 * HTTP status code
16 17
 	 *
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/413.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
  *
11 11
  * @package Requests
12 12
  */
13
-class Requests_Exception_HTTP_413 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_413 extends Requests_Exception_HTTP
14
+{
14 15
 	/**
15 16
 	 * HTTP status code
16 17
 	 *
Please login to merge, or discard this patch.
php/Requests/libary/Requests/Exception/HTTP/412.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
  *
11 11
  * @package Requests
12 12
  */
13
-class Requests_Exception_HTTP_412 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_412 extends Requests_Exception_HTTP
14
+{
14 15
 	/**
15 16
 	 * HTTP status code
16 17
 	 *
Please login to merge, or discard this patch.