Skip to content

Commit a8606fd

Browse files
ENGCOM-3786: Issue #19609 FIXED #19880
- Merge Pull Request #19880 from maheshWebkul721/magento2:issue-19609 - Merged commits: 1. 1bae0d8 2. 7a2d534 3. fad225b 4. a1de67a 5. b5f866f 6. 2055291 7. f6b8e49 8. 8f4dcc1 9. d397810 10. 3be047a 11. 37e0613
2 parents c4fe6cb + 37e0613 commit a8606fd

File tree

1 file changed

+7
-15
lines changed
  • app/code/Magento/Config/Block/System/Config

1 file changed

+7
-15
lines changed

app/code/Magento/Config/Block/System/Config/Form.php

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,6 @@ public function __construct(
161161
];
162162
}
163163

164-
/**
165-
* @deprecated 100.1.2
166-
* @return SettingChecker
167-
*/
168-
private function getSettingChecker()
169-
{
170-
if ($this->settingChecker === null) {
171-
$this->settingChecker = ObjectManager::getInstance()->get(SettingChecker::class);
172-
}
173-
return $this->settingChecker;
174-
}
175-
176164
/**
177165
* Initialize objects required to render config form
178166
*
@@ -543,7 +531,7 @@ public function getConfigValue($path)
543531
}
544532

545533
/**
546-
* @return \Magento\Backend\Block\Widget\Form|\Magento\Framework\View\Element\AbstractBlock
534+
* @inheritdoc
547535
*/
548536
protected function _beforeToHtml()
549537
{
@@ -720,6 +708,7 @@ protected function _getAdditionalElementTypes()
720708
*
721709
* @TODO delete this methods when {^see above^} is done
722710
* @return string
711+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
723712
*/
724713
public function getSectionCode()
725714
{
@@ -731,6 +720,7 @@ public function getSectionCode()
731720
*
732721
* @TODO delete this methods when {^see above^} is done
733722
* @return string
723+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
734724
*/
735725
public function getWebsiteCode()
736726
{
@@ -742,6 +732,7 @@ public function getWebsiteCode()
742732
*
743733
* @TODO delete this methods when {^see above^} is done
744734
* @return string
735+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
745736
*/
746737
public function getStoreCode()
747738
{
@@ -801,15 +792,16 @@ private function getAppConfig()
801792

802793
/**
803794
* Check Path is Readonly
804-
*
795+
*
805796
* @param \Magento\Config\Model\Config\Structure\Element\Field $field
806797
* @param string $path
807798
* @return boolean
808799
*/
809800
private function isReadOnly(\Magento\Config\Model\Config\Structure\Element\Field $field, $path)
810801
{
811802
$isReadOnly = $this->settingChecker->isReadOnly(
812-
$path, ScopeConfigInterface::SCOPE_TYPE_DEFAULT
803+
$path,
804+
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
813805
);
814806
if (!$isReadOnly) {
815807
$isReadOnly = $this->getElementVisibility()->isDisabled($field->getPath())

0 commit comments

Comments
 (0)