Skip to content

Commit b0c301b

Browse files
royduinactions-user
authored andcommitted
Apply fixes from Duster
1 parent aa3d1d6 commit b0c301b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/rapidez/frontend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
'Magento\Catalog\Block\Category\Widget\Link' => Rapidez\Core\Widgets\ProductAndCategoryLink::class,
5858
'Magento\Catalog\Block\Product\Widget\Link' => Rapidez\Core\Widgets\ProductAndCategoryLink::class,
5959
'Magento\Cms\Block\Widget\Page\Link' => Rapidez\Core\Widgets\PageLink::class,
60-
'Magento\Catalog\Block\Widget\RecentlyViewed' => 'rapidez::widget.recently-viewed'
60+
'Magento\Catalog\Block\Widget\RecentlyViewed' => 'rapidez::widget.recently-viewed',
6161
],
6262

6363
'view_only_widget' => \Rapidez\Core\Widgets\ViewOnly::class,

src/ViewDirectives/WidgetDirective.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public function render($location, $type, $handle = 'default', $entities = null,
1414
function () use ($location, $type, $handle, $entities, $replace) {
1515
$html = '';
1616
$widgetModel = config('rapidez.models.widget');
17-
$widgets = $widgetModel::whereIn('layout_handle', (array)$handle)
18-
->whereIn('page_group', (array)$type)
17+
$widgets = $widgetModel::whereIn('layout_handle', (array) $handle)
18+
->whereIn('page_group', (array) $type)
1919
->where('block_reference', $location)
2020
->where(function (Builder $query) use ($entities) {
2121
$query->where('page_for', 'all')

0 commit comments

Comments
 (0)