diff --git a/do_test_test.php b/do_test_test.php index 97b7c4b1..bbf1827b 100644 --- a/do_test_test.php +++ b/do_test_test.php @@ -81,7 +81,7 @@ function do_test_get_identifier($selection, $sess_testsql, $lang, $text): array * * @return string SQL projection (selection) string */ -function do_test_get_test_sql($selection, $sess_testsql, $lang, $text) +function do_test_get_test_sql($selection, $sess_testsql, $lang, $text): string { $identifier = do_test_get_identifier($selection, $sess_testsql, $lang, $text); $testsql = do_test_test_get_projection($identifier[0], $identifier[1]); diff --git a/do_text_text.php b/do_text_text.php index cb145b4a..bb2d9a81 100644 --- a/do_text_text.php +++ b/do_text_text.php @@ -851,8 +851,9 @@ function do_text_text_content($textid, $only_body = true): void } /* - * Uncoment to use as a page, deprecated behavior in LWT-fork, will be removed in 3.0.0 -if (isset($_REQUEST['text'])) { +Uncoment to use as a page, deprecated behavior in LWT-fork, will be removed in 3.0.0 + + if (isset($_REQUEST['text'])) { do_text_text_content($_REQUEST['text'], false); } */ diff --git a/edit_archivedtexts.php b/edit_archivedtexts.php index 88f776c6..8ba4b2e5 100644 --- a/edit_archivedtexts.php +++ b/edit_archivedtexts.php @@ -1,6 +1,6 @@

Third-Party Voice API

diff --git a/edit_tags.php b/edit_tags.php index ce0b59ff..c9f9fbba 100644 --- a/edit_tags.php +++ b/edit_tags.php @@ -1,6 +1,6 @@ , list{0?: string,...}} + * @psalm-return list{0?: array{SeID: int, TxID: int, position: int, term: string},...} */ function findMecabExpression($text, $lid): array { @@ -2935,9 +2935,11 @@ function insertExpressionFromMeCab($textlc, $lid, $wid, $len, $mode): array * @param string $textlc Text to insert in lower case * @param string|int $lid Language ID * - * @return (string|int)[] Each inserted mutli-word details + * @return (int|null|string)[][] Each inserted mutli-word details * * @global string $tbpref Table name prefix + * + * @psalm-return list{0?: array{SeID: int, SeTxID: int, position: int, term: null|string, term_display: null|string},...} */ function findStandardExpression($textlc, $lid): array { @@ -3587,12 +3589,12 @@ function create_save_ann($textid): string /** * Truncate the database, remove all data belonging by the current user. - * + * * Keep settings. - * + * * @global $tbpref */ -function truncateUserDatabase() +function truncateUserDatabase(): void { global $tbpref; runsql("TRUNCATE {$tbpref}archivedtexts", ''); diff --git a/inline_edit.php b/inline_edit.php index c0bc9077..5baf49f5 100644 --- a/inline_edit.php +++ b/inline_edit.php @@ -1,6 +1,6 @@