atom-beautify/examples/simple-jsbeautifyrc/test3.php

20 lines
277 B
PHP

<?php
class Date
{
const FORMAT_FULL = 'full';
const FORMAT_LONG = 'long';
const FORMAT_MEDIUM = 'medium';
const FORMAT_SHORT = 'short';
public static function formatDate($time, $format)
{
if(!$time || $time == null)
{
return '';
}
return $time;
}
}