chore: Аннотация типов
This commit is contained in:
parent
f964472e62
commit
cf0bc435ce
19 changed files with 96 additions and 37 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<?php
|
||||
namespace {
|
||||
if (!function_exists('sqliteLower')) {
|
||||
/**
|
||||
* @param string $str
|
||||
* @return string
|
||||
*/
|
||||
function sqliteLower($str)
|
||||
{
|
||||
return mb_strtolower($str, 'UTF-8');
|
||||
|
|
@ -183,7 +187,7 @@ namespace ctiso {
|
|||
* @param array $values - значения
|
||||
* @param bool $return_id - возвращать id
|
||||
* @param string $index - индекс
|
||||
* @return int|mixed
|
||||
* @return int|null
|
||||
*/
|
||||
function insertQuery($table, array $values, $return_id = false, $index = null)
|
||||
{
|
||||
|
|
@ -208,6 +212,7 @@ namespace ctiso {
|
|||
return $result['lastid'];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue