From 7e3298753a9f93405ef44b46ba4db4ca98553b51 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sat, 14 Nov 2015 04:08:07 -0500 Subject: [PATCH] Use ternary operator where aplicable --- program/lib/Roundcube/rcube_imap_generic.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index f45f608..caf2ebe 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -194,7 +194,7 @@ do { if ($this->eof()) { - return $line ? $line : null; + return $line ?: null; } $buffer = fgets($this->fp, $size); @@ -462,7 +462,7 @@ } } - return !empty($result) ? $result : false; + return $result ?: false; } /** -- Gitblit v1.9.1