mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-18 10:10:05 +00:00
📖 remove remaining instances of empty()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user