phpan/phpstan clean up runs, minor update to DB\IO
DB\IO dbReturn method has a third parameter to set read only assoc and not number data from the query Install basic composer for trying out psalm setting phpan/phpstan for basic static checking and do basic clean up on all of the files
This commit is contained in:
@@ -15,12 +15,12 @@ if (class_exists('Autoload', false) === false) {
|
||||
{
|
||||
// print "(1) Class: $class / DIR: ".__DIR__."<br>";
|
||||
// set directory seperator (we need to replace from namespace)
|
||||
$ds = DS ?? DIRECTORY_SEPARATOR;
|
||||
$ds = defined('DS') ? DS : DIRECTORY_SEPARATOR;
|
||||
// base lib
|
||||
$LIB = LIB ?? 'lib';
|
||||
$LIB = defined('LIB') ? LIB : 'lib';
|
||||
// if lib is in path, do not add lib again
|
||||
if (strpos(__DIR__, $LIB) !== false) {
|
||||
$LIB .= DS;
|
||||
$LIB .= $ds;
|
||||
} else {
|
||||
$LIB = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user