Skip to content

Commit 605e5a3

Browse files
authored
Merge branch 'main' into OAuth2
2 parents 6a0a49f + cf3fbe6 commit 605e5a3

File tree

4,031 files changed

+5944
-5353
lines changed

Some content is hidden

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

4,031 files changed

+5944
-5353
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/.all-contributorsrc export-ignore
1010
/.gitattributes export-ignore
1111
/.gitignore export-ignore
12-
/.gitpod.yml export-ignore
1312

1413
/.php-cs-fixer.dist.php export-ignore
1514
/.phpcs.ecg.xml.dist export-ignore
@@ -21,6 +20,8 @@
2120
/.phpstan.dist.neon export-ignore
2221
/.rector.php export-ignore
2322

23+
/CNAME export-ignore
24+
2425
/README.md export-ignore
2526

2627
# Enforce checkout with linux lf consistent over all platforms

.github/labeler.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
.github/**/*
66
]
77

8+
'git':
9+
- changed-files:
10+
- any-glob-to-any-file: [
11+
.gitattributes,
12+
.gitignore
13+
]
14+
815
'htaccess':
916
- changed-files:
1017
- any-glob-to-any-file: [
@@ -903,6 +910,7 @@
903910
- any-glob-to-any-file: [
904911
.phpunit*,
905912
tests/*,
913+
tests/**/*,
906914
.github/workflows/phpunit.yml
907915
]
908916

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25-
- uses: actions/setup-python@v4
25+
- uses: actions/setup-python@v5
2626
with:
2727
python-version: 3.x
2828
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
/app/etc/modules/Cm_RedisSession.xml
2424
/lib/Credis
2525

26-
# Add Gitpod online IDE config
27-
# https://github.com/OpenMage/magento-lts/pull/1836
28-
/dev/gitpod/docker-magento
29-
/dev/gitpod/.env
30-
3126
# Add development environment setup files and README
3227
# https://github.com/OpenMage/magento-lts/pull/1012
3328
/dev/openmage/docker-magento

.gitpod.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.phpmd.dist.baseline.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0"?>
22
<phpmd-baseline>
3-
<violation rule="PHPMD\Rule\UnusedPrivateMethod" file="app/code/core/Mage/Admin/Model/Resource/User.php" method="_encryptPassword"/>
43
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/Admin/Model/Session.php"/>
54
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/Adminhtml/Block/Report/Sales/Grid/Column/Renderer/Date.php"/>
65
<violation rule="PHPMD\Rule\UnusedPrivateMethod" file="app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php" method="_sortHistoryByTimestamp"/>
@@ -9,16 +8,11 @@
98
<violation rule="PHPMD\Rule\Design\CountInLoopExpression" file="app/code/core/Mage/Catalog/Model/Layer/Filter/Price.php"/>
109
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/Catalog/Model/Product/Api.php"/>
1110
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/Catalog/Model/Product/Api/V2.php"/>
12-
<violation rule="PHPMD\Rule\UnusedPrivateMethod" file="app/code/core/Mage/Checkout/Block/Cart/Sidebar.php" method="_addTax"/>
13-
<violation rule="PHPMD\Rule\UnusedPrivateField" file="app/code/core/Mage/Checkout/Block/Onepage/Success.php"/>
1411
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/Core/Model/Cache.php"/>
1512
<violation rule="PHPMD\Rule\Design\CountInLoopExpression" file="app/code/core/Mage/Core/Model/Layout.php"/>
1613
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/GiftMessage/Model/Observer.php"/>
1714
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/GiftMessage/controllers/IndexController.php"/>
1815
<violation rule="PHPMD\Rule\Design\EmptyCatchBlock" file="app/code/core/Mage/ImportExport/Model/Resource/Helper/Mysql4.php"/>
19-
<violation rule="PHPMD\Rule\UnusedPrivateMethod" file="app/code/core/Mage/Log/Model/Aggregation.php" method="_removeEmpty"/>
20-
<violation rule="PHPMD\Rule\UnusedPrivateMethod" file="app/code/core/Mage/Paypal/Model/Config.php" method="_matchBnCountryCode"/>
2116
<violation rule="PHPMD\Rule\Design\CountInLoopExpression" file="app/code/core/Mage/Paypal/Model/Report/Settlement.php"/>
22-
<violation rule="PHPMD\Rule\UnusedPrivateField" file="app/code/core/Mage/Sales/Model/Order/Status/History.php"/>
2317
<violation rule="PHPMD\Rule\Design\CountInLoopExpression" file="app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php"/>
2418
</phpmd-baseline>

.phpmd.dist.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,25 @@
7171

7272
<!-- NAMING
7373
[-] BooleanGetMethodName
74-
[ ] ConstantNamingConventions
75-
[ ] ConstructorWithNameAsEnclosingClass
74+
[x] ConstantNamingConventions
75+
[x] ConstructorWithNameAsEnclosingClass
7676
[-] LongClassName
77-
[ ] ShortClassName
77+
[x] ShortClassName
7878
[-] LongVariable
79-
[?] ShortVariable - TMP disabled
80-
[ ] ShortMethodName
79+
[x] ShortVariable
80+
[x] ShortMethodName - TMP disabled
8181
-->
82-
<!-- <rule ref="rulesets/naming.xml/ShortVariable">-->
83-
<!-- <properties>-->
84-
<!-- <property name="exceptions" value="a,b,e,id,idx,io,ip,to,x,y,x1,x2,y1,y2" />-->
85-
<!-- </properties>-->
86-
<!-- </rule>-->
8782
<rule ref="rulesets/naming.xml">
8883
<exclude name="BooleanGetMethodName" />
8984
<exclude name="LongClassName" />
9085
<exclude name="LongVariable" />
9186
<exclude name="ShortVariable" />
9287
</rule>
88+
<!-- <rule ref="rulesets/naming.xml/ShortVariable">-->
89+
<!-- <properties>-->
90+
<!-- <property name="exceptions" value="a,b,x,y,x1,x2,y1,y2" />-->
91+
<!-- </properties>-->
92+
<!-- </rule>-->
9393
<rule ref="rulesets/naming.xml/ShortMethodName" />
9494

9595
<!-- DESIGN

.phpstan.dist.baseline.neon

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ parameters:
2525
count: 1
2626
path: app/code/core/Mage/Admin/Model/Resource/Roles.php
2727

28-
-
29-
message: "#^Method Mage_Admin_Model_Resource_User\\:\\:_encryptPassword\\(\\) is unused\\.$#"
30-
count: 1
31-
path: app/code/core/Mage/Admin/Model/Resource/User.php
32-
3328
-
3429
message: "#^Call to an undefined method Mage_Admin_Model_Resource_Roles\\:\\:update\\(\\)\\.$#"
3530
count: 1
@@ -2385,11 +2380,6 @@ parameters:
23852380
count: 1
23862381
path: app/code/core/Mage/Checkout/Block/Cart/Shipping.php
23872382

2388-
-
2389-
message: "#^Method Mage_Checkout_Block_Cart_Sidebar\\:\\:_addTax\\(\\) is unused\\.$#"
2390-
count: 1
2391-
path: app/code/core/Mage/Checkout/Block/Cart/Sidebar.php
2392-
23932383
-
23942384
message: "#^Method Mage_Checkout_Block_Onepage_Billing\\:\\:_getTaxvat\\(\\) should return Mage_Customer_Block_Widget_Taxvat but returns Mage_Core_Block_Abstract\\|false\\.$#"
23952385
count: 1
@@ -2405,11 +2395,6 @@ parameters:
24052395
count: 1
24062396
path: app/code/core/Mage/Checkout/Block/Onepage/Progress.php
24072397

2408-
-
2409-
message: "#^Property Mage_Checkout_Block_Onepage_Success\\:\\:\\$_order is unused\\.$#"
2410-
count: 1
2411-
path: app/code/core/Mage/Checkout/Block/Onepage/Success.php
2412-
24132398
-
24142399
message: "#^PHPDoc tag @var with type Mage_Sales_Model_Quote_Item is not subtype of native type null\\.$#"
24152400
count: 1
@@ -2550,16 +2535,6 @@ parameters:
25502535
count: 1
25512536
path: app/code/core/Mage/Core/Controller/Front/Action.php
25522537

2553-
-
2554-
message: "#^Call to an undefined method Zend_Controller_Router_Interface\\:\\:addRoute\\(\\)\\.$#"
2555-
count: 1
2556-
path: app/code/core/Mage/Core/Controller/Front/Router.php
2557-
2558-
-
2559-
message: "#^Parameter \\#1 \\$type of static method Mage\\:\\:getBaseUrl\\(\\) expects string, array given\\.$#"
2560-
count: 1
2561-
path: app/code/core/Mage/Core/Controller/Front/Router.php
2562-
25632538
-
25642539
message: "#^Constructor of class Mage_Core_Controller_Varien_Action has an unused parameter \\$invokeArgs\\.$#"
25652540
count: 1
@@ -4070,11 +4045,6 @@ parameters:
40704045
count: 1
40714046
path: app/code/core/Mage/Log/Model/Aggregation.php
40724047

4073-
-
4074-
message: "#^Method Mage_Log_Model_Aggregation\\:\\:_removeEmpty\\(\\) is unused\\.$#"
4075-
count: 1
4076-
path: app/code/core/Mage/Log/Model/Aggregation.php
4077-
40784048
-
40794049
message: "#^Parameter \\#1 \\$id of method Mage_Log_Model_Aggregation\\:\\:_update\\(\\) expects int, string given\\.$#"
40804050
count: 1
@@ -4225,11 +4195,6 @@ parameters:
42254195
count: 1
42264196
path: app/code/core/Mage/Paypal/Model/Cart.php
42274197

4228-
-
4229-
message: "#^Method Mage_Paypal_Model_Config\\:\\:_matchBnCountryCode\\(\\) is unused\\.$#"
4230-
count: 1
4231-
path: app/code/core/Mage/Paypal/Model/Config.php
4232-
42334198
-
42344199
message: "#^Negated boolean expression is always true\\.$#"
42354200
count: 1
@@ -4955,16 +4920,6 @@ parameters:
49554920
count: 1
49564921
path: app/code/core/Mage/Sales/Model/Order/Shipment/Api/V2.php
49574922

4958-
-
4959-
message: "#^Method Mage_Sales_Model_Order_Status_History\\:\\:getStatusLabel\\(\\) should return string but return statement is missing\\.$#"
4960-
count: 1
4961-
path: app/code/core/Mage/Sales/Model/Order/Status/History.php
4962-
4963-
-
4964-
message: "#^Property Mage_Sales_Model_Order_Status_History\\:\\:\\$_shouldSetOrderBeforeSave is never read, only written\\.$#"
4965-
count: 1
4966-
path: app/code/core/Mage/Sales/Model/Order/Status/History.php
4967-
49684923
-
49694924
message: "#^Parameter \\#2 \\$totalConfig of method Mage_Sales_Model_Config_Ordered\\:\\:_prepareConfigArray\\(\\) expects Mage_Core_Model_Config_Element, array given\\.$#"
49704925
count: 1

.rector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
CodeQuality\Foreach_\UnusedForeachValueToArrayKeysRector::class,
3030
CodeQuality\FuncCall\ChangeArrayPushToArrayAssignRector::class,
3131
CodeQuality\FuncCall\CompactToVariablesRector::class,
32+
CodeQuality\FunctionLike\SimplifyUselessVariableRector::class,
3233
CodeQuality\Identical\SimplifyArraySearchRector::class,
3334
CodeQuality\Identical\SimplifyConditionsRector::class,
3435
CodeQuality\Identical\StrlenZeroToIdenticalEmptyStringRector::class,

0 commit comments

Comments
 (0)