Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class IpLocationTest extends AbstractUnitTest |
||
16 | { |
||
17 | /** |
||
18 | * @covers \Lochmueller\LanguageDetection\Service\IpLocation |
||
19 | */ |
||
20 | public function testGetLocationForValidIp(): void |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @covers \Lochmueller\LanguageDetection\Service\IpLocation |
||
30 | */ |
||
31 | public function testEmptyIpDirectNull(): void |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @covers \Lochmueller\LanguageDetection\Service\IpLocation |
||
40 | */ |
||
41 | public function testGetLocationForInvalidIp(): void |
||
47 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.