Completed
Branch develop (966c07)
by Carlos
02:52
created
src/Core/AbstractAPI.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Attache access token to request query.
171 171
      *
172
-     * @return Closure
172
+     * @return \Closure
173 173
      */
174 174
     public function accessTokenMiddleware()
175 175
     {
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     /**
193 193
      * Log the request.
194 194
      *
195
-     * @return \GuzzleHttp\Middleware
195
+     * @return \Closure
196 196
      */
197 197
     public function logMiddleware()
198 198
     {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * Return retry middleware.
207 207
      *
208
-     * @return \GuzzleHttp\RetryMiddleware
208
+     * @return \Closure
209 209
      */
210 210
     protected function retryMiddleware()
211 211
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 use EasyWeChat\Core\Exceptions\HttpException;
25 25
 use EasyWeChat\Support\Collection;
26 26
 use EasyWeChat\Support\Log;
27
-use GuzzleHttp\Exception\RequestException;
28 27
 use GuzzleHttp\Middleware;
29 28
 use GuzzleHttp\Psr7\Uri;
30 29
 use Psr\Http\Message\RequestInterface;
Please login to merge, or discard this patch.
src/Core/Http.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param string $url
55 55
      * @param array  $options
56 56
      *
57
-     * @return array|bool
57
+     * @return ResponseInterface
58 58
      *
59 59
      * @throws HttpException
60 60
      */
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param string       $url
70 70
      * @param array|string $options
71 71
      *
72
-     * @return array|bool
72
+     * @return ResponseInterface
73 73
      *
74 74
      * @throws HttpException
75 75
      */
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param string|array $options
88 88
      * @param int          $encodeOption
89 89
      *
90
-     * @return array|bool
90
+     * @return ResponseInterface
91 91
      *
92 92
      * @throws HttpException
93 93
      */
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @param array  $files
106 106
      * @param array  $form
107 107
      *
108
-     * @return array|bool
108
+     * @return ResponseInterface
109 109
      *
110 110
      * @throws HttpException
111 111
      */
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     /**
145 145
      * Return GuzzleHttp\Client instance.
146 146
      *
147
-     * @return \GuzzleHttp\Client.
147
+     * @return HttpClient
148 148
      */
149 149
     public function getClient()
150 150
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * @param string $method
187 187
      * @param array  $options
188 188
      *
189
-     * @return array|bool
189
+     * @return ResponseInterface
190 190
      *
191 191
      * @throws HttpException
192 192
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
 use GuzzleHttp\Client as HttpClient;
27 27
 use GuzzleHttp\HandlerStack;
28 28
 use GuzzleHttp\Psr7\Request;
29
-use GuzzleHttp\Psr7\Response;
30 29
 use Psr\Http\Message\ResponseInterface;
31 30
 
32 31
 /**
Please login to merge, or discard this patch.
src/Notice/Notice.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * @param int $industryOne
78 78
      * @param int $industryTwo
79 79
      *
80
-     * @return bool
80
+     * @return \EasyWeChat\Support\Collection
81 81
      */
82 82
     public function setIndustry($industryOne, $industryTwo)
83 83
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @param string $shortId
96 96
      *
97
-     * @return string
97
+     * @return \EasyWeChat\Support\Collection
98 98
      */
99 99
     public function addTemplate($shortId)
100 100
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @param $data
110 110
      *
111
-     * @return mixed
111
+     * @return \EasyWeChat\Support\Collection
112 112
      *
113 113
      * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException
114 114
      */
Please login to merge, or discard this patch.
src/Staff/MessageBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     /**
125 125
      * Send the message.
126 126
      *
127
-     * @return bool
127
+     * @return \EasyWeChat\Support\Collection
128 128
      *
129 129
      * @throws RuntimeException
130 130
      */
Please login to merge, or discard this patch.
src/Staff/Staff.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * List all staffs.
40 40
      *
41
-     * @return array
41
+     * @return \EasyWeChat\Support\Collection
42 42
      */
43 43
     public function lists()
44 44
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * List all online staffs.
50 50
      *
51
-     * @return array
51
+     * @return \EasyWeChat\Support\Collection
52 52
      */
53 53
     public function onlines()
54 54
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param string $nickname
63 63
      * @param string $password
64 64
      *
65
-     * @return bool
65
+     * @return \EasyWeChat\Support\Collection
66 66
      */
67 67
     public function create($email, $nickname, $password)
68 68
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param string $nickname
83 83
      * @param string $password
84 84
      *
85
-     * @return bool
85
+     * @return \EasyWeChat\Support\Collection
86 86
      */
87 87
     public function update($email, $nickname, $password)
88 88
     {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @param string $email
102 102
      *
103
-     * @return bool
103
+     * @return \EasyWeChat\Support\Collection
104 104
      */
105 105
     public function delete($email)
106 106
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param string $email
118 118
      * @param string $path
119 119
      *
120
-     * @return bool
120
+     * @return \EasyWeChat\Support\Collection
121 121
      */
122 122
     public function avatar($email, $path)
123 123
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @param string|array $message
147 147
      *
148
-     * @return mixed
148
+     * @return \EasyWeChat\Support\Collection
149 149
      */
150 150
     public function send($message)
151 151
     {
Please login to merge, or discard this patch.