@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | $server_output = curl_exec($ch); |
| 71 | 71 | $info = curl_getinfo($ch); |
| 72 | - curl_close ($ch); |
|
| 72 | + curl_close($ch); |
|
| 73 | 73 | |
| 74 | 74 | $response = false; |
| 75 | 75 | if ($info['http_code'] == 200 || $info['http_code'] == 201) { |
@@ -24,20 +24,20 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Receive a read-only data |
| 26 | 26 | */ |
| 27 | - const GET = 'GET'; |
|
| 27 | + const GET = 'GET'; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Overwrite an existing resource |
| 31 | 31 | */ |
| 32 | - const POST = 'POST'; |
|
| 32 | + const POST = 'POST'; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Creates a new resource |
| 36 | 36 | */ |
| 37 | - const PUT = 'PUT'; |
|
| 37 | + const PUT = 'PUT'; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Deletes the given resource |
| 41 | 41 | */ |
| 42 | - const DELETE = 'DELETE'; |
|
| 42 | + const DELETE = 'DELETE'; |
|
| 43 | 43 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @param $subscriptionType |
| 32 | - * @return bool |
|
| 32 | + * @return boolean|null |
|
| 33 | 33 | */ |
| 34 | 34 | public static function isValid($subscriptionType) |
| 35 | 35 | {
|
@@ -35,9 +35,9 @@ |
||
| 35 | 35 | * Edit this section to configure your client |
| 36 | 36 | */ |
| 37 | 37 | const SERVER_NAME = 'your_server_name'; |
| 38 | - const SECRET_KEY = 'your_secret_key'; //if you use secret_key authentication |
|
| 39 | - const USER = 'your_username'; //if you use basic authentication |
|
| 40 | - const PSW = 'your_password'; //if you use basic authentication |
|
| 38 | + const SECRET_KEY = 'your_secret_key'; //if you use secret_key authentication |
|
| 39 | + const USER = 'your_username'; //if you use basic authentication |
|
| 40 | + const PSW = 'your_password'; //if you use basic authentication |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Authentication constants, do not touch ;) |