@@ -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 | {
|
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @return array |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | public function getProperty() {
|
| 70 | 70 | return $this->property; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * Default Settings |
| 27 | 27 | * Edit this section to configure your client |
| 28 | 28 | */ |
| 29 | - const PLUGIN_PATH = '/plugins/restapi/v1'; |
|
| 29 | + const PLUGIN_PATH = '/plugins/restapi/v1'; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @var Settings |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @param $plugin |
|
| 98 | + * @param string $plugin |
|
| 99 | 99 | * @return string |
| 100 | 100 | */ |
| 101 | 101 | public function setPlugin($plugin) |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | - * @param $useSSL |
|
| 107 | + * @param boolean $useSSL |
|
| 108 | 108 | * @return bool |
| 109 | 109 | */ |
| 110 | 110 | public function setSSL($useSSL) |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @param $bool |
|
| 146 | + * @param boolean $bool |
|
| 147 | 147 | * @return string |
| 148 | 148 | */ |
| 149 | 149 | public function setDebug($bool) |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | 230 | * Returns the headers to be sent to web service |
| 231 | - * @return array |
|
| 231 | + * @return string[] |
|
| 232 | 232 | * @throws \Exception |
| 233 | 233 | */ |
| 234 | 234 | public function getHeaders() |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace Gnello\OpenFireRestAPI\Settings; |
| 15 | 15 | |
| 16 | -use Gnello\OpenFireRestAPI\AuthenticationToken; |
|
| 16 | +use Gnello\OpenFireRestAPI\AuthenticationToken; |
|
| 17 | 17 | use Gnello\OpenFireRestAPI\Wrappers\AbstractRegistryWrapper; |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->assertFalse(SubscriptionType::isValid(4)); |
| 35 | 35 | $this->assertFalse(SubscriptionType::isValid(-1)); |
| 36 | 36 | $this->assertFalse(SubscriptionType::isValid('test'));
|
| 37 | - $this->assertFalse(SubscriptionType::isValid(array(1,2))); |
|
| 37 | + $this->assertFalse(SubscriptionType::isValid(array(1, 2))); |
|
| 38 | 38 | $this->assertFalse(SubscriptionType::isValid(true)); |
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | \ No newline at end of file |