Completed
Push — develop ( c8d2e9...9b1d71 )
by Adam
03:00
created
src/Common/Api/AbstractApi.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @param string|UriInterface $path
61
+     * @param string $path
62 62
      * @param array               $params
63 63
      * @param array               $headers
64 64
      *
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @param string|UriInterface $path
78
+     * @param string $path
79 79
      * @param array               $params
80 80
      * @param array               $headers
81 81
      *
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     /**
91 91
      * @param string|UriInterface                  $path
92
-     * @param resource|string|StreamInterface|null $body
92
+     * @param string $body
93 93
      * @param array                                $headers
94 94
      *
95 95
      * @return \Psr\Http\Message\ResponseInterface
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-     * @param string|UriInterface $path
106
+     * @param string $path
107 107
      * @param array               $params
108 108
      * @param array               $headers
109 109
      *
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param string|UriInterface $path
121
+     * @param string $path
122 122
      * @param array               $params
123 123
      * @param array               $headers
124 124
      *
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 
135 135
     /**
136
-     * @param string|UriInterface $path
136
+     * @param string $path
137 137
      * @param array               $params
138 138
      * @param array               $headers
139 139
      *
Please login to merge, or discard this patch.
src/Common/HttpClient/Builder.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -153,6 +153,7 @@
 block discarded – undo
153 153
 
154 154
     /**
155 155
      * @param \Http\Client\Common\Plugin ...$plugins
156
+     * @param Plugin[] $plugins
156 157
      *
157 158
      * @return $this
158 159
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,15 +3,12 @@
 block discarded – undo
3 3
 namespace IBM\Watson\Common\HttpClient;
4 4
 
5 5
 use Http\Client\Common\Plugin;
6
-use Http\Client\Common\Plugin\AuthenticationPlugin;
7 6
 use Http\Client\Common\PluginClient;
7
+use Http\Client\Common\Plugin\AuthenticationPlugin;
8 8
 use Http\Client\HttpClient;
9
-use Http\Discovery\UriFactoryDiscovery;
10
-use http\Exception\RuntimeException;
11 9
 use Http\Message\Authentication\BasicAuth;
12 10
 use Http\Message\UriFactory;
13 11
 use IBM\Watson\Common\Exception\Api\InvalidArgumentException;
14
-use IBM\Watson\Common\Hydrator\HydratorInterface;
15 12
 use IBM\Watson\Common\Util\DiscoveryTrait;
16 13
 
17 14
 /**
Please login to merge, or discard this patch.
src/Common/spec/HttpClient/BuilderSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use IBM\Watson\Common\HttpClient\Builder;
6 6
 use PhpSpec\ObjectBehavior;
7
-use Prophecy\Argument;
8 7
 
9 8
 class BuilderSpec extends ObjectBehavior
10 9
 {
Please login to merge, or discard this patch.
src/Common/spec/Hydrator/ArrayHydratorSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace spec\IBM\Watson\Common\Hydrator;
4 4
 
5 5
 use IBM\Watson\Common\Hydrator\ArrayHydrator;
6
-use PhpSpec\ObjectBehavior;
7 6
 use Mockery as m;
7
+use PhpSpec\ObjectBehavior;
8 8
 use Psr\Http\Message\ResponseInterface;
9 9
 use Psr\Http\Message\StreamInterface;
10 10
 
Please login to merge, or discard this patch.
src/Common/spec/Hydrator/ModelHydratorSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use IBM\Watson\Common\Hydrator\ModelHydrator;
6 6
 use PhpSpec\ObjectBehavior;
7
-use Prophecy\Argument;
8 7
 
9 8
 class ModelHydratorSpec extends ObjectBehavior
10 9
 {
Please login to merge, or discard this patch.
src/Common/spec/RequestBuilderSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use IBM\Watson\Common\RequestBuilder;
6 6
 use PhpSpec\ObjectBehavior;
7
-use Prophecy\Argument;
8 7
 
9 8
 class RequestBuilderSpec extends ObjectBehavior
10 9
 {
Please login to merge, or discard this patch.
src/Common/spec/stubs/ApiSpec.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,11 @@
 block discarded – undo
3 3
 namespace spec\IBM\Watson\Common\stubs;
4 4
 
5 5
 use Http\Client\HttpClient;
6
-use http\Env\Response;
7 6
 use IBM\Watson\Common\Api\AbstractApi;
8 7
 use IBM\Watson\Common\Hydrator\HydratorInterface;
9 8
 use IBM\Watson\Common\RequestBuilder;
10 9
 use IBM\Watson\Common\stubs\Api;
11 10
 use PhpSpec\ObjectBehavior;
12
-use Prophecy\Argument;
13 11
 
14 12
 class ApiSpec extends ObjectBehavior
15 13
 {
Please login to merge, or discard this patch.
src/Common/tests/HttpClient/BuilderTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 use Http\Client\HttpClient;
7 7
 use Http\Message\UriFactory;
8 8
 use IBM\Watson\Common\HttpClient\Builder;
9
-use PHPUnit\Framework\TestCase;
10 9
 use Mockery as m;
10
+use PHPUnit\Framework\TestCase;
11 11
 
12 12
 class BuilderTest extends TestCase
13 13
 {
Please login to merge, or discard this patch.
src/Common/tests/Hydrator/ArrayHydratorTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace IBM\Watson\Common\Hydrator\ArrayHydratorTest;
4 4
 
5 5
 use IBM\Watson\Common\Hydrator\ArrayHydrator;
6
-use PHPUnit\Framework\TestCase;
7 6
 use Mockery as m;
7
+use PHPUnit\Framework\TestCase;
8 8
 use Psr\Http\Message\ResponseInterface;
9 9
 use Psr\Http\Message\StreamInterface;
10 10
 
Please login to merge, or discard this patch.