Code Duplication    Length = 8-8 lines in 8 locations

src/AddressValidation.php 1 location

@@ 227-234 (lines=8) @@
224
    /**
225
     * @return RequestInterface
226
     */
227
    public function getRequest()
228
    {
229
        if (null === $this->request) {
230
            $this->request = new Request($this->logger);
231
        }
232
233
        return $this->request;
234
    }
235
236
    /**
237
     * @param RequestInterface $request

src/Locator.php 1 location

@@ 137-144 (lines=8) @@
134
    /**
135
     * @return RequestInterface
136
     */
137
    public function getRequest()
138
    {
139
        if (null === $this->request) {
140
            $this->request = new Request($this->logger);
141
        }
142
143
        return $this->request;
144
    }
145
146
    /**
147
     * @param RequestInterface $request

src/QuantumView.php 1 location

@@ 252-259 (lines=8) @@
249
    /**
250
     * @return RequestInterface
251
     */
252
    public function getRequest()
253
    {
254
        if (null === $this->request) {
255
            $this->request = new Request($this->logger);
256
        }
257
258
        return $this->request;
259
    }
260
261
    /**
262
     * @param RequestInterface $request

src/SimpleAddressValidation.php 1 location

@@ 153-160 (lines=8) @@
150
    /**
151
     * @return RequestInterface
152
     */
153
    public function getRequest()
154
    {
155
        if (null === $this->request) {
156
            $this->request = new Request($this->logger);
157
        }
158
159
        return $this->request;
160
    }
161
162
    /**
163
     * @param RequestInterface $request

src/TimeInTransit.php 1 location

@@ 168-175 (lines=8) @@
165
    /**
166
     * @return RequestInterface
167
     */
168
    public function getRequest()
169
    {
170
        if (null === $this->request) {
171
            $this->request = new Request($this->logger);
172
        }
173
174
        return $this->request;
175
    }
176
177
    /**
178
     * @param RequestInterface $request

src/Tracking.php 1 location

@@ 328-335 (lines=8) @@
325
    /**
326
     * @return RequestInterface
327
     */
328
    public function getRequest()
329
    {
330
        if (null === $this->request) {
331
            $this->request = new Request($this->logger);
332
        }
333
334
        return $this->request;
335
    }
336
337
    /**
338
     * @param RequestInterface $request

src/Rate.php 1 location

@@ 227-234 (lines=8) @@
224
    /**
225
     * @return RequestInterface
226
     */
227
    public function getRequest()
228
    {
229
        if (null === $this->request) {
230
            $this->request = new Request($this->logger);
231
        }
232
233
        return $this->request;
234
    }
235
236
    /**
237
     * @param RequestInterface $request

src/Shipping.php 1 location

@@ 681-688 (lines=8) @@
678
    /**
679
     * @return RequestInterface
680
     */
681
    public function getRequest()
682
    {
683
        if (null === $this->request) {
684
            $this->request = new Request($this->logger);
685
        }
686
687
        return $this->request;
688
    }
689
690
    /**
691
     * @param RequestInterface $request