It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
12
*/
13
public static function timestampToHttpDate($timestamp) {
14
if($timestamp == NULL) { return NULL; }
15
return gmdate("D, d M Y H:i:s T", strtotime($timestamp));
16
}
17
18
/**
19
* Convert timestamp to x unit(plural), like "6 minutes" or "1 day".
20
*
21
* @param string $timestamp
22
* @param int $limit Limit in seconds when to return nothing
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.