Completed
Push — master ( d95cc8...cdb93d )
by Jan
06:59
created

Curl_exec_false_Mock.php ➔ curl_getinfo()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 4
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 6
c 1
b 0
f 0
nc 3
nop 2
dl 0
loc 4
rs 10
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Api\Driver;
4
5
function curl_init($url = null)
0 ignored issues
show
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
6
{
7
	return null;
8
}
9
10
function curl_setopt($ch, $option, $value)
0 ignored issues
show
Unused Code introduced by
The parameter $ch is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $option is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
{
12
	return null;
13
}
14
15
function curl_exec($ch)
0 ignored issues
show
Unused Code introduced by
The parameter $ch is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
{
17
	return false;
18
}
19
20
function curl_error($ch)
0 ignored issues
show
Unused Code introduced by
The parameter $ch is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
{
22
	return 'foo error';
23
}
24
25
function curl_errno($ch)
0 ignored issues
show
Unused Code introduced by
The parameter $ch is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
{
27
	return 11;
28
}
29
30
function curl_getinfo($ch, $opt = null)
0 ignored issues
show
Unused Code introduced by
The parameter $ch is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $opt is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
{
32
	return 'foo getinfo';
33
}
34
35
function curl_close($ch)
0 ignored issues
show
Unused Code introduced by
The parameter $ch is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
36
{
37
38
}
39