summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-04-14 20:27:43 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-04-14 20:27:43 +0200
commit558544fcef3335216d225bb587129a424db8d7af (patch)
tree22d05d7d7bab03b16f6e190675bd84c935accbe1
parentbd8662b691e8b64ae15965bc154f810195faa53a (diff)
downloadgigologadmin-558544fcef3335216d225bb587129a424db8d7af.tar.gz
gigologadmin-558544fcef3335216d225bb587129a424db8d7af.tar.bz2
gigologadmin-558544fcef3335216d225bb587129a424db8d7af.zip
Add license comment _after_ the php opening tag.
-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; }