Completed
Pull Request — master (#64)
by Márk
07:20
created

PluginClient::sendRequest()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 19
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 3.1406

Importance

Changes 5
Bugs 1 Features 0
Metric Value
c 5
b 1
f 0
dl 0
loc 19
ccs 6
cts 8
cp 0.75
rs 9.4285
cc 3
eloc 9
nc 2
nop 1
crap 3.1406
1
<?php
2
3
namespace Http\Client\Plugin;
4
5
use Http\Client\Exception;
6
use Http\Client\Plugin\Exception\LoopException;
7
use Psr\Http\Message\RequestInterface;
8
9
/**
10
 * @author Joel Wurtz <[email protected]>
11
 *
12
 * @deprecated since version 1.1, to be removed in 2.0. Use {@link \Http\Client\Common\PluginClient} instead.
13
 */
14
final class PluginClient extends \Http\Client\Common\PluginClient
15
{
16
    /**
17
     * {@inheritdoc}
18
     *
19
     * Throw the correct loop exception.
20
     */
21
    protected function createLoopException(RequestInterface $request)
22
    {
23
        return new LoopException('Too many restarts in plugin client', $request);
0 ignored issues
show
Deprecated Code introduced by
The class Http\Client\Plugin\Exception\LoopException has been deprecated with message: since version 1.1, to be removed in 2.0. Use {@link \Http\Client\Common\Exception\LoopException} instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
24
    }
25
}
26