| 1 | <?php |
||
| 6 | abstract class TimeSpeller |
||
| 7 | { |
||
| 8 | const YEAR = 'year'; |
||
| 9 | const MONTH = 'month'; |
||
| 10 | const DAY = 'day'; |
||
| 11 | const HOUR = 'hour'; |
||
| 12 | const MINUTE = 'minute'; |
||
| 13 | const SECOND = 'second'; |
||
| 14 | |||
| 15 | const AGO = 'ago'; |
||
| 16 | const IN = 'in'; |
||
| 17 | |||
| 18 | const AND_WORD = 'and'; |
||
| 19 | |||
| 20 | const JUST_NOW = 'just now'; |
||
| 21 | |||
| 22 | const DIRECTION = 1; |
||
| 23 | const SEPARATE = 2; |
||
| 24 | |||
| 25 | public static function spellUnit($count, $unit) {} |
||
| 26 | |||
| 27 | 16 | public static function spellInterval(DateInterval $interval, $options = 0, $limit = 0) |
|
| 69 | } |
||
| 70 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.