Kaynağa Gözat

:book: remove remaining instances of empty()

smiley 2 ay önce
ebeveyn
işleme
5c948cffd4

+ 1 - 1
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;
 			}
 

+ 2 - 2
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){