Skip to content

Commit 7136cb4

Browse files
authored
1 parent 2967076 commit 7136cb4

File tree

104 files changed

+155
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+155
-156
lines changed

.rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
CodingStyle\FuncCall\StrictArraySearchRector::class, # todo: TMP
8080
CodingStyle\If_\NullableCompareToNullRector::class, # todo: TMP
8181
CodingStyle\PostInc\PostIncDecToPreIncDecRector::class, # todo: TMP
82-
CodingStyle\String_\SymplifyQuoteEscapeRector::class, # todo: TMP
8382
DeadCode\Assign\RemoveUnusedVariableAssignRector::class, # todo: TMP
8483
DeadCode\Cast\RecastingRemovalRector::class, # todo: TMP (!?!)
8584
DeadCode\ClassMethod\RemoveUnusedConstructorParamRector::class, # todo: TMP (!?!)

app/code/core/Mage/Adminhtml/Block/Api/Buttons.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function _prepareLayout()
2525
$this->getLayout()->createBlock('adminhtml/widget_button')
2626
->setData([
2727
'label' => Mage::helper('adminhtml')->__('Back'),
28-
'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'',
28+
'onclick' => "window.location.href='" . $this->getUrl('*/*/') . "'",
2929
'class' => 'back',
3030
]),
3131
);
@@ -55,9 +55,9 @@ protected function _prepareLayout()
5555
$this->getLayout()->createBlock('adminhtml/widget_button')
5656
->setData([
5757
'label' => Mage::helper('adminhtml')->__('Delete Role'),
58-
'onclick' => 'if(confirm(\'' . Mage::helper('core')->jsQuoteEscape(
58+
'onclick' => "if(confirm('" . Mage::helper('core')->jsQuoteEscape(
5959
Mage::helper('adminhtml')->__('Are you sure you want to do this?'),
60-
) . '\')) roleForm.submit(\'' . $this->getUrl('*/*/delete') . '\'); return false;',
60+
) . "')) roleForm.submit('" . $this->getUrl('*/*/delete') . "'); return false;",
6161
'class' => 'delete',
6262
]),
6363
);

app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public function __construct()
2323

2424
$this->_updateButton('save', 'label', Mage::helper('adminhtml')->__('Save User'));
2525
$this->_updateButton('delete', 'label', Mage::helper('adminhtml')->__('Delete User'));
26-
$this->_updateButton('delete', 'onclick', 'if(confirm(\'' . Mage::helper('core')->jsQuoteEscape(
26+
$this->_updateButton('delete', 'onclick', "if(confirm('" . Mage::helper('core')->jsQuoteEscape(
2727
Mage::helper('adminhtml')->__('Are you sure you want to do this?'),
28-
) . '\')) editForm.submit(\'' . $this->getUrl('*/*/delete') . '\'); return false;');
28+
) . "')) editForm.submit('" . $this->getUrl('*/*/delete') . "'); return false;");
2929
}
3030

3131
/**

app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Pricestep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public function getElementHtml()
5757
. Mage::helper('adminhtml')->__('Use Config Settings') . '</label>';
5858

5959
return $html . ('<script type="text/javascript">toggleValueElements($(\'' . $htmlId . '\'), $(\'' . $htmlId
60-
. '\').parentNode);' . '</script>');
60+
. "').parentNode);" . '</script>');
6161
}
6262
}

app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public function getElementHtml()
5555
. Mage::helper('adminhtml')->__('Use All Available Attributes') . '</label>';
5656

5757
return $html . ('<script type="text/javascript">toggleValueElements($(\'' . $htmlId . '\'), $(\'' . $htmlId
58-
. '\').parentNode);</script>');
58+
. "').parentNode);</script>");
5959
}
6060
}

app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ public function getElementHtml()
5656
. Mage::helper('adminhtml')->__('Use Config Settings') . '</label>';
5757

5858
return $html . ('<script type="text/javascript">toggleValueElements($(\'' . $htmlId . '\'), $(\'' . $htmlId
59-
. '\').parentNode);</script>');
59+
. "').parentNode);</script>");
6060
}
6161
}

app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getAfterElementHtml()
3030
'type' => 'button',
3131
'disabled' => $disabled,
3232
'class' => 'btn-wysiwyg',
33-
'onclick' => 'catalogWysiwygEditor.open(\'' . Mage::helper('adminhtml')->getUrl('*/*/wysiwyg') . '\', \'' . $this->getHtmlId() . '\')',
33+
'onclick' => "catalogWysiwygEditor.open('" . Mage::helper('adminhtml')->getUrl('*/*/wysiwyg') . "', '" . $this->getHtmlId() . "')",
3434
])->toHtml();
3535
}
3636

app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function _prepareLayout()
2727
$this->getLayout()->createBlock('adminhtml/widget_button')
2828
->setData([
2929
'label' => Mage::helper('catalog')->__('Save Attribute Set'),
30-
'onclick' => 'if (addSet.submit()) disableElements(\'save\');',
30+
'onclick' => "if (addSet.submit()) disableElements('save');",
3131
'class' => 'save',
3232
]),
3333
);

app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function _getAdditionalElementHtml($element)
8686
. '-checkbox" ' . $nameAttributeHtml . ' onclick="toogleFieldEditMode(this, \'' . $element->getId()
8787
. '\')" /><label for="' . $element->getId() . '-checkbox">' . Mage::helper('catalog')->__('Change')
8888
. '</label></span>
89-
<script type="text/javascript">initDisableFields(\'' . $element->getId() . '\')</script>';
89+
<script type="text/javascript">initDisableFields(\'' . $element->getId() . "')</script>";
9090
}
9191

9292
/**

app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function _prepareForm()
108108
'values' => $attribute->getSource()->getAllOptions(true, true),
109109
'required' => true,
110110
'class' => 'validate-configurable',
111-
'onchange' => 'superProduct.showPricing(this, \'' . $attributeCode . '\')',
111+
'onchange' => "superProduct.showPricing(this, '" . $attributeCode . "')",
112112
]);
113113

114114
$fieldset->addField('simple_product_' . $attributeCode . '_pricing_value', 'hidden', [

0 commit comments

Comments
 (0)