Skip to content

Commit

Permalink
Fix pipeline errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Nov 10, 2022
1 parent 52dcd4c commit 86bfb4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Collectors/Alerts.php
Expand Up @@ -46,7 +46,7 @@ class Alerts extends BaseCollector
*/
protected array $alerts;

//--------------------------------------------------------------------
// --------------------------------------------------------------------

/**
* Preloads alerts so they are only gathered once.
Expand All @@ -56,7 +56,7 @@ public function __construct()
$this->alerts = AlertsFilter::gather(config('Alerts'));
}

//--------------------------------------------------------------------
// --------------------------------------------------------------------

/**
* Returns the data of this collector to be formatted in the toolbar
Expand All @@ -74,7 +74,7 @@ public function display(): string
return $html;
}

//--------------------------------------------------------------------
// --------------------------------------------------------------------

/**
* Gets the "badge" value for the button.
Expand All @@ -84,7 +84,7 @@ public function getBadgeValue(): int
return count($this->alerts);
}

//--------------------------------------------------------------------
// --------------------------------------------------------------------

/**
* Display the icon.
Expand Down
2 changes: 2 additions & 0 deletions tests/FilterTest.php
Expand Up @@ -51,6 +51,8 @@ public function testGather()

public function testFilter()
{
config('Alerts')->template = 'Tatter\Alerts\Views\Bootstrap4';

$expected = <<<'EOD'
<html>
<head>
Expand Down

0 comments on commit 86bfb4d

Please sign in to comment.