Skip to content

Commit 5c948cf

Browse files
committed
📖 remove remaining instances of empty()
1 parent 2b7c9b7 commit 5c948cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/Customizing/QROutputAbstract.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class MyOutput extends QROutputAbstract{
211211
// loop over the paths
212212
foreach($paths as $M_TYPE_LAYER => &$path){
213213

214-
if(empty($path)){
214+
if($path === []){
215215
continue;
216216
}
217217

docs/qroptions-doc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
}
6868

6969
// add a "see also" section
70-
if(!empty($see)){
70+
if($see !== []){
7171
$content[] = "\n**See also:**\n";
7272

7373
foreach($see as $line){
@@ -96,7 +96,7 @@
9696
}
9797

9898
// add "Links" section
99-
if(!empty($link)){
99+
if($link !== []){
100100
$content[] = "\n**Links:**\n";
101101

102102
foreach($link as $line){

0 commit comments

Comments
 (0)