@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $minDiff = 1; |
| 52 | 52 | |
| 53 | 53 | foreach ($this->sidebarTagSizes as $tagPercent) { |
| 54 | - if (($diff = abs($tag['weight'] / $maxWeight - $tagPercent / 100)) < $minDiff) { |
|
| 54 | + if (($diff = abs($tag['weight']/$maxWeight - $tagPercent/100)) < $minDiff) { |
|
| 55 | 55 | $minDiff = $diff; |
| 56 | 56 | $percentage = $tagPercent; |
| 57 | 57 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | 'decorate' => true, |
| 34 | 34 | 'representationField' => 'slug', |
| 35 | 35 | 'html' => true, |
| 36 | - 'nodeDecorator' => function (array $node) use ($showNumber): string { |
|
| 36 | + 'nodeDecorator' => function(array $node) use ($showNumber): string { |
|
| 37 | 37 | /** @var Category $category */ |
| 38 | 38 | $category = $node[0]; |
| 39 | 39 | |