From ab923ca009f31cf8b7734217caebdc1ed114cb5f Mon Sep 17 00:00:00 2001 From: Vitalii Shkolin Date: Fri, 5 Mar 2021 14:12:30 +0200 Subject: [PATCH] Added missing closing tag --- src/Breadcrumbs.php | 2 +- tests/BreadcrumbsTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Breadcrumbs.php b/src/Breadcrumbs.php index cd1c5ed..d58270c 100644 --- a/src/Breadcrumbs.php +++ b/src/Breadcrumbs.php @@ -33,7 +33,7 @@ class Breadcrumbs extends Widget private array $homeItem = []; private bool $withoutHomeItem = false; private string $itemTemplate = "
  • {icon}{link}
  • \n"; - private string $activeItemTemplate = "
  • {icon}{label}
  • \n"; + private string $activeItemTemplate = "
  • {icon}{label}
  • \n"; private array $items = []; private array $options = []; private array $itemsOptions = []; diff --git a/tests/BreadcrumbsTest.php b/tests/BreadcrumbsTest.php index b8602ee..5b74347 100644 --- a/tests/BreadcrumbsTest.php +++ b/tests/BreadcrumbsTest.php @@ -128,7 +128,7 @@ public function testBreadcrumbsItemTemplateActive(): void $html = Breadcrumbs::widget() ->homeItem(['label' => 'Index', 'url' => '/index']) - ->activeItemTemplate("
  • {label}
  • \n") + ->activeItemTemplate("
  • {label}
  • \n") ->items([['label' => 'About', 'url' => '/about']]) ->render(); $expected = <<<'HTML' @@ -157,7 +157,7 @@ public function testBreadcrumbsLinksEmptyUrl(): void HTML;