@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $header = $this->getSignHeaders(); |
30 | 30 | $url = $this->getFullUrl(); |
31 | 31 | |
32 | - if ($this->getAccessToken()) { |
|
32 | + if($this->getAccessToken()) { |
|
33 | 33 | $header['Authorization'] = "Bearer " . $this->getAccessToken(); |
34 | 34 | } |
35 | 35 | //Comment out to debug the Request: |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'proxy' => '186.103.169.165:8080', |
53 | 53 | );*/ |
54 | 54 | |
55 | - switch ($this->getMethod()) { |
|
55 | + switch($this->getMethod()) { |
|
56 | 56 | case 'POST': |
57 | 57 | $result = Requests::post($url, $header, $this->payLoad); |
58 | 58 | break; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $result = Requests::put($url, $header, $this->payLoad); |
71 | 71 | break; |
72 | 72 | } |
73 | - switch ($result->status_code) { |
|
73 | + switch($result->status_code) { |
|
74 | 74 | case 200: |
75 | 75 | $result = json_decode($result->body, true); |
76 | 76 | break; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | exit("Error 403: Access denied"); |
102 | 102 | break; |
103 | 103 | default: |
104 | - error_log('Error '.$result->status_code.' - Unauthorized'); |
|
104 | + error_log('Error ' . $result->status_code . ' - Unauthorized'); |
|
105 | 105 | $result = json_decode($result->body, true); |
106 | 106 | } |
107 | 107 |
@@ -17,10 +17,10 @@ |
||
17 | 17 | { |
18 | 18 | error_log('ER_TOO_MANY_USER_CONNECTIONS'); |
19 | 19 | sleep(1); |
20 | - header('location: '.$_SERVER['PHP_SELF']); |
|
20 | + header('location: ' . $_SERVER['PHP_SELF']); |
|
21 | 21 | } |
22 | 22 | |
23 | -if ($db->connect_errno) { |
|
23 | +if($db->connect_errno) { |
|
24 | 24 | echo 'Sorry, die Verbindung zu unserem |
25 | 25 | Server ist hops gegangen. Wegen '. $db -> connect_error; |
26 | 26 | } |