Skip to content

Commit

Permalink
Update v2.0.20231119
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilkware committed Nov 22, 2023
1 parent 8743562 commit d2ac45a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/VisualisationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ trait VisualisationHelper
['Type' => 'gray', 'Term' => 'General Waste', 'Color'=> 10066588, 'Match'=> 'rest']
];


/**
* GetWasteValues for form list
* @return array List values
Expand Down Expand Up @@ -128,11 +127,10 @@ protected function BuildWidget(array $waste, string $skin, array $custom)
$date = $this->Translate('Date');
$tbc = ($skin == 'light') ? '#D7D6D6' : '#4A4B4D';
$wic = '';
foreach($custom as $color) {
foreach ($custom as $color) {
$wic .= ' .icon--' . $color['Type'] . ' { fill: #' . dechex($color['Color']) . ';}' . PHP_EOL;
}


$html = '
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
Expand Down Expand Up @@ -223,7 +221,7 @@ private function CalcDaysToDate($startDate, $endDate = null)
*/
private function RecognizeWaste($name, $matches)
{
foreach($matches as $match) {
foreach ($matches as $match) {
$pm = '/(' . $match['Match'] . ')/i';
if (preg_match($pm, $name)) {
return $match['Type'];
Expand Down

0 comments on commit d2ac45a

Please sign in to comment.