diff --git a/Config/phpcs.xml b/Config/phpcs.xml
index 0d70e42..08f993b 100755
--- a/Config/phpcs.xml
+++ b/Config/phpcs.xml
@@ -20,16 +20,21 @@
*/Web/*
*/omsSetup/*
*/demoSetup/*
+*/privateSetup/*
*/Routes/*
*/Tools/*
*/tests/*
*/vendor/*
*/OAuth2/*
*/Mail/*
+*/Interfaces/*
+*/Workflows/*
+*/Accounting/*
*Hooks.php
*Markdown.js
*Markdown.php
*ObjLoader.js
+config.php
*Routes.php
*SearchCommands.php
*Sha1.js
@@ -164,6 +169,7 @@
*Pdf.php
*Excel.php
*/tests/*
+ */Interfaces/*
diff --git a/Config/phpstan-baseline.neon b/Config/phpstan-baseline.neon
index 9243b3c..364905f 100755
--- a/Config/phpstan-baseline.neon
+++ b/Config/phpstan-baseline.neon
@@ -1,151 +1,2 @@
parameters:
ignoreErrors:
- -
- message: "#^Parameter \\#1 \\$columns of method phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Builder\\:\\:where\\(\\) expects array\\|phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Where\\|string, string\\|null given\\.$#"
- count: 1
- path: *Modules/Admin/Models/GroupMapper.php
-
- -
- message: "#^Cannot access offset string on array\\\\|Modules\\\\Media\\\\Models\\\\Media\\.$#"
- count: 4
- path: *Modules/Helper/Controller/ApiController.php
-
- -
- message: "#^Cannot access an offset on array\\\\|Modules\\\\Media\\\\Models\\\\Media\\.$#"
- count: 1
- path: *Modules/Helper/Controller/BackendController.php
-
- -
- message: "#^Method Modules\\\\Workflow\\\\Templates\\\\Permission\\\\Workflow\\:\\:run\\(\\) has parameter \\$data with no typehint specified\\.$#"
- count: 1
- path: *Modules/Workflow/Templates/Permission/Workflow.php
-
- -
- message: "#^Method Modules\\\\Workflow\\\\Templates\\\\Permission\\\\Workflow\\:\\:runPending\\(\\) has parameter \\$data with no typehint specified\\.$#"
- count: 1
- path: *Modules/Workflow/Templates/Permission/Workflow.php
-
- -
- message: "#^Method Modules\\\\Workflow\\\\Templates\\\\Permission\\\\Workflow\\:\\:runRequest\\(\\) has parameter \\$data with no typehint specified\\.$#"
- count: 1
- path: *Modules/Workflow/Templates/Permission/Workflow.php
-
- -
- message: "#^Property Modules\\\\Workflow\\\\Templates\\\\Permission\\\\Workflow\\:\\:\\$id has no typehint specified\\.$#"
- count: 1
- path: *Modules/Workflow/Templates/Permission/Workflow.php
-
- -
- message: "#^Property Modules\\\\Workflow\\\\Templates\\\\Permission\\\\Workflow\\:\\:\\$state has no typehint specified\\.$#"
- count: 1
- path: *Modules/Workflow/Templates/Permission/Workflow.php
-
- -
- message: "#^Parameter \\#2 \\$callback of function usort expects callable\\(mixed, mixed\\)\\: int, array\\('self', 'continuousComparator'\\) given\\.$#"
- count: 1
- path: *phpOMS/Algorithm/Knapsack/Continuous.php
-
- -
- message: "#^Constructor of class phpOMS\\\\Business\\\\Marketing\\\\ArticleCorrelationAffinity has an unused parameter \\$considerQuantity\\.$#"
- count: 1
- path: *phpOMS/Business/Marketing/ArticleCorrelationAffinity.php
-
- -
- message: "#^Parameter \\#1 \\$dbdata of class phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\MysqlConnection constructor expects array\\('db' \\=\\> string, 'host' \\=\\> string, 'port' \\=\\> int, 'login' \\=\\> string, 'password' \\=\\> string, 'database' \\=\\> string\\), array\\('db' \\=\\> string, \\?'host' \\=\\> string, \\?'port' \\=\\> int, \\?'login' \\=\\> string, \\?'password' \\=\\> string, 'database' \\=\\> string\\) given\\.$#"
- count: 1
- path: *phpOMS/DataStorage/Database/Connection/ConnectionFactory.php
-
- -
- message: "#^Parameter \\#1 \\$dbdata of class phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\PostgresConnection constructor expects array\\('db' \\=\\> string, 'host' \\=\\> string, 'port' \\=\\> int, 'login' \\=\\> string, 'password' \\=\\> string, 'database' \\=\\> string\\), array\\('db' \\=\\> string, \\?'host' \\=\\> string, \\?'port' \\=\\> int, \\?'login' \\=\\> string, \\?'password' \\=\\> string, 'database' \\=\\> string\\) given\\.$#"
- count: 1
- path: *phpOMS/DataStorage/Database/Connection/ConnectionFactory.php
-
- -
- message: "#^Parameter \\#1 \\$dbdata of class phpOMS\\\\DataStorage\\\\Database\\\\Connection\\\\SqlServerConnection constructor expects array\\('db' \\=\\> string, 'host' \\=\\> string, 'port' \\=\\> int, 'login' \\=\\> string, 'password' \\=\\> string, 'database' \\=\\> string\\), array\\('db' \\=\\> string, \\?'host' \\=\\> string, \\?'port' \\=\\> int, \\?'login' \\=\\> string, \\?'password' \\=\\> string, 'database' \\=\\> string\\) given\\.$#"
- count: 1
- path: *phpOMS/DataStorage/Database/Connection/ConnectionFactory.php
-
- -
- message: "#^Array \\(array\\\\) does not accept phpOMS\\\\DataStorage\\\\DataStorageConnectionInterface\\.$#"
- count: 1
- path: *phpOMS/DataStorage/Database/DatabasePool.php
-
- -
- message: "#^Call to an undefined method phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Column\\:\\:getColumn\\(\\)\\.$#"
- count: 1
- path: *phpOMS/DataStorage/Database/Query/Builder.php
-
- -
- message: "#^Parameter \\#2 \\$operator of method phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Builder\\:\\:on\\(\\) expects array\\|string, array\\|string\\|null given\\.$#"
- count: 2
- path: *phpOMS/DataStorage/Database/Query/Builder.php
-
- -
- message: "#^Parameter \\#2 \\$operator of method phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Builder\\:\\:where\\(\\) expects array\\|string, array\\|string\\|null given\\.$#"
- count: 2
- path: *phpOMS/DataStorage/Database/Query/Builder.php
-
- -
- message: "#^Parameter \\#3 \\$values of method phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Builder\\:\\:on\\(\\) expects array\\|string, array\\|string\\|null given\\.$#"
- count: 2
- path: *phpOMS/DataStorage/Database/Query/Builder.php
-
- -
- message: "#^Possibly invalid array key type phpOMS\\\\DataStorage\\\\Database\\\\Query\\\\Builder\\|string\\.$#"
- count: 1
- path: *phpOMS/DataStorage/Database/Query/Builder.php
-
- -
- message: "#^Method phpOMS\\\\Math\\\\Geometry\\\\ConvexHull\\\\MonotoneChain\\:\\:createConvexHull\\(\\) should return array\\ float\\|int, 'y' \\=\\> float\\|int\\)\\> but returns array\\ float\\|int, 'y' \\=\\> float\\|int\\)\\>\\.$#"
- count: 1
- path: *phpOMS/Math/Geometry/ConvexHull/MonotoneChain.php
-
- -
- message: "#^Parameter \\#3 \\$length of function array_slice expects int\\|null, float\\|int given\\.$#"
- count: 1
- path: *phpOMS/Math/Geometry/ConvexHull/MonotoneChain.php
-
- -
- message: "#^Parameter \\#1 \\$matrix of method phpOMS\\\\Math\\\\Matrix\\\\Matrix\\:\\:setMatrix\\(\\) expects array\\\\>, array\\\\> given\\.$#"
- count: 1
- path: *phpOMS/Math/Matrix/CholeskyDecomposition.php
-
- -
- message: "#^Binary operation \"\\-\" between string\\|null and int results in an error\\.$#"
- count: 1
- path: *phpOMS/Math/Matrix/Matrix.php
-
- -
- message: "#^Method phpOMS\\\\Math\\\\Matrix\\\\Matrix\\:\\:current\\(\\) should return int but returns float\\|int\\.$#"
- count: 1
- path: *phpOMS/Math/Matrix/Matrix.php
-
- -
- message: "#^Method phpOMS\\\\Math\\\\Matrix\\\\Matrix\\:\\:key\\(\\) should return string but returns int\\.$#"
- count: 1
- path: *phpOMS/Math/Matrix/Matrix.php
-
- -
- message: "#^Parameter \\#1 \\$offset of method phpOMS\\\\Math\\\\Matrix\\\\Matrix\\:\\:offsetExists\\(\\) expects string, int given\\.$#"
- count: 1
- path: *phpOMS/Math/Matrix/Matrix.php
-
- -
- message: "#^Call to an undefined method DirectoryIterator\\|RecursiveIteratorIterator\\\\|RegexIterator\\:\\:getPathname\\(\\)\\.$#"
- count: 1
- path: *phpOMS/System/File/Local/Directory.php
-
- -
- message: "#^Parameter \\#2 \\$count of function array_fill expects int\\<0, max\\>, int given\\.$#"
- count: 1
- path: *phpOMS/Algorithm/Knapsack/Bounded.php
-
- -
- message: "#^Offset 'currency' does not exist on SimpleXMLElement\\|null\\.$#"
- count: 1
- path: *phpOMS/Utils/Converter/Currency.php
-
- -
- message: "#^Offset 'rate' does not exist on SimpleXMLElement\\|null\\.$#"
- count: 1
- path: *phpOMS/Utils/Converter/Currency.php
\ No newline at end of file
diff --git a/Config/phpstan.neon b/Config/phpstan.neon
index 5ed2dbb..f24d812 100755
--- a/Config/phpstan.neon
+++ b/Config/phpstan.neon
@@ -10,26 +10,26 @@ parameters:
treatPhpDocTypesAsCertain: false
excludePaths:
- *.tpl.php
- - */tests/*
- */Modules/Media/Files/*
- */omsSetup/*
- */demoSetup/*
- - */d0cbb361b14ac3ef32486f0a09ab937d/*
+ - */privateSetup/*
- */test/*
+ - */tests/*
+ - */Sandbox/*
- */Tools/*
+ - */Logs/*
- *Test.php
- *Routes.php
- *Hooks.php
- *ObjLoader.js
- */vendor/*
- - *vendor*
- */Demo/*
- */Build/*
- */Cache/*
- - */Docs/*
- - */Documentation/*
- */Resources/*
- */Libraries/*
+ - */Web/*
- */Routes/*
- */Hooks/*
- */DataStorage/Database/*
@@ -39,27 +39,31 @@ parameters:
- */Socket/*
- */node_modules/*
- */Modules/Shop/Admin/Install/Application/*
- - */Install/Application*
- - */Web/*
- */Modules/**/Application/*
- - */Modules/Organization/Controller/BackendController.php
- - *Model/CoreSettings.php
+ - */Accounting/*
ignoreErrors:
- - '#[.]*tag @var for constant .* is not subtype of value array[.]*#'
+ - '#.*tag @var for constant.*#'
- '#[.]*Offset .* on array.* always exists[.]*#'
- '#[.]*separator of function explode expects non-empty-string[.]*#'
- - '#[.]*PhpOffice\\PhpSpreadsheet\\[.]*#'
- '#^Call to an undefined method phpOMS\\Module\\ModuleAbstract::[.]*#'
- '#^Strict comparison using === between[.]*#'
+ - '#.*key\(\) should return.*#'
+ - '#.*current\(\) should return.*#'
+ - '#.*offsetExists\(\) expects.*#'
- '#[.]*jsonSerialize\(\) has no return typehint specified#'
+ - '#.*unserialize\(\) has parameter .* with no typehint specified#'
- '#expects phpOMS\\Algorithm\\PathFinding\\JumpPointNode\|null, phpOMS\\Algorithm\\PathFinding\\Node\|null given#'
- '#should return array but returns array