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:
fileExtensions:
- php
scanDirectories:
- ../../Resources/tcpdf
- ../../Resources/PhpOffice
reportUnmatchedIgnoredErrors: false
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
@ -38,7 +41,6 @@ parameters:
- */Markdown/Markdown.php
- */Socket/*
- */node_modules/*
- */Modules/Shop/Admin/Install/Application/*
- */Modules/**/Application/*
- */Accounting/*
ignoreErrors:

View File

@ -35,13 +35,13 @@ foreach ($modules as $module) {
}
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
if (empty($model)) {
throw \Exception('invalid substr');
throw new Exception('invalid substr');
}
if (!\is_file(__DIR__ . '/../../Modules/' . $module . '/tests/Models/Null' . $model . 'Test.php')) {