Completed
Branch master (5097c0)
by BuzzBoard
11:01
created
src/Helpers/Time.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     /**
110 110
      * Calculates and returns current GMT offset
111
-     * @return int
111
+     * @return double
112 112
      */
113 113
     public static function getGmtOffset() {
114 114
         $gmtOffset = date('Z') / 60 / 60;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     /**
224 224
      * Return current timestamp
225 225
      * @param null|int $timestamp If not set, current timestamp will be used.
226
-     * @return current timestamp
226
+     * @return integer timestamp
227 227
      */
228 228
     protected function checkTimestamp($timestamp = null) {
229 229
         if ($timestamp === null) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $difference = round($difference);
50 50
 
51 51
         if ($difference != 1) {
52
-            $periods[$j].= "s";
52
+            $periods[$j] .= "s";
53 53
         }
54 54
 
55 55
         return "$difference $periods[$j] 'ago' ";
Please login to merge, or discard this patch.
src/Helpers/Url.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * 
29
-     * @param string $host
30 29
      * @return string
31 30
      */
32 31
     public function clean($link = null, $lower = true) {
@@ -72,7 +71,7 @@  discard block
 block discarded – undo
72 71
     /**
73 72
      * 
74 73
      * @param type $url
75
-     * @return type
74
+     * @return string
76 75
      * @throws InvalidUrlException
77 76
      */
78 77
     public static function getHost($url = null) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,9 @@
 block discarded – undo
63 63
      */
64 64
     public function parse($url = null) {
65 65
         $urlParse = parse_url($url);
66
-        if ($urlParse['scheme'] != '' && $urlParse['host'] != '')
67
-            return $urlParse['scheme'] . '://' . $urlParse['host'];
66
+        if ($urlParse['scheme'] != '' && $urlParse['host'] != '') {
67
+                    return $urlParse['scheme'] . '://' . $urlParse['host'];
68
+        }
68 69
 
69 70
         return trim(rtrim($url, '/'));
70 71
     }
Please login to merge, or discard this patch.
src/Network/Http.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * 
69 69
      * @param string $path
70 70
      * @param array $params
71
-     * @return array response
71
+     * @return Response response
72 72
      */
73 73
     public static function get($path = null, array $params = []) {
74 74
         self::builUrl($path, $params);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * 
82 82
      * @param string $path
83 83
      * @param array $headers
84
-     * @return array response
84
+     * @return Response response
85 85
      */
86 86
     public static function post($path = null, array $headers = []) {
87 87
         self::builUrl($path, $headers);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     /**
94 94
      * 
95
-     * @return GuzzleHttp Object
95
+     * @return HttpClient Object
96 96
      */
97 97
     protected static function getClient() {
98 98
         return (new HttpClient(static::$options));
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
 
16 16
 namespace BuzzBoard\Network;
17 17
 
18
-use GuzzleHttp\Client AS HttpClient;
19
-use GuzzleHttp\Psr7\Request;
18
+use GuzzleHttp\Client as HttpClient;
20 19
 use BuzzBoard\Client;
21 20
 use BuzzBoard\Exceptions\InvalidArgumentException;
22 21
 
Please login to merge, or discard this patch.
src/Network/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * 
41
-     * @param \GuzzleHttp\Client $response
41
+     * @param \GuzzleHttp\Psr7\Response $response
42 42
      */
43 43
     public function __construct(\GuzzleHttp\Psr7\Response $response) {
44 44
         $this->response = $response;
Please login to merge, or discard this patch.
src/Profile.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use BuzzBoard\Helpers\Text;
19 19
 use BuzzBoard\Helpers\Url;
20
-use BuzzBoard\Helpers\Time;
21 20
 use BuzzBoard\Network\Http;
22 21
 use BuzzBoard\Exceptions\InvalidArgumentException;
23 22
 
Please login to merge, or discard this patch.
src/Client.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@
 block discarded – undo
46 46
      * @return void
47 47
      */
48 48
     public function __construct($apiKey = null) {
49
-        if ($apiKey !== null)
50
-            self::setKey($apiKey);
49
+        if ($apiKey !== null) {
50
+                    self::setKey($apiKey);
51
+        }
51 52
     }
52 53
 
53 54
     /**
Please login to merge, or discard this patch.