summaryrefslogtreecommitdiffstats
path: root/includes/public/shortcodes/giglog_display_unprocessed.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-05-08 21:03:29 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-05-08 21:03:29 +0200
commit7d17f220e52d683f849a1854278a9bd47af17dd2 (patch)
tree3fed3ff2c6ab28c397a929a02e56d238ca40ed6d /includes/public/shortcodes/giglog_display_unprocessed.php
parentee9bef751805ac3f3c9572d1620f2221092b3094 (diff)
parent30f12e61317d9b181efb46382a4db98d73f65954 (diff)
downloadgigologadmin-7d17f220e52d683f849a1854278a9bd47af17dd2.tar.gz
gigologadmin-7d17f220e52d683f849a1854278a9bd47af17dd2.tar.bz2
gigologadmin-7d17f220e52d683f849a1854278a9bd47af17dd2.zip
Merge branch 'psalm' into dev
This brings another tool in to help us keep the code in order - Psalm. (I thought the name was fitting! :) This will do fairly simple static analysis of the code, and report problems and suggest fixes. It can help fix some issues itself, but please double check that it does the right thing. More info: https://psalm.dev This merge also brings in fixes that was suggested by Paslm. Mostly this is typa annotations for functions, but also some bugfixes discovered by the tool.
Diffstat (limited to 'includes/public/shortcodes/giglog_display_unprocessed.php')
-rw-r--r--includes/public/shortcodes/giglog_display_unprocessed.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/public/shortcodes/giglog_display_unprocessed.php b/includes/public/shortcodes/giglog_display_unprocessed.php
index aa3596c..90ef69f 100644
--- a/includes/public/shortcodes/giglog_display_unprocessed.php
+++ b/includes/public/shortcodes/giglog_display_unprocessed.php
@@ -16,7 +16,7 @@
* gone through the processing process - aka fetching each line and
* transforming it into a concert line
*/
-function giglogadmin_getunprocessed()
+function giglogadmin_getunprocessed(): string
{
global $wpdb;
@@ -42,7 +42,7 @@ function giglogadmin_getunprocessed()
* venue exists. If they don't, they get created, if they do, their ID from
* their table is fetchd and used in concerts table
*/
-function giglogadmin_insertconcerts()
+function giglogadmin_insertconcerts(): string
{
global $wpdb;
$concertlist = '<p>Inserted the following:</p>';
@@ -128,7 +128,7 @@ function giglogadmin_insertconcerts()
return $concertlist;
}
-function giglogadmin_display_unprocessed() {
+function giglogadmin_display_unprocessed(): string {
$output = giglogadmin_getunprocessed();
$output .= '<form method="POST" action=""><input type="submit" name="ProcessConcerts" value="ProcessConcerts"/></form>';