Skip to content

Commit e4e6484

Browse files
committed
Merge branch 'main' into rector-1-cq
2 parents 6a1bd03 + a375fad commit e4e6484

File tree

26 files changed

+51
-35
lines changed

26 files changed

+51
-35
lines changed

.ddev/commands/web/magerun

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Example: "ddev magerun"
66

77
if [ ! -f vendor/bin/n98-magerun ]; then
8-
read -r -p "n98-magerun is not installed. Do you want to install it? [y/N] " INSTALL_MAGE
8+
read -r -p "n98-magerun is not installed. Do you want to install it? [y/N] " INSTALL_MAGERUN
99
INSTALL_MAGERUN=${INSTALL_MAGERUN,,} # to lower
1010
if [[ "${INSTALL_MAGERUN}" =~ ^(yes|y) ]]; then
1111
composer require --dev n98/magerun:dev-develop

.ddev/commands/web/openmage-admin

100644100755
File mode changed.

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@
887887
'phpstan':
888888
- changed-files:
889889
- any-glob-to-any-file: [
890+
.phpstan*,
890891
phpstan*,
891892
.github/workflows/phpstan.yml
892893
]

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@
7070
.phpcs*.xml
7171
!.phpcs*.xml.dist
7272

73+
# PhpStan
74+
.phpstan*.neon
7375
phpstan*.neon
74-
!phpstan.dist.*.neon
76+
!.phpstan.dist.neon
77+
!.phpstan.dist.*.neon
7578

7679
# dev scripts loaded via composer
7780
/shell/update-copyright.php

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
'class_definition' => true,
2121
// Remove extra spaces in a nullable typehint.
2222
'compact_nullable_typehint' => true,
23+
// Concatenation should be spaced according to configuration.
24+
'concat_space' => ['spacing' => 'one'],
2325
// The PHP constants `true`, `false`, and `null` MUST be written using the correct casing.
2426
'constant_case' => true,
2527
// Equal sign in declare statement should be surrounded by spaces or not following configuration.

phpstan.dist.baseline.neon renamed to .phpstan.dist.baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,6 +3960,11 @@ parameters:
39603960
count: 1
39613961
path: app/code/core/Mage/Sales/Model/Entity/Quote/Address/Attribute/Frontend/Tax.php
39623962

3963+
-
3964+
message: "#^Negated boolean expression is always true\\.$#"
3965+
count: 1
3966+
path: app/code/core/Mage/Sales/Model/Order.php
3967+
39633968
-
39643969
message: "#^Variable \\$oldArea might not be defined\\.$#"
39653970
count: 1

phpstan.dist.neon renamed to .phpstan.dist.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
includes:
22
- vendor/macopedia/phpstan-magento1/extension.neon
3-
- phpstan.dist.baseline.neon
3+
- .phpstan.dist.baseline.neon
44
- phar://phpstan.phar/conf/bleedingEdge.neon
55
parameters:
66
magentoRootPath: %currentWorkingDirectory%

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function _prepareForm()
7676

7777
$fieldset->addField('req_text', 'note', [
7878
'text' => '<ul class="messages"><li class="notice-msg"><ul><li>'
79-
. $this->__('Only attributes with scope "Global", input type "Dropdown" and Use To Create Configurable Product "Yes" are available.')
79+
. $this->__('Only attributes with scope "Global", input type "Dropdown" and Use To Create Configurable Product "Yes" are available.')
8080
. '</li></ul></li></ul>'
8181
]);
8282

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function initForm()
7878
$form->getElement('website_id')->setAfterElementHtml(
7979
'<script type="text/javascript">'
8080
. "
81-
var {$prefix}_websites = " . Mage::helper('core')->jsonEncode($websites) .";
81+
var {$prefix}_websites = " . Mage::helper('core')->jsonEncode($websites) . ";
8282
Validation.add(
8383
'validate-website-has-store',
8484
'" . Mage::helper('core')->jsQuoteEscape(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function _prepareLayout()
6363
'name' => 'add_address_button',
6464
'element_name' => 'add_address_button',
6565
'disabled' => $this->isReadonly(),
66-
'class' => 'add' . ($this->isReadonly() ? ' disabled' : ''),
66+
'class' => 'add' . ($this->isReadonly() ? ' disabled' : ''),
6767
'onclick' => 'customerAddresses.addNewAddress()'
6868
])
6969
);
@@ -75,7 +75,7 @@ protected function _prepareLayout()
7575
'id' => 'cancel_add_address' . $this->getTemplatePrefix(),
7676
'name' => 'cancel_address',
7777
'element_name' => 'cancel_address',
78-
'class' => 'cancel delete-address' . ($this->isReadonly() ? ' disabled' : ''),
78+
'class' => 'cancel delete-address' . ($this->isReadonly() ? ' disabled' : ''),
7979
'disabled' => $this->isReadonly(),
8080
'onclick' => 'customerAddresses.cancelAdd(this)',
8181
])

0 commit comments

Comments
 (0)