Skip to content

Commit 1ef90a6

Browse files
authored
Remove trailing comma for PHP 7.4 support + PHPDoc (#480)
1 parent cf209d9 commit 1ef90a6

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

app/code/Meta/BusinessExtension/Helper/CatalogConfigUpdateHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function updateCatalogConfiguration(
7272
string $catalogId,
7373
string $commercePartnerIntegrationId,
7474
string $pixelId,
75-
bool $triggerFullSync = true,
75+
bool $triggerFullSync = true
7676
): void {
7777
$oldCatalogId = $this->systemConfig->getCatalogId($storeId);
7878
try {

app/code/Meta/BusinessExtension/Helper/FBEHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,8 @@ public function fetchAndSaveAAMSettings($pixelId, $storeId)
438438
/**
439439
* Check admin permissions
440440
*
441-
* @param string $pixelId
442-
* @param int $storeId
443441
* @return void
442+
* @throws LocalizedException
444443
*/
445444
public function checkAdminEndpointPermission()
446445
{

app/code/Meta/BusinessExtension/Helper/GraphAPIAdapter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
*/
3939
class GraphAPIAdapter
4040
{
41-
private const ORDER_STATE_CREATED = 'CREATED';
4241
public const ORDER_FILTER_REFUNDS = 'refunds';
4342
public const ORDER_FILTER_CANCELLATIONS = 'cancellations';
4443
private const GET_ORDERS_LIMIT = 25;

app/code/Meta/BusinessExtension/Model/System/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function isCommerceExtensionEnabled($scopeId = null, $scope = ScopeInterf
328328
*
329329
* @param int|null $scopeId
330330
* @param string $scope
331-
* @return bool
331+
* @return string
332332
*/
333333
public function getCommerceExtensionBaseURL($scopeId = null, $scope = ScopeInterface::SCOPE_STORE): string
334334
{
@@ -989,8 +989,8 @@ public function getWeightUnit(int $scopeId = null, string $scope = null)
989989
/**
990990
* Check if unsupported products are disabled
991991
*
992-
* @param int $scopeId
993-
* @param string $scope
992+
* @param int|null $scopeId
993+
* @param string|null $scope
994994
* @return bool
995995
*/
996996
public function isUnsupportedProductsDisabled(int $scopeId = null, string $scope = null): bool

app/code/Meta/Catalog/Block/Adminhtml/Diagnostics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function getSampleAffectedItems(array $diagnosticItem, int $catalogId, in
165165
* Get admin url
166166
*
167167
* @param ProductInterface $product
168-
* @param int $store
168+
* @param int|null $store
169169
* @return string
170170
*/
171171
public function getAdminUrl(ProductInterface $product, int $store = null)

app/code/Meta/Catalog/Model/Product/Feed/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ public function getHeaderFields()
972972
/**
973973
* Get base url media
974974
*
975-
* @return mixed
975+
* @return string
976976
*/
977977
public function getBaseUrlMedia()
978978
{

app/code/Meta/Catalog/Model/Product/Feed/Mapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function mapLink(BundleLinkInterface $link): array
143143
* Maps, and optionally filters, an array of product links into the Meta feed format
144144
*
145145
* @param ProductLinkInterface[] $product_links
146-
* @param string $link_type
146+
* @param string|null $link_type
147147
* @return array
148148
*/
149149
public function mapProductLinks(array $product_links, string $link_type = null): array

app/code/Meta/Catalog/Model/Product/Feed/Method/BatchApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ private function buildProductRequest(Product $product, $method = self::ATTR_UPDA
112112
* Build request for individual product
113113
*
114114
* @param string $productIdentifier
115+
* @return array
115116
*/
116117
public function buildDeleteProductRequest(string $productIdentifier): array
117118
{

app/code/Meta/Catalog/Model/Product/Feed/Method/FeedApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ private function getFbFeedId()
149149
*
150150
* @param string $catalogId
151151
* @param string $feedName
152+
* @return mixed
152153
* @throws GuzzleException
153154
*/
154155
private function createNewFeedAndSave(string $catalogId, string $feedName)

app/code/Meta/Catalog/Model/Product/Feed/ProductRetriever/Configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public function __construct(
9292
* Set store id
9393
*
9494
* @param int $storeId
95-
* @return ProductRetrieverInterface|void
95+
* @return ProductRetrieverInterface
9696
*/
97-
public function setStoreId($storeId)
97+
public function setStoreId($storeId): ProductRetrieverInterface
9898
{
9999
$this->storeId = $storeId;
100100
return $this;

0 commit comments

Comments
 (0)