Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class GetEncodingBench |
||
|
|||
12 | { |
||
13 | /** @var EncodingDetector */ |
||
14 | private $encodingDetector; |
||
15 | |||
16 | /** |
||
17 | * GetEncodingBench constructor. |
||
18 | */ |
||
19 | public function __construct() |
||
20 | { |
||
21 | $this->encodingDetector = new EncodingDetector(); |
||
22 | } |
||
23 | |||
24 | |||
25 | public function textProvider() |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @Revs(1000) |
||
32 | * @Iterations(5) |
||
33 | * @ParamProviders({"textProvider"}) |
||
34 | * @param array $textArray |
||
35 | */ |
||
36 | public function benchGetEncoding(array $textArray) |
||
41 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.