From 0b42125bce637dfab9e297e01809f4bcedc90280 Mon Sep 17 00:00:00 2001 From: corentin Date: Wed, 12 Oct 2016 09:55:47 +0200 Subject: [PATCH] isempty(): Fix code according to PSR or symfony codestyles --- src/Model/Translatable/TranslationMethods.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Model/Translatable/TranslationMethods.php b/src/Model/Translatable/TranslationMethods.php index 8e2ce22e..89d3d926 100644 --- a/src/Model/Translatable/TranslationMethods.php +++ b/src/Model/Translatable/TranslationMethods.php @@ -94,12 +94,15 @@ public function getLocale() public function isEmpty() { foreach (get_object_vars($this) as $var => $value) { - if (in_array($var, array('id', 'translatable', 'locale'))) + if (in_array($var, ['id', 'translatable', 'locale'])) { continue; + } - if (!empty($value)) + if (!empty($value)) { return false; + } } + return true; } }