@@ -332,7 +332,7 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
332332 {
333333 $ buffer = '' ;
334334
335- if (empty ( $ items) ) {
335+ if ($ items === [] ) {
336336 return $ buffer ;
337337 }
338338
@@ -437,7 +437,7 @@ private function renderTraitOrClassItems(array $items, Template $template, Templ
437437 */
438438 private function renderFunctionItems (array $ functions , Template $ template ): string
439439 {
440- if (empty ( $ functions) ) {
440+ if ($ functions === [] ) {
441441 return '' ;
442442 }
443443
@@ -570,7 +570,7 @@ private function renderSourceWithLineCoverage(FileNode $node): string
570570
571571 $ popover = '' ;
572572
573- if (! empty ( $ popoverTitle) ) {
573+ if ($ popoverTitle !== '' ) {
574574 $ popover = sprintf (
575575 ' data-bs-title="%s" data-bs-content="%s" data-bs-placement="top" data-bs-html="true" ' ,
576576 $ popoverTitle ,
@@ -848,7 +848,7 @@ private function renderBranchLines(array $branch, array $codeLines, array $testD
848848
849849 $ popover = '' ;
850850
851- if (! empty ( $ popoverTitle) ) {
851+ if ($ popoverTitle !== '' ) {
852852 $ popover = sprintf (
853853 ' data-bs-title="%s" data-bs-content="%s" data-bs-placement="top" data-bs-html="true" ' ,
854854 $ popoverTitle ,
@@ -966,7 +966,7 @@ private function renderPathLines(array $path, array $branches, array $codeLines,
966966
967967 $ popover = '' ;
968968
969- if (! empty ( $ popoverTitle) ) {
969+ if ($ popoverTitle !== '' ) {
970970 $ popover = sprintf (
971971 ' data-bs-title="%s" data-bs-content="%s" data-bs-placement="top" data-bs-html="true" ' ,
972972 $ popoverTitle ,
0 commit comments