Skip to content

Commit 5755517

Browse files
committed
Merge branch 'main' into drop-php7
# Conflicts: # .github/workflows/phpstan.yml # .phpstan.dist.baseline.neon # README.md
2 parents 7da2e88 + e8c49e6 commit 5755517

File tree

6,155 files changed

+52689
-53756
lines changed

Some content is hidden

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

6,155 files changed

+52689
-53756
lines changed

.all-contributorsrc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@
99
"imageSize": 100,
1010
"commit": true,
1111
"commitConvention": "none",
12+
"contributorsPerLine": 7,
1213
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" loading=\"lazy\" width=\"<%= options.imageSize %>\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
1314
"badgeTemplate": "<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg\" alt=\"All Contributors\"></a>",
15+
"wrapperTemplate": "\n<table>\n <tbody><%= bodyContent %> </tbody>\n<%= tableFooterContent %></table>\n\n",
1416
"contributors": [
1517
{
1618
"login": "sreichel",
1719
"name": "sv3n",
1820
"avatar_url": "https://avatars1.githubusercontent.com/u/5022236?v=4",
1921
"profile": "https://magento.stackexchange.com/users/46249/sv3n",
2022
"contributions": [
21-
"code"
23+
"code",
24+
"maintenance"
2225
]
2326
},
2427
{
@@ -1472,7 +1475,16 @@
14721475
"contributions": [
14731476
"code"
14741477
]
1478+
},
1479+
{
1480+
"login": "bucha",
1481+
"name": "Alexander Buch",
1482+
"avatar_url": "https://avatars.githubusercontent.com/u/1931120?v=4",
1483+
"profile": "http://www.cartware.de",
1484+
"contributions": [
1485+
"code"
1486+
]
14751487
}
14761488
],
1477-
"contributorsPerLine": 7
1489+
"commitType": "docs"
14781490
}

.ddev/commands/web/openmage-install

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ while :; do
4343
echo "Enable maintenance mode..."
4444
touch maintenance.flag
4545

46-
LOCALXML="${ROOT}/app/etc/local.xml"
46+
LOCALXML="${ROOT}"/"${DDEV_DOCROOT}/app/etc/local.xml"
4747
if [ -f "${LOCALXML}" ]; then
4848
if [[ "${QUIET_INSTALL_FLAG}" ]]; then
4949
DELETE='y'
@@ -88,21 +88,25 @@ if [[ $INSTALL_SAMPLE_DATA =~ ^(yes|y) ]]; then
8888
tar xf "${SAMPLE_DATA_FILE}"
8989

9090
echo "Copying Sample Data into the OpenMage directory..."
91-
cp -r magento-sample-data-1.9.2.4/media/* "${ROOT}/media/"
92-
cp -r magento-sample-data-1.9.2.4/skin/* "${ROOT}/skin/"
91+
cd "${ROOT}" || exit
92+
cp -r "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/media/* "${ROOT}"/"${DDEV_DOCROOT}/media/"
93+
cp -r "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/skin/* "${ROOT}"/"${DDEV_DOCROOT}/skin/"
9394

9495
echo "Clearing var/cache..."
95-
rm -rf "${ROOT}/var/cache/"*
96+
rm -rf "${ROOT}"/"${DDEV_DOCROOT}/var/cache/"*
9697

9798
echo "Importing Sample Data into the database..."
98-
mysql -u db -h db db < "${SAMPLE_DATA_DIRECTORY}/magento-sample-data-1.9.2.4/magento_sample_data_for_1.9.2.4.sql"
99+
mysql -u db -h db db < "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/magento_sample_data_for_1.9.2.4.sql
99100

100101
# remove sample data
101102
if [[ "${SAMPLE_DATA_KEEP_FLAG}" ]]; then
102103
# shellcheck disable=SC2046
104+
cd "${ROOT}" || exit
105+
echo "Removing uncompressed files..."
103106
rm -rf magento-sample-data-1.9.2.4/
104107
else
105108
cd "${ROOT}" || exit
109+
echo "Removing sample data..."
106110
rm -rf "${SAMPLE_DATA_DIRECTORY}"
107111
fi
108112
fi
@@ -138,7 +142,7 @@ else
138142
fi
139143
fi
140144

141-
php -f install.php -- \
145+
php -f "${ROOT}"/"${DDEV_DOCROOT}/"install.php -- \
142146
--license_agreement_accepted 'yes' \
143147
--locale 'en_US' \
144148
--timezone 'America/New_York' \

.ddev/commands/web/phpcs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
## Usage: phpcs
55
## Example: ddev phpcs <path-to-files>
66

7-
php vendor/bin/phpcs -s -p --report=full,summary "$@"
7+
php vendor/bin/phpcs -s -p --standard=.phpcs.dist.xml --cache=.phpcs.result.cache --report=full,summary "$@"

.ddev/commands/web/phpmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
## Usage: phpmd
55
## Example: ddev phpmd <path-to-files>
66

7-
php vendor/bin/phpmd "$@" text .phpmd.dist.xml
7+
php vendor/bin/phpmd "$@" text .phpmd.dist.xml --color --cache --baseline-file .phpmd.dist.baseline.xml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
## Description: run PHPMD
4+
## Usage: phpmd-no-baseline
5+
## Example: ddev phpmd-no-baseline <path-to-files>
6+
7+
php vendor/bin/phpmd "$@" text .phpmd.dist.xml

.ddev/commands/web/phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
## Usage: phpunit
55
## Example: ddev phpunit
66

7-
php vendor/bin/phpunit --no-coverage "$@" --testdox
7+
php vendor/bin/phpunit --configuration .phpunit.dist.xml --no-coverage "$@" --testdox

.ddev/commands/web/phpunit-coverage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
## Example: ddev phpunit-coverage
66

77
enable_xdebug
8-
XDEBUG_MODE=coverage php vendor/bin/phpunit "$@" --testdox
8+
XDEBUG_MODE=coverage php vendor/bin/phpunit --configuration .phpunit.dist.xml --testdox "$@"
99
disable_xdebug

.ddev/commands/web/phpunit-coverage-local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
## Example: ddev phpunit-coverage-local
66

77
enable_xdebug
8-
XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-html build/coverage "$@" --testdox
8+
XDEBUG_MODE=coverage php vendor/bin/phpunit --configuration .phpunit.dist.xml --coverage-html build/coverage --testdox "$@"
99
disable_xdebug

.ddev/commands/web/rector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
## Usage: rector
55
## Example: ddev rector <path-to-files>
66

7-
php vendor/bin/rector process "$@"
7+
php vendor/bin/rector process --config .rector.php "$@"

.gitattributes

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@
33
/.github export-ignore
44
/dev export-ignore
55
/docs export-ignore
6+
/docs_includes export-ignore
67
/tests export-ignore
78

89
/.all-contributorsrc export-ignore
910
/.gitattributes export-ignore
1011
/.gitignore export-ignore
11-
/.gitpod.yml export-ignore
1212

1313
/.php-cs-fixer.dist.php export-ignore
1414
/.phpcs.ecg.xml.dist export-ignore
1515
/.phpcs.php.xml.dist export-ignore
1616
/.phpcs.xml.dist export-ignore
17+
/.phpmd.dist.baseline.xml export-ignore
1718
/.phpmd.dist.xml export-ignore
1819
/.phpstan.dist.baseline.neon export-ignore
1920
/.phpstan.dist.neon export-ignore
20-
/rector.php export-ignore
21+
/.rector.php export-ignore
22+
23+
/CNAME export-ignore
2124

2225
/README.md export-ignore
2326

@@ -35,4 +38,4 @@
3538
*.sql text eol=lf
3639
*.svg text eol=lf
3740
*.txt text eol=lf
38-
*.phtml text eol=lf
41+
*.phtml text eol=lf

0 commit comments

Comments
 (0)