Completed
Push — develop ( bc21b0...0bdfd4 )
by Adam
24:26 queued 09:29
created
src/Common/RequestBuilder.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * Create a new PSR-7 request
38 38
      *
39 39
      * @param string                                     $method
40
-     * @param string|UriInterface                        $uri
40
+     * @param string                        $uri
41 41
      * @param array|null                                 $headers
42 42
      * @param array|resource|string|StreamInterface|null $body
43 43
      *
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
         return $request;
55 55
     }
56 56
 
57
+    /**
58
+     * @param string $method
59
+     */
57 60
     protected function createMultipartStreamRequest($method, $uri, array $headers = [], array $body = [])
58 61
     {
59 62
         foreach ($body as $item) {
Please login to merge, or discard this patch.
src/Common/tests/RequestBuilderTest.php 1 patch
Unused Use Statements   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,18 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace IBM\Watson\Common\tests;
4 4
 
5
-use GuzzleHttp\Psr7\Request;
6
-use GuzzleHttp\Psr7\Stream;
7 5
 use Http\Discovery\MessageFactoryDiscovery;
8 6
 use Http\Discovery\StreamFactoryDiscovery;
9 7
 use Http\Message\MultipartStream\MultipartStreamBuilder;
10
-use Http\Message\RequestFactory;
11
-use Http\Message\StreamFactory;
12 8
 use IBM\Watson\Common\RequestBuilder;
13
-use PHPUnit\Framework\TestCase;
14 9
 use Mockery as m;
10
+use PHPUnit\Framework\TestCase;
15 11
 use Psr\Http\Message\RequestInterface;
16
-use Psr\Http\Message\StreamInterface;
17 12
 
18 13
 class RequestBuilderTest extends TestCase
19 14
 {
Please login to merge, or discard this patch.
src/VisualRecognition/Api/Classify.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     /**
11 11
      * Classify image
12 12
      *
13
-     * @param string|resource $image
13
+     * @param string $image
14 14
      * @param array           $params
15 15
      *
16 16
      * @return \IBM\Watson\VisualRecognition\Model\ClassifiedImages
Please login to merge, or discard this patch.
src/VisualRecognition/tests/Api/ClassifyTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 use IBM\Watson\Common\Hydrator\ModelHydrator;
9 9
 use IBM\Watson\Common\RequestBuilder;
10 10
 use IBM\Watson\VisualRecognition\Api\Classify;
11
-use PHPUnit\Framework\TestCase;
12 11
 use Mockery as m;
12
+use PHPUnit\Framework\TestCase;
13 13
 
14 14
 class ClassifyTest extends TestCase
15 15
 {
Please login to merge, or discard this patch.