From 5c948cffd49da862d089541c19bd009ae8b9952e Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 9 Oct 2025 21:34:04 +0200 Subject: [PATCH] :book: remove remaining instances of empty() --- docs/Customizing/QROutputAbstract.md | 2 +- docs/qroptions-doc.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Customizing/QROutputAbstract.md b/docs/Customizing/QROutputAbstract.md index b918ca902..c13ec11e1 100644 --- a/docs/Customizing/QROutputAbstract.md +++ b/docs/Customizing/QROutputAbstract.md @@ -211,7 +211,7 @@ class MyOutput extends QROutputAbstract{ // loop over the paths foreach($paths as $M_TYPE_LAYER => &$path){ - if(empty($path)){ + if($path === []){ continue; } diff --git a/docs/qroptions-doc.php b/docs/qroptions-doc.php index 989322158..4474ac8d9 100644 --- a/docs/qroptions-doc.php +++ b/docs/qroptions-doc.php @@ -67,7 +67,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re } // add a "see also" section - if(!empty($see)){ + if($see !== []){ $content[] = "\n**See also:**\n"; foreach($see as $line){ @@ -96,7 +96,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re } // add "Links" section - if(!empty($link)){ + if($link !== []){ $content[] = "\n**Links:**\n"; foreach($link as $line){