Skip to content

Commit

Permalink
#22655 static-test-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 authored and mahesh-rajawat committed May 15, 2019
1 parent a2fc106 commit 6fc7d7a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/code/Magento/Tax/Block/Adminhtml/Rate/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
use Magento\Tax\Controller\RegistryConstants;

/**
* Tax rate form.
*
* @api
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @since 100.0.2
Expand Down Expand Up @@ -110,7 +112,7 @@ public function __construct(
}

/**
* @return void
* @inheritdoc
*/
protected function _construct()
{
Expand All @@ -119,6 +121,8 @@ protected function _construct()
}

/**
* Prepare form before rendering HTML.
*
* @return $this
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
Expand All @@ -132,8 +136,9 @@ protected function _prepareForm()
if ($taxRateId) {
$taxRateDataObject = $this->_taxRateRepository->get($taxRateId);
}
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
} catch (NoSuchEntityException $e) {
/* tax rate not found */
//tax rate not found//
}

$sessionFormValues = (array)$this->_coreRegistry->registry(RegistryConstants::CURRENT_TAX_RATE_FORM_DATA);
Expand Down Expand Up @@ -176,7 +181,10 @@ protected function _prepareForm()
}

$legend = $this->getShowLegend() ? __('Tax Rate Information') : '';
$fieldset = $form->addFieldset('base_fieldset', ['legend' => $legend, 'class' => 'admin__scope-old form-inline']);
$fieldset = $form->addFieldset(
'base_fieldset',
['legend' => $legend, 'class' => 'admin__scope-old form-inline']
);

if (isset($formData['tax_calculation_rate_id']) && $formData['tax_calculation_rate_id'] > 0) {
$fieldset->addField(
Expand Down

0 comments on commit 6fc7d7a

Please sign in to comment.