Fix code style by updated ruleset
[MAILPOET-3912]
This commit is contained in:
@@ -34,23 +34,23 @@ class DateTime {
|
||||
return $dateFormat;
|
||||
}
|
||||
|
||||
public function getCurrentTime($format=false) {
|
||||
public function getCurrentTime($format = false) {
|
||||
if (empty($format)) $format = $this->getTimeFormat();
|
||||
return $this->wp->currentTime($format);
|
||||
}
|
||||
|
||||
public function getCurrentDate($format=false) {
|
||||
public function getCurrentDate($format = false) {
|
||||
if (empty($format)) $format = $this->getDateFormat();
|
||||
return $this->getCurrentTime($format);
|
||||
}
|
||||
|
||||
public function formatTime($timestamp, $format=false) {
|
||||
public function formatTime($timestamp, $format = false) {
|
||||
if (empty($format)) $format = $this->getTimeFormat();
|
||||
|
||||
return date($format, $timestamp);
|
||||
}
|
||||
|
||||
public function formatDate($timestamp, $format=false) {
|
||||
public function formatDate($timestamp, $format = false) {
|
||||
if (empty($format)) $format = $this->getDateFormat();
|
||||
|
||||
return date($format, $timestamp);
|
||||
@@ -61,9 +61,9 @@ class DateTime {
|
||||
* formatted and mapped from DEFAULT_TIME_FORMAT to WordPress time strings.
|
||||
*/
|
||||
public function getTimeInterval(
|
||||
$startTime='00:00:00',
|
||||
$timeStep='+1 hour',
|
||||
$totalSteps=24
|
||||
$startTime = '00:00:00',
|
||||
$timeStep = '+1 hour',
|
||||
$totalSteps = 24
|
||||
) {
|
||||
$steps = [];
|
||||
|
||||
|
Reference in New Issue
Block a user