Completed
Push — develop ( 0050db...7fb870 )
by Risan Bagja
01:33
created
src/Config/UriConfig.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
     /**
191 191
      * Parse and build the given URI.
192 192
      *
193
-     * @param  \Psr\Http\Message\UriInterface|string $uri
193
+     * @param  \Psr\Http\Message\UriInterface|null $uri
194 194
      * @return \Psr\Http\Message\UriInterface
195 195
      */
196 196
     public function build($uri)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Risan\OAuth1\Config;
4 4
 
5
-use GuzzleHttp\Psr7\Uri;
6 5
 use InvalidArgumentException;
7
-use GuzzleHttp\Psr7\UriResolver;
8 6
 
9 7
 class UriConfig implements UriConfigInterface
10 8
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         ];
106 106
 
107 107
         foreach ($requiredParams as $param) {
108
-            if (! isset($uris[$param])) {
108
+            if (!isset($uris[$param])) {
109 109
                 throw new InvalidArgumentException("Missing URI configuration: {$param}.");
110 110
             }
111 111
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function setBase(UriInterface $uri)
124 124
     {
125
-        if (! $this->parser->isAbsolute($uri)) {
125
+        if (!$this->parser->isAbsolute($uri)) {
126 126
             throw new InvalidArgumentException('The base URI must be absolute.');
127 127
         }
128 128
 
@@ -212,6 +212,6 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function shouldBeResolvedToAbsoluteUri(UriInterface $uri)
214 214
     {
215
-        return ! $this->parser->isAbsolute($uri) && $this->hasBase();
215
+        return !$this->parser->isAbsolute($uri) && $this->hasBase();
216 216
     }
217 217
 }
Please login to merge, or discard this patch.
src/UriParserInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
      * Resolve the URI against the base URI.
27 27
      *
28 28
      * @param  \Psr\Http\Message\UriInterface $baseUri
29
-     * @param  \Psr\Http\Message\UriInterface $relativeUri
30 29
      * @return \Psr\Http\Message\UriInterface
31 30
      */
32 31
     public function resolve(UriInterface $baseUri, UriInterface $uri);
Please login to merge, or discard this patch.