mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-10 08:28:41 +00:00
fix billing process
This commit is contained in:
parent
ad3cc28c3a
commit
60e9a40727
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user