Completed
Pull Request — develop (#180)
by
unknown
02:48
created
src/Request.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Psr\Log\LoggerInterface;
10 10
 use Psr\Log\NullLogger;
11 11
 use SimpleXMLElement;
12
-use Ups\Exception\InvalidResponseException;
13 12
 use Ups\Exception\RequestException;
14 13
 
15 14
 class Request implements RequestInterface, LoggerAwareInterface
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
-     * @param $access
148
+     * @param string $access
149 149
      *
150 150
      * @return $this
151 151
      */
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-     * @param $request
168
+     * @param string $request
169 169
      *
170 170
      * @return $this
171 171
      */
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     }
186 186
 
187 187
     /**
188
-     * @param $endpointUrl
188
+     * @param string $endpointUrl
189 189
      *
190 190
      * @return $this
191 191
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'endpointurl' => $this->getEndpointUrl(),
85 85
         ]);
86 86
 
87
-        $this->logger->debug('Request: ' . $this->getRequest(), [
87
+        $this->logger->debug('Request: '.$this->getRequest(), [
88 88
             'id' => $id,
89 89
             'endpointurl' => $this->getEndpointUrl(),
90 90
         ]);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $response = $client->post(
96 96
                 $this->getEndpointUrl(),
97 97
                 [
98
-                    'body' => $this->getAccess() . $this->getRequest(),
98
+                    'body' => $this->getAccess().$this->getRequest(),
99 99
                     'headers' => [
100 100
                         'Content-type' => 'application/x-www-form-urlencoded; charset=utf-8',
101 101
                         'Accept-Charset' => 'UTF-8',
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 'endpointurl' => $this->getEndpointUrl(),
112 112
             ]);
113 113
 
114
-            $this->logger->debug('Response: ' . $body, [
114
+            $this->logger->debug('Response: '.$body, [
115 115
                 'id' => $id,
116 116
                 'endpointurl' => $this->getEndpointUrl(),
117 117
             ]);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 'endpointurl' => $this->getEndpointUrl(),
141 141
             ]);
142 142
 
143
-            throw new RequestException('Failure: ' . $e->getMessage());
143
+            throw new RequestException('Failure: '.$e->getMessage());
144 144
         }
145 145
     }
146 146
 
Please login to merge, or discard this patch.