Skip to content

Commit

Permalink
CS-fixer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Sep 19, 2023
1 parent bbd9d52 commit 5b9dc77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions is_imageslider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
use Oksydan\IsImageslider\Hook\HookInterface;
use Oksydan\IsImageslider\Installer\ImageSliderInstaller;
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
use PrestaShop\PrestaShop\Core\Module\WidgetInterface;

use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;

class Is_imageslider extends Module implements WidgetInterface
{
Expand Down Expand Up @@ -141,12 +140,14 @@ private function getHookObject($methodName)
public function renderWidget($hookName, array $configuration)
{
$widgetCapability = $this->get('oksydan.is_imageslider.hook.widget_capability');

return $widgetCapability->renderWidget($configuration);
}

public function getWidgetVariables($hookName, array $configuration)
{
$widgetCapability = $this->get('oksydan.is_imageslider.hook.widget_capability');

return $widgetCapability->getWidgetVariables($configuration);
}
}
5 changes: 3 additions & 2 deletions src/Hook/WidgetCapability.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ protected function getCacheKey(): string
return parent::getCacheKey() . '_' . ($this->context->isMobile() ? 'mobile' : 'desktop');
}


/**
* @return array
*/
Expand All @@ -37,6 +36,7 @@ private function getSlides(): array

return $slides;
}

public function getWidgetVariables($params): array
{
return [
Expand All @@ -49,7 +49,8 @@ public function getWidgetVariables($params): array
];
}

public function renderWidget($params) {
public function renderWidget($params)
{
return $this->execute($params);
}
}

0 comments on commit 5b9dc77

Please sign in to comment.