1 | <?php |
||
13 | class Usher |
||
14 | { |
||
15 | const DEFAULT_MAX_TRIES = 100000; |
||
16 | |||
17 | /** @var int */ |
||
18 | protected $maxTries; |
||
19 | |||
20 | /** @var \SixtyNine\Cloud\Usher\MaskInterface */ |
||
21 | protected $mask; |
||
22 | |||
23 | /** @var \SixtyNine\Cloud\Placer\PlacerInterface */ |
||
24 | protected $placer; |
||
25 | |||
26 | /** @var \SixtyNine\Cloud\FontMetrics */ |
||
27 | protected $metrics; |
||
28 | |||
29 | /** |
||
30 | * @param int $imgWidth |
||
31 | * @param int $imgHeight |
||
32 | * @param PlacerInterface $placer |
||
33 | * @param FontMetrics $metrics |
||
34 | * @param int $maxTries |
||
35 | */ |
||
36 | 4 | public function __construct( |
|
51 | |||
52 | /** |
||
53 | * @param string $word |
||
54 | * @param string $font |
||
55 | * @param int $size |
||
56 | * @param int $angle |
||
57 | * @return bool|Box |
||
58 | */ |
||
59 | 4 | public function getPlace($word, $font, $size, $angle) |
|
72 | |||
73 | /** |
||
74 | * Search a free place for a new box. |
||
75 | * @param \SixtyNine\Cloud\Model\Box $bounds |
||
76 | * @param \SixtyNine\Cloud\Model\Box $box |
||
77 | * @return bool|Box |
||
78 | */ |
||
79 | 4 | protected function searchPlace(Box $bounds, Box $box) |
|
111 | } |
||
112 |
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.