1 | <?php |
||
10 | abstract class FeatureTestCase extends \Tests\TestCase |
||
11 | { |
||
12 | use UsesDatabase; |
||
13 | use DbUtils; |
||
14 | |||
15 | /** @var User */ |
||
16 | public $user; |
||
17 | |||
18 | public function setUp() |
||
32 | |||
33 | /** |
||
34 | * Create and return a new user. |
||
35 | * |
||
36 | * @param array $properties |
||
37 | * |
||
38 | * @return \App\Models\User |
||
39 | */ |
||
40 | protected function ensureUser($properties = []) |
||
46 | |||
47 | protected function ensureAuthenticated() |
||
53 | } |
||
54 |
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.