소스 검색

:book: remove remaining instances of empty()

smiley 2 달 전
부모
커밋
5c948cffd4
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      docs/Customizing/QROutputAbstract.md
  2. 2 2
      docs/qroptions-doc.php

+ 1 - 1
docs/Customizing/QROutputAbstract.md

@@ -211,7 +211,7 @@ class MyOutput extends QROutputAbstract{
 		// loop over the paths
 		// loop over the paths
 		foreach($paths as $M_TYPE_LAYER => &$path){
 		foreach($paths as $M_TYPE_LAYER => &$path){
 
 
-			if(empty($path)){
+			if($path === []){
 				continue;
 				continue;
 			}
 			}
 
 

+ 2 - 2
docs/qroptions-doc.php

@@ -67,7 +67,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
 	}
 	}
 
 
 	// add a "see also" section
 	// add a "see also" section
-	if(!empty($see)){
+	if($see !== []){
 		$content[] = "\n**See also:**\n";
 		$content[] = "\n**See also:**\n";
 
 
 		foreach($see as $line){
 		foreach($see as $line){
@@ -96,7 +96,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
 	}
 	}
 
 
 	// add "Links" section
 	// add "Links" section
-	if(!empty($link)){
+	if($link !== []){
 		$content[] = "\n**Links:**\n";
 		$content[] = "\n**Links:**\n";
 
 
 		foreach($link as $line){
 		foreach($link as $line){