From c937596d437e9a2f87c14dd0aec1cf6f97f01530 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Mon, 7 Feb 2022 19:16:07 +0300 Subject: [PATCH] remove trailing ?> in the end of php files --- .editorconfig | 1 - src/ajax.php | 4 ---- src/export.php | 2 -- src/feed.php | 2 -- src/includes/class.config.php | 2 -- src/includes/class.db.mysql.php | 2 -- src/includes/class.db.mysqli.php | 2 -- src/includes/class.db.sqlite3.php | 2 -- src/includes/common.php | 2 -- src/init.php | 2 -- 10 files changed, 21 deletions(-) diff --git a/.editorconfig b/.editorconfig index 58692bf..228325c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,7 +14,6 @@ insert_final_newline = true [*.php] indent_style = space indent_size = 4 -insert_final_newline = false # temporary. spaces will be used later. [*.js] diff --git a/src/ajax.php b/src/ajax.php index 8a97563..5587eb0 100644 --- a/src/ajax.php +++ b/src/ajax.php @@ -950,7 +950,3 @@ function getUserListsSimple() } return $a; } - - - -?> \ No newline at end of file diff --git a/src/export.php b/src/export.php index 7af704e..69163a3 100644 --- a/src/export.php +++ b/src/export.php @@ -157,5 +157,3 @@ function utf8chunks($text, $chunklen=75, $delimiter="\r\n\t") if($s != '') $a[] = $s; return implode($delimiter, $a); } - -?> \ No newline at end of file diff --git a/src/feed.php b/src/feed.php index 74ae233..ccfdd5f 100644 --- a/src/feed.php +++ b/src/feed.php @@ -140,5 +140,3 @@ function printRss($data, $listData) header("Content-type: text/xml; charset=utf-8"); print $s; } - -?> \ No newline at end of file diff --git a/src/includes/class.config.php b/src/includes/class.config.php index f21ec54..11a5739 100644 --- a/src/includes/class.config.php +++ b/src/includes/class.config.php @@ -305,5 +305,3 @@ class Config } } } - -?> \ No newline at end of file diff --git a/src/includes/class.db.mysql.php b/src/includes/class.db.mysql.php index e6c096e..d706784 100644 --- a/src/includes/class.db.mysql.php +++ b/src/includes/class.db.mysql.php @@ -184,5 +184,3 @@ class Database_Mysql extends Database_Abstract return false; } } - -?> \ No newline at end of file diff --git a/src/includes/class.db.mysqli.php b/src/includes/class.db.mysqli.php index 9dd3fb4..10c15b7 100644 --- a/src/includes/class.db.mysqli.php +++ b/src/includes/class.db.mysqli.php @@ -151,5 +151,3 @@ class Database_Mysql extends Database_Abstract return false; } } - -?> \ No newline at end of file diff --git a/src/includes/class.db.sqlite3.php b/src/includes/class.db.sqlite3.php index 79f627b..a7cce4e 100644 --- a/src/includes/class.db.sqlite3.php +++ b/src/includes/class.db.sqlite3.php @@ -177,5 +177,3 @@ class Database_Sqlite3 extends Database_Abstract return false; } } - -?> \ No newline at end of file diff --git a/src/includes/common.php b/src/includes/common.php index 14633d4..42830df 100644 --- a/src/includes/common.php +++ b/src/includes/common.php @@ -172,5 +172,3 @@ function isValidSignature(string $signature, string $id, string $key, string $sa if ( hash_equals($signature, idSignature($id, $key, $salt)) ) return true; return false; } - -?> \ No newline at end of file diff --git a/src/init.php b/src/init.php index 9af0137..72e5125 100644 --- a/src/init.php +++ b/src/init.php @@ -284,5 +284,3 @@ function logAndDie($userText, $errText = null) } exit(1); } - -?> \ No newline at end of file