diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-05-08 19:18:38 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-05-08 19:18:38 +0200 |
commit | 4977a733b6f614de868fc405b820d5c66e5bf9b7 (patch) | |
tree | fb033d693061bc22d069aa591e9dadf94c2a54b2 /includes/admin/views/giglog_import_gigs.php | |
parent | 22397366614e9d80eed49d28994c5801e8821d27 (diff) | |
download | gigologadmin-4977a733b6f614de868fc405b820d5c66e5bf9b7.tar.gz gigologadmin-4977a733b6f614de868fc405b820d5c66e5bf9b7.tar.bz2 gigologadmin-4977a733b6f614de868fc405b820d5c66e5bf9b7.zip |
Auto fixup missing return types by Psalm
Diffstat (limited to 'includes/admin/views/giglog_import_gigs.php')
-rw-r--r-- | includes/admin/views/giglog_import_gigs.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/admin/views/giglog_import_gigs.php b/includes/admin/views/giglog_import_gigs.php index 053f505..badd678 100644 --- a/includes/admin/views/giglog_import_gigs.php +++ b/includes/admin/views/giglog_import_gigs.php @@ -12,7 +12,7 @@ if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) { require_once __DIR__ . '/../../venue.php'; class GiglogAdmin_ImportGigsPage { - static function render_html() { + static function render_html(): void { ?> <div class="wrap"> <h1>Import gigs</h1> @@ -27,7 +27,7 @@ if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) { <?php } - static function submit_form() { + static function submit_form(): void { if ('POST' === $_SERVER['REQUEST_METHOD'] && current_user_can('upload_files') && !empty($_FILES['giglog_import_file']['tmp_name'])) { $nonce = $_POST['giglog_import_nonce']; $valid_nonce = isset($nonce) && wp_verify_nonce($nonce); @@ -48,8 +48,10 @@ if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) { * 5. Event info link * * Empty lines are ignored. + * + * @return void */ - static function process_upload($file) { + static function process_upload($file): void { $newconcert= []; $fo = new SplFileObject($file['tmp_name']); |