Completed
Push — master ( 9ca507...f40742 )
by mains
03:55
created
php/Requests/libary/Requests/Exception/HTTP/501.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_501 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_501 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/505.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_505 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_505 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/403.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_403 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_403 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/304.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_304 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_304 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/400.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_400 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_400 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/404.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_404 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_404 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/417.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_417 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_417 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/305.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_305 extends Requests_Exception_HTTP {
13
+class Requests_Exception_HTTP_305 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/Hooks.php 1 patch
Braces   +18 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@  discard block
 block discarded – undo
12 12
  * @package Requests
13 13
  * @subpackage Utilities
14 14
  */
15
-class Requests_Hooks implements Requests_Hooker {
15
+class Requests_Hooks implements Requests_Hooker
16
+{
16 17
 	/**
17 18
 	 * Registered callbacks for each hook
18 19
 	 *
@@ -23,7 +24,8 @@  discard block
 block discarded – undo
23 24
 	/**
24 25
 	 * Constructor
25 26
 	 */
26
-	public function __construct() {
27
+	public function __construct()
28
+	{
27 29
 		// pass
28 30
 	}
29 31
 
@@ -34,11 +36,14 @@  discard block
 block discarded – undo
34 36
 	 * @param callback $callback Function/method to call on event
35 37
 	 * @param int $priority Priority number. <0 is executed earlier, >0 is executed later
36 38
 	 */
37
-	public function register($hook, $callback, $priority = 0) {
38
-		if (!isset($this->hooks[$hook])) {
39
+	public function register($hook, $callback, $priority = 0)
40
+	{
41
+		if (!isset($this->hooks[$hook]))
42
+		{
39 43
 			$this->hooks[$hook] = array();
40 44
 		}
41
-		if (!isset($this->hooks[$hook][$priority])) {
45
+		if (!isset($this->hooks[$hook][$priority]))
46
+		{
42 47
 			$this->hooks[$hook][$priority] = array();
43 48
 		}
44 49
 
@@ -52,13 +57,17 @@  discard block
 block discarded – undo
52 57
 	 * @param array $parameters Parameters to pass to callbacks
53 58
 	 * @return boolean Successfulness
54 59
 	 */
55
-	public function dispatch($hook, $parameters = array()) {
56
-		if (empty($this->hooks[$hook])) {
60
+	public function dispatch($hook, $parameters = array())
61
+	{
62
+		if (empty($this->hooks[$hook]))
63
+		{
57 64
 			return false;
58 65
 		}
59 66
 
60
-		foreach ($this->hooks[$hook] as $priority => $hooked) {
61
-			foreach ($hooked as $callback) {
67
+		foreach ($this->hooks[$hook] as $priority => $hooked)
68
+		{
69
+			foreach ($hooked as $callback)
70
+			{
62 71
 				call_user_func_array($callback, $parameters);
63 72
 			}
64 73
 		}
Please login to merge, or discard this patch.