Completed
Push — master ( 2bc715...0fcd03 )
by Luca
02:20
created
src/Dispatcher/Dispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Dispatcher/Method.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,20 +24,20 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Settings/SubscriptionType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Payloads/SystemPropertyPayload.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-     * @return array
67
+     * @return string
68 68
      */
69 69
     public function getProperty() {
70 70
         return $this->property;
Please login to merge, or discard this patch.
src/Settings/Settings.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
tests/Settings/SubscriptionTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.