Skip to content

Commit 93f249d

Browse files
TybazethePanz
andauthored
thePanz suggest to reduce a line
Co-authored-by: Emanuele Panzeri <thepanz@gmail.com>
1 parent 5461305 commit 93f249d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/i18n/sfDateFormat.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ public function format($time, $pattern = 'F', $inputPattern = null, $charset = '
239239
}
240240
else
241241
{
242-
$function = $this->getFunctionName($pattern);
243-
if ($function != null)
242+
if (null !== $function = $this->getFunctionName($pattern))
244243
{
245244
$function = ucfirst($function);
246245
$fName = 'get'.$function;

0 commit comments

Comments
 (0)