Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class db |
||
8 | { |
||
9 | /** |
||
10 | * PDO. |
||
11 | * |
||
12 | * @var \DB\pdo |
||
13 | */ |
||
14 | private $pdo = null; |
||
15 | |||
16 | public function __construct(\DB\pdo $pdo) |
||
17 | { |
||
18 | global $GLOBALS; |
||
19 | if (!$GLOBALS['proxy_loaded']) { |
||
20 | $this->load_proxies_db(); |
||
21 | } |
||
22 | $this->pdo = $pdo; |
||
23 | } |
||
24 | |||
25 | public function random_proxy(int $n = 1) |
||
27 | } |
||
28 | |||
29 | public function inactive_proxies() |
||
30 | { |
||
31 | return $this->pdo->query("SELECT * FROM `proxies` WHERE `status` = 'inactive'")->row_array(); |
||
32 | } |
||
33 | |||
34 | public function load_proxies_db() |
||
43 | } |
||
44 | |||
45 | public function load_proxies() |
||
48 | } |
||
49 | } |
||
50 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.