| Conditions | 1 |
| Paths | 1 |
| Total Lines | 4 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | function tearDown() |
||
| 25 | { |
||
| 26 | /** @noinspection PhpUsageOfSilenceOperatorInspection */ |
||
| 27 | @unlink(self::$existFileName); |
||
|
1 ignored issue
–
show
|
|||
| 28 | } |
||
| 68 |
Generally, we recommend to declare visibility for all methods in your source code. This has the advantage of clearly communication to other developers, and also yourself, how this method should be consumed.
If you are not sure which visibility to choose, it is a good idea to start with the most restrictive visibility, and then raise visibility as needed, i.e. start with
private, and only raise it toprotectedif a sub-class needs to have access, orpublicif an external class needs access.