Test Failed
Branch master (43af15)
by Yassine
02:23
created
src/FacebookRequest.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -214,6 +214,7 @@  discard block
 block discarded – undo
214 214
      * Set the HTTP method for this request.
215 215
      *
216 216
      * @param string
217
+     * @param string|null $method
217 218
      */
218 219
     public function setMethod($method)
219 220
     {
@@ -250,6 +251,7 @@  discard block
 block discarded – undo
250 251
      * Set the endpoint for this request.
251 252
      *
252 253
      * @param string
254
+     * @param string|null $endpoint
253 255
      *
254 256
      * @return FacebookRequest
255 257
      *
Please login to merge, or discard this patch.
src/FileUpload/FacebookResumableUploader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
      * @param string $endpoint The endpoint to POST to.
157 157
      * @param array $params The params to send with the request.
158 158
      *
159
-     * @return array
159
+     * @return FacebookFile
160 160
      */
161 161
     private function sendUploadRequest($endpoint, $params = [])
162 162
     {
Please login to merge, or discard this patch.
src/Helper/FacebookRedirectLoginHelper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * Returns the URL to send the user in order to login to Facebook.
119 119
      *
120 120
      * @param string $redirectUrl The URL Facebook should redirect users to after login.
121
-     * @param array $scope List of permissions to request during login.
121
+     * @param string[] $scope List of permissions to request during login.
122 122
      * @param string $separator The separator to use in http_build_query().
123 123
      *
124 124
      * @return string
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * Returns the URL to send the user in order to log out of Facebook.
133 133
      *
134
-     * @param AccessToken|string $accessToken The access token that will be logged out.
134
+     * @param string $accessToken The access token that will be logged out.
135 135
      * @param string $next The url Facebook should redirect the user to after a successful logout.
136 136
      * @param string $separator The separator to use in http_build_query().
137 137
      *
Please login to merge, or discard this patch.
src/SignedRequest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      * Returns a property from the signed request data if available.
91 91
      *
92 92
      * @param string     $key
93
-     * @param mixed|null $default
93
+     * @param integer $default
94 94
      *
95 95
      * @return mixed|null
96 96
      */
Please login to merge, or discard this patch.
src/Url/FacebookUrlManipulator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * Remove params from a URL.
35 35
      *
36 36
      * @param string $url            The URL to filter.
37
-     * @param array  $paramsToFilter The params to filter from the URL.
37
+     * @param string[]  $paramsToFilter The params to filter from the URL.
38 38
      *
39 39
      * @return string The URL with the params removed.
40 40
      */
Please login to merge, or discard this patch.
tests/FacebookBatchRequestTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -327,6 +327,9 @@  discard block
 block discarded – undo
327 327
         $this->assertEquals($expectedBatchParams, $params);
328 328
     }
329 329
 
330
+    /**
331
+     * @param string $expectedToken
332
+     */
330 333
     private function assertRequestContainsAppAndToken(FacebookRequest $request, FacebookApp $expectedApp, $expectedToken)
331 334
     {
332 335
         $app = $request->getApp();
@@ -346,6 +349,9 @@  discard block
 block discarded – undo
346 349
         return $headers;
347 350
     }
348 351
 
352
+    /**
353
+     * @param integer $number
354
+     */
349 355
     private function createAndAppendRequestsTo(FacebookBatchRequest $batchRequest, $number)
350 356
     {
351 357
         for ($i = 0; $i < $number; $i++) {
Please login to merge, or discard this patch.