1 | <?php |
||
8 | class MysqlDumper implements DumperInterface |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $host; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $username; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $password; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $database; |
||
21 | |||
22 | /** |
||
23 | * @param string $host |
||
24 | * @param string $username |
||
25 | * @param string $password |
||
26 | * @param string $database |
||
27 | */ |
||
28 | public function __construct($host, $username, $password, $database) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function dump($dumpTargetFile = null, array $ignoreTables = []) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function restore($dumpTargetFile, array $ignoreTables = []) |
||
77 | } |
||
78 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.