Skip to content

Commit 1aa898b

Browse files
authored
rector: NewlineBeforeNewAssignSetRector (OpenMage#4997)
1 parent e16b43c commit 1aa898b

File tree

96 files changed

+147
-1
lines changed

Some content is hidden

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

96 files changed

+147
-1
lines changed

.rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
CodingStyle\Catch_\CatchExceptionNameMatchingTypeRector::class, # todo: TMP
7777
CodingStyle\ClassMethod\FuncGetArgsToVariadicParamRector::class, # todo: TMP
7878
CodingStyle\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector::class, # todo: TMP
79-
CodingStyle\ClassMethod\NewlineBeforeNewAssignSetRector::class, # todo: TMP
8079
CodingStyle\Encapsed\EncapsedStringsToSprintfRector::class, # todo: TMP
8180
CodingStyle\Encapsed\WrapEncapsedVariableInCurlyBracesRector::class, # todo: TMP
8281
CodingStyle\FuncCall\CallUserFuncArrayToVariadicRector::class, # todo: TMP

app/code/core/Mage/Admin/Model/Resource/Block.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ protected function _generateCache()
5555
/** @var Mage_Admin_Model_Resource_Block_Collection $collection */
5656
$collection = Mage::getResourceModel('admin/block_collection');
5757
$collection->addFieldToFilter('is_allowed', ['eq' => 1]);
58+
5859
$disallowedBlockNames = $this->getDisallowedBlockNames();
5960
if (is_array($disallowedBlockNames) && count($disallowedBlockNames) > 0) {
6061
$collection->addFieldToFilter('block_name', ['nin' => $disallowedBlockNames]);

app/code/core/Mage/Admin/Model/Resource/Variable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ protected function _generateCache()
2626
/** @var Mage_Admin_Model_Resource_Variable_Collection $collection */
2727
$collection = Mage::getResourceModel('admin/variable_collection');
2828
$collection->addFieldToFilter('is_allowed', ['eq' => 1]);
29+
2930
$data = $collection->getColumnValues('variable_name');
3031
$data = array_flip($data);
3132
Mage::app()->saveCache(

app/code/core/Mage/Admin/Model/User.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ public function sendPasswordResetConfirmationEmail()
316316
$mailer = Mage::getModel('core/email_template_mailer');
317317
$emailInfo = Mage::getModel('core/email_info');
318318
$emailInfo->addTo($this->getEmail(), $this->getName());
319+
319320
$mailer->addEmailInfo($emailInfo);
320321

321322
// Set all required params and send emails
@@ -769,6 +770,7 @@ public function sendAdminNotification($user)
769770
$mailer = Mage::getModel('core/email_template_mailer');
770771
$emailInfo = Mage::getModel('core/email_info');
771772
$emailInfo->addTo(array_filter($emails), $generalContactName);
773+
772774
$mailer->addEmailInfo($emailInfo);
773775

774776
// Set all required params and send emails

app/code/core/Mage/AdminNotification/Model/Feed.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,15 @@ public function getFeedData()
139139
'timeout' => 2,
140140
]);
141141
$curl->write(Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
142+
142143
$data = $curl->read();
143144
if ($data === false) {
144145
return false;
145146
}
146147

147148
$data = preg_split('/^\r?$/m', $data, 2);
148149
$data = trim($data[1]);
150+
149151
$curl->close();
150152

151153
try {

app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct()
1818

1919
$uid = $this->getRequest()->getParam('id', false);
2020
$uid = !empty($uid) ? $uid : 0;
21+
2122
$roles = Mage::getModel('api/roles')
2223
->getCollection()
2324
->load();

app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function initForm()
2424
{
2525
$form = new Varien_Data_Form();
2626
$form->setHtmlIdPrefix('_newsletter');
27+
2728
$customer = $this->getRegistryCurrentCustomer();
2829
$subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
2930
Mage::register('subscriber', $subscriber);

app/code/core/Mage/Adminhtml/Block/Notification/Security.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ protected function _isFileAccessible()
5959
$http = new Varien_Http_Adapter_Curl();
6060
$http->setConfig(['timeout' => $this->_verificationTimeOut]);
6161
$http->write(Zend_Http_Client::POST, $defaultUnsecureBaseURL . $this->_filePath);
62+
6263
$responseBody = $http->read();
6364
$responseCode = Zend_Http_Response::extractCode($responseBody);
6465
$http->close();

app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct()
1818

1919
$uid = $this->getRequest()->getParam('id', false);
2020
$uid = !empty($uid) ? $uid : 0;
21+
2122
$roles = Mage::getModel('admin/roles')
2223
->getCollection()
2324
->load();

app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ protected function addValidators(Mage_Core_Model_File_Uploader $uploader)
3131
parent::addValidators($uploader);
3232
$validator = Mage::getModel('core/file_validator_image');
3333
$validator->setAllowedImageTypes($this->_getAllowedExtensions());
34+
3435
$uploader->addValidateCallback(Mage_Core_Model_File_Validator_Image::NAME, $validator, 'validate');
3536
}
3637
}

0 commit comments

Comments
 (0)