Skip to content

Commit

Permalink
Fixed Review
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Sep 29, 2020
1 parent 9b68056 commit 71a83e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

namespace PrestaShop\PrestaShop\Core\Domain\Cart\Command;

use PrestaShop\PrestaShop\Core\Domain\Cart\Exception\CartConstraintException;
use PrestaShop\PrestaShop\Core\Domain\Cart\ValueObject\CartId;
use PrestaShop\PrestaShop\Core\Domain\CartRule\ValueObject\CartRuleId;

Expand All @@ -48,7 +49,7 @@ class RemoveCartRuleFromCartCommand
* @param int $cartId
* @param int $cartRuleId
*
* @throws \PrestaShop\PrestaShop\Core\Domain\Cart\Exception\CartConstraintException
* @throws CartConstraintException
*/
public function __construct(int $cartId, int $cartRuleId)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Kpi/Row/HookableKpiRowFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct(
}

/**
* @return KpiRow|KpiRowInterface|void
* @return KpiRow|void
*
* @throws InvalidArgumentException
*/
Expand Down
12 changes: 7 additions & 5 deletions src/PrestaShopBundle/Event/Dispatcher/NullDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

use PrestaShop\PrestaShop\Core\Hook\HookDispatcherInterface;
use PrestaShop\PrestaShop\Core\Hook\HookInterface;
use PrestaShop\PrestaShop\Core\Hook\RenderedHookInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

Expand All @@ -43,11 +45,11 @@ public function addSubscriber(EventSubscriberInterface $subscriber)

/**
* @param string $eventName
* @param \Symfony\Component\EventDispatcher\Event|null $event
* @param Event|null $event
*
* @return \Symfony\Component\EventDispatcher\Event|void
* @return Event|void
*/
public function dispatch($eventName, \Symfony\Component\EventDispatcher\Event $event = null)
public function dispatch($eventName, Event $event = null)
{
}

Expand Down Expand Up @@ -98,7 +100,7 @@ public function dispatchWithParameters($hookName, array $hookParameters = [])
/**
* @param HookInterface $hook
*
* @return \PrestaShop\PrestaShop\Core\Hook\RenderedHookInterface|void
* @return RenderedHookInterface|void
*/
public function dispatchRendering(HookInterface $hook)
{
Expand All @@ -108,7 +110,7 @@ public function dispatchRendering(HookInterface $hook)
* @param string $hookName
* @param array $hookParameters
*
* @return \PrestaShop\PrestaShop\Core\Hook\RenderedHookInterface|void
* @return RenderedHookInterface|void
*/
public function dispatchRenderingWithParameters($hookName, array $hookParameters = [])
{
Expand Down

0 comments on commit 71a83e5

Please sign in to comment.