1 | <?php |
||
33 | class ToString implements IConvertibleToString |
||
34 | { |
||
35 | public function __construct() |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | public $x = -1; |
||
|
|||
43 | |||
44 | /** |
||
45 | * @var int |
||
46 | */ |
||
47 | public $y = 1; |
||
48 | |||
49 | |||
50 | /** |
||
51 | * @inheritDoc |
||
52 | */ |
||
53 | public function __toString() |
||
57 | |||
58 | /** |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | public function toString() |
||
65 | } |
||
66 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.