Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Api/BreezeThemeDetectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ interface BreezeThemeDetectionInterface
{

/**
* @param $storeId
* Breeze theme detect by store id
*
* @param mixed $storeId
* @return bool
*/
public function execute($storeId = null): bool;
Expand Down
4 changes: 4 additions & 0 deletions Api/GetCategoryByProductInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Api;

/**
Expand All @@ -15,6 +17,8 @@
interface GetCategoryByProductInterface
{
/**
* Get category by product
*
* @param mixed $product
* @param mixed $storeId
* @returnmixed
Expand Down
6 changes: 5 additions & 1 deletion Api/GetModuleInfoInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Api;

use Magento\Framework\DataObject;
Expand All @@ -17,7 +19,9 @@
interface GetModuleInfoInterface
{
/**
* @param $moduleName
* Get data by module
*
* @param string $moduleName
* @return array|DataObject|mixed
*/
public function execute($moduleName = null);
Expand Down
2 changes: 2 additions & 0 deletions Api/GetModuleVersionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Api;

/**
Expand Down
4 changes: 4 additions & 0 deletions Api/GetParentProductIdsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Api;

/**
Expand All @@ -15,6 +17,8 @@
interface GetParentProductIdsInterface
{
/**
* Get parent product ids
*
* @api
* @param array $productIds
* @return array
Expand Down
4 changes: 4 additions & 0 deletions Api/GetWebsitesMapInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Api;

/**
Expand All @@ -15,6 +17,8 @@
interface GetWebsitesMapInterface
{
/**
* Get websites
*
* @api
* @return array
*/
Expand Down
4 changes: 3 additions & 1 deletion Api/HyvaThemeDetectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ interface HyvaThemeDetectionInterface
{

/**
* @param $storeId
* Hyva detector
*
* @param mixed $storeId
* @return bool
*/
public function execute($storeId = null): bool;
Expand Down
3 changes: 2 additions & 1 deletion Api/SecureHtmlRendererInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* Copyright © Magefan (support@magefan.com). All rights reserved.
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
Expand All @@ -13,6 +12,8 @@ interface SecureHtmlRendererInterface
{

/**
* Secure html render
*
* @param string $tagName
* @param array $attributes
* @param string|null $content
Expand Down
4 changes: 4 additions & 0 deletions Block/Adminhtml/Edit/BackButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

class BackButton extends GenericButton implements ButtonProviderInterface
{
/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand Down
4 changes: 4 additions & 0 deletions Block/Adminhtml/Edit/CreateButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
Expand All @@ -14,6 +16,8 @@
class CreateButton extends GenericButton implements ButtonProviderInterface
{
/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand Down
6 changes: 6 additions & 0 deletions Block/Adminhtml/Edit/DeleteButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
Expand All @@ -12,6 +14,8 @@ class DeleteButton extends GenericButton implements ButtonProviderInterface
{

/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand All @@ -31,6 +35,8 @@ public function getButtonData()
}

/**
* Get delete url
*
* @return string
*/
public function getDeleteUrl()
Expand Down
6 changes: 6 additions & 0 deletions Block/Adminhtml/Edit/DuplicateButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

class DuplicateButton extends GenericButton implements ButtonProviderInterface
{
/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand All @@ -28,6 +32,8 @@ public function getButtonData()
}

/**
* Get object duplicate url
*
* @return string
*/
public function getDuplicateUrl()
Expand Down
4 changes: 3 additions & 1 deletion Block/Adminhtml/Edit/GenericButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Backend\Block\Widget\Context;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\AuthorizationInterface;

class GenericButton
Expand All @@ -24,6 +25,7 @@ class GenericButton

/**
* GenericButton constructor.
*
* @param Context $context
* @param AuthorizationInterface|null $authorization
*/
Expand Down
6 changes: 6 additions & 0 deletions Block/Adminhtml/Edit/PreviewButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

class PreviewButton extends GenericButton implements ButtonProviderInterface
{
/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand All @@ -28,6 +32,8 @@ public function getButtonData()
}

/**
* Get preview url
*
* @return string
*/
public function getPreviewUrl()
Expand Down
4 changes: 4 additions & 0 deletions Block/Adminhtml/Edit/ResetButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

class ResetButton implements ButtonProviderInterface
{
/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand Down
4 changes: 4 additions & 0 deletions Block/Adminhtml/Edit/SaveAndContinueButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
Expand All @@ -12,6 +14,8 @@ class SaveAndContinueButton extends GenericButton implements ButtonProviderInter
{

/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand Down
4 changes: 4 additions & 0 deletions Block/Adminhtml/Edit/SaveButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/

declare(strict_types=1);

namespace Magefan\Community\Block\Adminhtml\Edit;

use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;

class SaveButton extends GenericButton implements ButtonProviderInterface
{
/**
* Get button config
*
* @return array
*/
public function getButtonData()
Expand Down
8 changes: 5 additions & 3 deletions Block/Adminhtml/HyvaThemeChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ public function __construct(
$this->hyvaThemeDetection =$hyvaThemeDetection;
}

/**
* @return array
*/
/**
* Get group modules
*
* @return array
*/
public function getWitchModuleIsInstalled(): array
{
$moduleGroups = [
Expand Down
4 changes: 4 additions & 0 deletions Block/Adminhtml/Linv.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public function __construct(
}

/**
* Get items config
*
* @return array
*/
public function getItems(): array
Expand Down Expand Up @@ -72,6 +74,8 @@ public function getItems(): array
}

/**
* Get messages
*
* @return array
*/
public function getMessages():array
Expand Down
Loading