src/handler/DateMacroHandler.php
Method process
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function process(string $keyword) : string
{
switch($keyword){
case 'DATE_NOW':
return strval(time());
Avoid too many return
statements within this method. Open
Open
return date('n');
Avoid too many return
statements within this method. Open
Open
return date('j');
Avoid too many return
statements within this method. Open
Open
return date('s');
Avoid too many return
statements within this method. Open
Open
return date('H');
Avoid too many return
statements within this method. Open
Open
return date('h');
Avoid too many return
statements within this method. Open
Open
return date('i');
Avoid too many return
statements within this method. Open
Open
return date('d');
Avoid too many return
statements within this method. Open
Open
return $keyword;
Avoid too many return
statements within this method. Open
Open
return sprintf("%06d",($t - floor($t)) * 1000000);