Completed
Push — develop ( 68bb20...41c5da )
by Risan Bagja
01:46
created
src/Config/UriConfig.php 1 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/Request/AuthorizationHeader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,10 +143,10 @@
 block discarded – undo
143 143
      */
144 144
     public function normalizeProtocolParameters(array $parameters)
145 145
     {
146
-        array_walk($parameters, function (&$value, $key) {
147
-            $value = rawurlencode($key) . '="' . rawurlencode($value) . '"';
146
+        array_walk($parameters, function(&$value, $key) {
147
+            $value = rawurlencode($key).'="'.rawurlencode($value).'"';
148 148
         });
149 149
 
150
-        return 'OAuth ' . implode(', ', $parameters);
150
+        return 'OAuth '.implode(', ', $parameters);
151 151
     }
152 152
 }
Please login to merge, or discard this patch.
src/Config/ConfigFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         ];
104 104
 
105 105
         foreach ($requiredParams as $param) {
106
-            if (! isset($config[$param])) {
106
+            if (!isset($config[$param])) {
107 107
                 throw new InvalidArgumentException("Missing OAuth1 client configuration: {$param}.");
108 108
             }
109 109
         }
Please login to merge, or discard this patch.
src/Credentials/CredentialsFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     public function getMissingParameterKey(array $parameters, array $requiredKeys = [])
76 76
     {
77 77
         foreach ($requiredKeys as $key) {
78
-            if (! isset($parameters[$key])) {
78
+            if (!isset($parameters[$key])) {
79 79
                 return $key;
80 80
             }
81 81
         }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      * Get missing parameter's key.
72 72
      *
73 73
      * @param array $parameters
74
-     * @param array $requiredKeys
74
+     * @param string[] $requiredKeys
75 75
      *
76 76
      * @return string|null
77 77
      */
Please login to merge, or discard this patch.
src/OAuth1Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             $signer = new HmacSha1Signer;
29 29
         }
30 30
 
31
-        if (! $signer instanceof SignerInterface) {
31
+        if (!$signer instanceof SignerInterface) {
32 32
             throw new InvalidArgumentException('The signer must implement the \Risan\OAuth1\Signature\SignerInterface.');
33 33
         }
34 34
         
Please login to merge, or discard this patch.
src/Request/UriParserInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
      * Resolve the URI against the base URI.
38 38
      *
39 39
      * @param \Psr\Http\Message\UriInterface $baseUri
40
-     * @param \Psr\Http\Message\UriInterface $relativeUri
41 40
      *
42 41
      * @return \Psr\Http\Message\UriInterface
43 42
      */
Please login to merge, or discard this patch.