1 | <?php |
||
36 | class Base62Short extends Base62 |
||
37 | { |
||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | const LENGTH = 15; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | const LENGTH_SECOND = 5; |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | const LENGTH_MICROSECOND = 4; |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | const LENGTH_GROUP = 1; |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | const LENGTH_CUSTOM = 0; |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | const LENGTH_RANDOM = 5; |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | const LENGTH_CHECK_DIGIT = 0; |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | const SEPARATOR = ''; |
||
77 | |||
78 | /** |
||
79 | * Start offset of timestamp |
||
80 | */ |
||
81 | const TIMESTAMP_OFFSET = 1255104000; // 2009-10-10 |
||
|
|||
82 | |||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function explain($uuid) |
||
111 | |||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | protected function generateRandomPart() |
||
124 | |||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | protected function generateTimeParts() |
||
146 | } |
||
147 |
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.