@@ -161,18 +161,6 @@ public function __construct(
161
161
];
162
162
}
163
163
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
-
176
164
/**
177
165
* Initialize objects required to render config form
178
166
*
@@ -543,7 +531,7 @@ public function getConfigValue($path)
543
531
}
544
532
545
533
/**
546
- * @return \Magento\Backend\Block\Widget\Form|\Magento\Framework\View\Element\AbstractBlock
534
+ * @inheritdoc
547
535
*/
548
536
protected function _beforeToHtml ()
549
537
{
@@ -720,6 +708,7 @@ protected function _getAdditionalElementTypes()
720
708
*
721
709
* @TODO delete this methods when {^see above^} is done
722
710
* @return string
711
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
723
712
*/
724
713
public function getSectionCode ()
725
714
{
@@ -731,6 +720,7 @@ public function getSectionCode()
731
720
*
732
721
* @TODO delete this methods when {^see above^} is done
733
722
* @return string
723
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
734
724
*/
735
725
public function getWebsiteCode ()
736
726
{
@@ -742,6 +732,7 @@ public function getWebsiteCode()
742
732
*
743
733
* @TODO delete this methods when {^see above^} is done
744
734
* @return string
735
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
745
736
*/
746
737
public function getStoreCode ()
747
738
{
@@ -801,15 +792,16 @@ private function getAppConfig()
801
792
802
793
/**
803
794
* Check Path is Readonly
804
- *
795
+ *
805
796
* @param \Magento\Config\Model\Config\Structure\Element\Field $field
806
797
* @param string $path
807
798
* @return boolean
808
799
*/
809
800
private function isReadOnly (\Magento \Config \Model \Config \Structure \Element \Field $ field , $ path )
810
801
{
811
802
$ isReadOnly = $ this ->settingChecker ->isReadOnly (
812
- $ path , ScopeConfigInterface::SCOPE_TYPE_DEFAULT
803
+ $ path ,
804
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
813
805
);
814
806
if (!$ isReadOnly ) {
815
807
$ isReadOnly = $ this ->getElementVisibility ()->isDisabled ($ field ->getPath ())
0 commit comments