summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--giglogadmin.php12
-rw-r--r--includes/admin/register_db_tables.php2
-rw-r--r--includes/public/shortcodes/giglog_bands.php2
-rw-r--r--includes/public/shortcodes/giglog_display_unprocessed.php2
-rw-r--r--includes/public/shortcodes/giglog_photographers.php2
-rw-r--r--includes/public/shortcodes/giglog_process_files.php2
-rw-r--r--tests/VenueTest.php2
-rw-r--r--tests/stubs/wpdb_stub.php2
8 files changed, 13 insertions, 13 deletions
diff --git a/giglogadmin.php b/giglogadmin.php
index af1d90c..0e8b399 100644
--- a/giglogadmin.php
+++ b/giglogadmin.php
@@ -1,8 +1,3 @@
-// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
-// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
-//
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
<?php
/**
* Gigolog Admin
@@ -10,7 +5,7 @@
* @package giglogadmin
* @author Andrea Chirulescu, Harald Eilertsen
* @copyright 2021 Andrea Chirulescu, Harald Eilertsen
- * @license AGPL-3.0
+ * @license AGPL-3.0-or-later
*
* @wordpress-plugin
* Plugin Name: Giglog Admin
@@ -22,6 +17,11 @@
* License URI: https://www.gnu.org/licenses/agpl-3.0.txthttps://www.gnu.org/licenses/agpl-3.0.txt
*/
+// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
+// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php';
diff --git a/includes/admin/register_db_tables.php b/includes/admin/register_db_tables.php
index 7f00ac0..1121253 100644
--- a/includes/admin/register_db_tables.php
+++ b/includes/admin/register_db_tables.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
if (!function_exists('giglogadmin_populate_countries')) {
function giglogadmin_populate_countries()
{
diff --git a/includes/public/shortcodes/giglog_bands.php b/includes/public/shortcodes/giglog_bands.php
index dc0d8a1..5533142 100644
--- a/includes/public/shortcodes/giglog_bands.php
+++ b/includes/public/shortcodes/giglog_bands.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
/*
* code used for giglogadmin for the open page where everyone sees the list of
* concerts. First function displays filters by city, venue and the second one
diff --git a/includes/public/shortcodes/giglog_display_unprocessed.php b/includes/public/shortcodes/giglog_display_unprocessed.php
index 6c61e34..21382fd 100644
--- a/includes/public/shortcodes/giglog_display_unprocessed.php
+++ b/includes/public/shortcodes/giglog_display_unprocessed.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
/*
* I kinda overloaded this snippet. Added comments for each function. But this
* is used in the giglog admin page, which should only be available to admin
diff --git a/includes/public/shortcodes/giglog_photographers.php b/includes/public/shortcodes/giglog_photographers.php
index 0c36817..cb79375 100644
--- a/includes/public/shortcodes/giglog_photographers.php
+++ b/includes/public/shortcodes/giglog_photographers.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
/*
* code used for giglogadmin for the page where users such as photographers/concert reviewers
* check what gigs are available and show interest for them
diff --git a/includes/public/shortcodes/giglog_process_files.php b/includes/public/shortcodes/giglog_process_files.php
index 9919a51..9dc2ec0 100644
--- a/includes/public/shortcodes/giglog_process_files.php
+++ b/includes/public/shortcodes/giglog_process_files.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
/*
* snippet used to upload files with concerts. File is tab delimited file.
* Band Venue Date TicketLink Eventlink. The form is at the end of this snippet
diff --git a/tests/VenueTest.php b/tests/VenueTest.php
index a49301b..e886167 100644
--- a/tests/VenueTest.php
+++ b/tests/VenueTest.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
diff --git a/tests/stubs/wpdb_stub.php b/tests/stubs/wpdb_stub.php
index 74a1647..957c994 100644
--- a/tests/stubs/wpdb_stub.php
+++ b/tests/stubs/wpdb_stub.php
@@ -1,9 +1,9 @@
+<?php
// SPDX-FileCopyrightText: 2021 Andrea Chirulescu <andrea.chirulescu@gmail.com>
// SPDX-FileCopyrightText: 2021 Harald Eilertsen <haraldei@anduin.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
-<?php
class wpdb {
public $insert_id = NULL;
public function insert(string $table, array $data) { $this->insert_id = 1; }