Skip to content

Commit

Permalink
NTR: Merge branch 'master' into users/vm/MOL-1196-tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Nov 27, 2023
2 parents d548cb8 + 214c933 commit cfd494e
Show file tree
Hide file tree
Showing 356 changed files with 19,146 additions and 6,703 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
- name: Start Docker
shell: bash
run: |
docker run --rm --name shop --env NODE_VERSION=18 --env PHP_VERSION=8.1 -d dockware/dev:6.5.3.2
docker run --rm --name shop --env NODE_VERSION=18 --env PHP_VERSION=8.1 -d dockware/dev:6.5.7.2
sleep 20
docker logs shop
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build_zip.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Build ZIP File

on:
workflow_dispatch:
on: [ pull_request, workflow_dispatch ]

jobs:

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci_pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ jobs:
fail-fast: false
matrix:
include:
- shopware: '6.5.3.2'
- shopware: '6.5.7.2'
php: '8.2'
- shopware: '6.5.6.1'
php: '8.2'
- shopware: '6.5.5.2'
php: '8.2'
- shopware: '6.4.20.2'
php: '8.2'
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/nightly_pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,15 @@ jobs:
fail-fast: false
matrix:
include:
- shopware: '6.5.3.2'
- shopware: '6.5.7.2'
php: '8.2'
- shopware: '6.5.6.1'
php: '8.2'
- shopware: '6.5.5.2'
php: '8.2'
- shopware: '6.5.4.1'
php: '8.2'
- shopware: '6.5.3.3'
php: '8.2'
- shopware: '6.5.3.0'
php: '8.2'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr_pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ jobs:
fail-fast: false
matrix:
include:
- shopware: '6.5.3.2'
- shopware: '6.5.6.1'
php: '8.2'
- shopware: '6.5.5.2'
php: '8.2'
- shopware: '6.4.20.2'
php: '8.2'
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ src/Resources/public/administration/js/
/tests/Cypress/cypress/results
/src/Resources/app/administration/.stryker-tmp
/.phpunuhi/
/src/Resources/public/static
/src/Resources/public/static/css
/src/Resources/public/static/js
/src/Resources/public/js
/src/Resources/public/mollie-payments.js
32 changes: 23 additions & 9 deletions .php_cs.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
<?php

return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
$finder = \PhpCsFixer\Finder::create()->in([
__DIR__ . '/src',
]);

$finder->exclude(
[
'Resources'
]
);

$config = new \PhpCsFixer\Config();

$config->setRules(
[
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
Expand All @@ -14,9 +25,12 @@
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types_order' => true,
'yoda_style' => null,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['Resources'])
->in(__DIR__ . '/src'));
'yoda_style' => false,
]
);

$config->setFinder($finder);

$config->setUsingCache(false);

return $config;
15 changes: 15 additions & 0 deletions .phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@ parameters:
# legacy code that is not working with abstract/interface changes
- ./src/Compatibility/Storefront/Route/PaymentMethodRoute/RemovePaymentMethodRoute63.php
- ./src/Service/Mail/MailService63.php
disallowedFunctionCalls:
- function: 'var_dump()'
message: 'use some logger instead'
- function: 'var_export()'
message: 'use some logger instead'
- function: 'dd()'
message: 'use some logger instead'
- function: 'print_r()'
message: 'use some logger instead'
- function: 'putenv()'
message: 'might overwrite existing variables'

services:
- class: MolliePayments\PHPStan\Rules\NoManufacturerRule
tags:
- phpstan.rules.rule

includes:
- vendor/spaze/phpstan-disallowed-calls/extension.neon
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiener/mollie-payments-plugin",
"description": "Mollie Payments",
"version": "v4.0.0",
"version": "v4.3.0",
"type": "shopware-platform-plugin",
"license": "MIT",
"authors": [
Expand Down Expand Up @@ -36,13 +36,15 @@
"config": {
"optimize-autoloader": true,
"allow-plugins": {
"infection/extension-installer": true
"infection/extension-installer": true,
"php-http/discovery": true
}
},
"autoload": {
"psr-4": {
"Kiener\\MolliePayments\\": "src/",
"Mollie\\Api\\": "vendor/mollie/mollie-api-php/src/"
"Mollie\\Api\\": "vendor_manual/mollie/mollie-api-php/src/",
"Shopware\\Core\\": "polyfill/Shopware/Core/"
}
},
"autoload-dev": {
Expand All @@ -62,17 +64,17 @@
},
"require": {
"php": ">=7.4",
"ext-curl": "*",
"mollie/mollie-api-php": "2.40.1"
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "1.8.2",
"phpstan/phpstan": "1.10.0",
"friendsofphp/php-cs-fixer": "^2.18",
"phpcompatibility/php-compatibility": "^9.3",
"squizlabs/php_codesniffer": "^3.6",
"infection/infection": "^0.25.4",
"boxblinkracer/phpunuhi": "dev-main",
"spaze/phpstan-disallowed-calls": "^2.16",
"shopware/core": "*",
"shopware/administration": "*",
"shopware/storefront": "*"
Expand Down
Loading

0 comments on commit cfd494e

Please sign in to comment.