Skip to content

Commit e7d8297

Browse files
authored
Merge pull request #72 from ihormandzyuk/14123-update-coding-standart
update coding standard and add strict types
2 parents 4cba00d + c739bb6 commit e7d8297

File tree

56 files changed

+781
-227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+781
-227
lines changed

Api/BreezeThemeDetectionInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ interface BreezeThemeDetectionInterface
1212
{
1313

1414
/**
15-
* @param $storeId
15+
* Breeze theme detect by store id
16+
*
17+
* @param mixed $storeId
1618
* @return bool
1719
*/
1820
public function execute($storeId = null): bool;

Api/GetCategoryByProductInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Api;
810

911
/**
@@ -15,6 +17,8 @@
1517
interface GetCategoryByProductInterface
1618
{
1719
/**
20+
* Get category by product
21+
*
1822
* @param mixed $product
1923
* @param mixed $storeId
2024
* @returnmixed

Api/GetModuleInfoInterface.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Api;
810

911
use Magento\Framework\DataObject;
@@ -17,7 +19,9 @@
1719
interface GetModuleInfoInterface
1820
{
1921
/**
20-
* @param $moduleName
22+
* Get data by module
23+
*
24+
* @param string $moduleName
2125
* @return array|DataObject|mixed
2226
*/
2327
public function execute($moduleName = null);

Api/GetModuleVersionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Api;
810

911
/**

Api/GetParentProductIdsInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Api;
810

911
/**
@@ -15,6 +17,8 @@
1517
interface GetParentProductIdsInterface
1618
{
1719
/**
20+
* Get parent product ids
21+
*
1822
* @api
1923
* @param array $productIds
2024
* @return array

Api/GetWebsitesMapInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Api;
810

911
/**
@@ -15,6 +17,8 @@
1517
interface GetWebsitesMapInterface
1618
{
1719
/**
20+
* Get websites
21+
*
1822
* @api
1923
* @return array
2024
*/

Api/HyvaThemeDetectionInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ interface HyvaThemeDetectionInterface
1212
{
1313

1414
/**
15-
* @param $storeId
15+
* Hyva detector
16+
*
17+
* @param mixed $storeId
1618
* @return bool
1719
*/
1820
public function execute($storeId = null): bool;

Api/SecureHtmlRendererInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* Copyright © Magefan (support@magefan.com). All rights reserved.
54
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
@@ -13,6 +12,8 @@ interface SecureHtmlRendererInterface
1312
{
1413

1514
/**
15+
* Secure html render
16+
*
1617
* @param string $tagName
1718
* @param array $attributes
1819
* @param string|null $content

Block/Adminhtml/Edit/BackButton.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Block\Adminhtml\Edit;
810

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

1113
class BackButton extends GenericButton implements ButtonProviderInterface
1214
{
1315
/**
16+
* Get button config
17+
*
1418
* @return array
1519
*/
1620
public function getButtonData()

Block/Adminhtml/Edit/CreateButton.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
55
*/
66

7+
declare(strict_types=1);
8+
79
namespace Magefan\Community\Block\Adminhtml\Edit;
810

911
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
@@ -14,6 +16,8 @@
1416
class CreateButton extends GenericButton implements ButtonProviderInterface
1517
{
1618
/**
19+
* Get button config
20+
*
1721
* @return array
1822
*/
1923
public function getButtonData()

0 commit comments

Comments
 (0)