Skip to content

Commit 8c588dc

Browse files
committed
Code styles improvements
1 parent 710b381 commit 8c588dc

File tree

8 files changed

+9
-14
lines changed

8 files changed

+9
-14
lines changed

Api/ContainerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ interface ContainerInterface
2020
* @throws NoSuchEntityException
2121
*/
2222
public function generate(string $storeId = null): array;
23-
}
23+
}

Block/Adminhtml/System/Config/Form/ExportServerContainerButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ public function getContainerGenerateUrl()
2828
]
2929
);
3030
}
31-
}
31+
}

Block/Adminhtml/System/Config/Form/InfoGoogleAds.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,4 @@ protected function getText(): string
3434
{
3535
return 'Google Ads options are available in <strong>Plus or Extra</strong> plans only.';
3636
}
37-
38-
3937
}

Block/Adminhtml/System/Config/Form/InfoPlan.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ abstract class InfoPlan extends \Magefan\Community\Block\Adminhtml\System\Config
1313
/**
1414
* @return string
1515
*/
16-
protected abstract function getMinPlan(): string;
16+
abstract protected function getMinPlan(): string;
1717

1818
/**
1919
* @return string
2020
*/
21-
protected abstract function getSectionId(): string;
21+
abstract protected function getSectionId(): string;
2222

2323
/**
2424
* @return string
2525
*/
26-
protected abstract function getText(): string;
26+
abstract protected function getText(): string;
2727

2828

2929
/**
@@ -78,5 +78,4 @@ class: "action primary accept",
7878

7979
return $html;
8080
}
81-
8281
}

Block/Adminhtml/System/Config/Form/InfoServerContainer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ protected function getText(): string
3434
{
3535
return 'Server Container option is available in <strong>Extra</strong> plan only.';
3636
}
37-
3837
}

Controller/Adminhtml/ContainerGenerate.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public function __construct(
9595
Config $config,
9696
Container $container,
9797
StoreManagerInterface $storeManager
98-
)
99-
{
98+
) {
10099
$this->resultRawFactory = $resultRawFactory;
101100
$this->fileFactory = $fileFactory;
102101
$this->dateTime = $dateTime;
@@ -154,4 +153,4 @@ public function execute()
154153
return $resultRedirect->setPath($this->redirect->getRefererUrl());
155154
}
156155
}
157-
}
156+
}

Model/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,4 @@ public function isSpeedOptimizationEnabled(string $storeId = null): bool
263263
{
264264
return (bool)$this->getConfig(self::XML_PATH_SPEED_OPTIMIZATION_ENABLED, $storeId);
265265
}
266-
}
266+
}

Model/Transaction/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ public function isTransactionUnique(Order $order, string $requester): bool
101101

102102
return true;
103103
}
104-
}
104+
}

0 commit comments

Comments
 (0)