@@ -332,7 +332,7 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
332
332
{
333
333
$ buffer = '' ;
334
334
335
- if (empty ( $ items) ) {
335
+ if ($ items === [] ) {
336
336
return $ buffer ;
337
337
}
338
338
@@ -437,7 +437,7 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
437
437
*/
438
438
private function renderFunctionItems (array $ functions , Template $ template ): string
439
439
{
440
- if (empty ( $ functions) ) {
440
+ if ($ functions === [] ) {
441
441
return '' ;
442
442
}
443
443
@@ -570,7 +570,7 @@ private function renderSourceWithLineCoverage(FileNode $node): string
570
570
571
571
$ popover = '' ;
572
572
573
- if (! empty ( $ popoverTitle) ) {
573
+ if ($ popoverTitle !== '' ) {
574
574
$ popover = sprintf (
575
575
' data-bs-title="%s" data-bs-content="%s" data-bs-placement="top" data-bs-html="true" ' ,
576
576
$ popoverTitle ,
@@ -848,7 +848,7 @@ private function renderBranchLines(array $branch, array $codeLines, array $testD
848
848
849
849
$ popover = '' ;
850
850
851
- if (! empty ( $ popoverTitle) ) {
851
+ if ($ popoverTitle !== '' ) {
852
852
$ popover = sprintf (
853
853
' data-bs-title="%s" data-bs-content="%s" data-bs-placement="top" data-bs-html="true" ' ,
854
854
$ popoverTitle ,
@@ -966,7 +966,7 @@ private function renderPathLines(array $path, array $branches, array $codeLines,
966
966
967
967
$ popover = '' ;
968
968
969
- if (! empty ( $ popoverTitle) ) {
969
+ if ($ popoverTitle !== '' ) {
970
970
$ popover = sprintf (
971
971
' data-bs-title="%s" data-bs-content="%s" data-bs-placement="top" data-bs-html="true" ' ,
972
972
$ popoverTitle ,
0 commit comments