fix billing process

This commit is contained in:
Dennis Eichhorn 2023-04-08 04:36:25 +02:00
parent ad3cc28c3a
commit 60e9a40727
2 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,9 @@ includes:
parameters: parameters:
fileExtensions: fileExtensions:
- php - php
scanDirectories:
- ../../Resources/tcpdf
- ../../Resources/PhpOffice
reportUnmatchedIgnoredErrors: false reportUnmatchedIgnoredErrors: false
inferPrivatePropertyTypeFromConstructor: true inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false checkMissingIterableValueType: false
@ -38,7 +41,6 @@ parameters:
- */Markdown/Markdown.php - */Markdown/Markdown.php
- */Socket/* - */Socket/*
- */node_modules/* - */node_modules/*
- */Modules/Shop/Admin/Install/Application/*
- */Modules/**/Application/* - */Modules/**/Application/*
- */Accounting/* - */Accounting/*
ignoreErrors: ignoreErrors:

View File

@ -35,13 +35,13 @@ foreach ($modules as $module) {
} }
if (\stripos($model, '.php') === false) { if (\stripos($model, '.php') === false) {
throw \Exception('invalid substr'); throw new Exception('invalid substr');
} }
$model = \substr($model, 4, -4); // remove Null and .php from string $model = \substr($model, 4, -4); // remove Null and .php from string
if (empty($model)) { if (empty($model)) {
throw \Exception('invalid substr'); throw new Exception('invalid substr');
} }
if (!\is_file(__DIR__ . '/../../Modules/' . $module . '/tests/Models/Null' . $model . 'Test.php')) { if (!\is_file(__DIR__ . '/../../Modules/' . $module . '/tests/Models/Null' . $model . 'Test.php')) {