From 719ab8078dd9f802ef8d4ba965d605319248e592 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 7 Jun 2017 23:53:51 -0400 Subject: [PATCH] remove redundant php close tags --- binary.php | 2 -- calendar.php | 2 -- dwt.php | 2 -- examples/404.php | 2 -- fdb.php | 2 -- file.php | 2 -- file_run.php | 2 -- format.php | 2 -- http.php | 2 -- misc.php | 2 -- namespacify.sh | 2 +- template.php | 2 -- test/session_test_db_connect.php | 2 -- 13 files changed, 1 insertion(+), 25 deletions(-) diff --git a/binary.php b/binary.php index 6e0ae13..2fd2a76 100644 --- a/binary.php +++ b/binary.php @@ -51,5 +51,3 @@ function raw_to_array($data) { } return $ret; } - -?> diff --git a/calendar.php b/calendar.php index c7f00bc..fff508c 100644 --- a/calendar.php +++ b/calendar.php @@ -97,5 +97,3 @@ function calendar($year, $month, $events = 0, $template = 0) { calendar_week($template); } } - -?> diff --git a/dwt.php b/dwt.php index be75647..b4b821e 100644 --- a/dwt.php +++ b/dwt.php @@ -103,5 +103,3 @@ function dwt_output($filename = null) { } print(str_replace($GLOBALS['_dwt_keys'], $GLOBALS['_dwt_values'], $GLOBALS['_dwt_template'])); } - -?> diff --git a/examples/404.php b/examples/404.php index ecd477d..fc833b2 100644 --- a/examples/404.php +++ b/examples/404.php @@ -1,5 +1,3 @@ diff --git a/fdb.php b/fdb.php index 230a83b..91892f9 100644 --- a/fdb.php +++ b/fdb.php @@ -99,5 +99,3 @@ function fdb_delete($key) { } return false; } - -?> diff --git a/file.php b/file.php index 1001932..c834143 100644 --- a/file.php +++ b/file.php @@ -34,5 +34,3 @@ function read_whole_file_or_false($name) { } return read_whole_file($name); } - -?> diff --git a/file_run.php b/file_run.php index 1e8aa0f..e22e2bc 100644 --- a/file_run.php +++ b/file_run.php @@ -32,5 +32,3 @@ function file_run($filename /* args... */) { return call_user_func_array($func, $args); } } - -?> diff --git a/format.php b/format.php index 14c1b26..6b14ad7 100644 --- a/format.php +++ b/format.php @@ -383,5 +383,3 @@ function format_phone($str) { return $output; } - -?> diff --git a/http.php b/http.php index b1f2aec..2907410 100644 --- a/http.php +++ b/http.php @@ -91,5 +91,3 @@ function http_cache_forever($cache_control = 'public') { header("Cache-Control: $cache_control"); header('Expires: ' . gmdate('D, d M Y H:i:s',time()+31536000) . ' GMT'); # rfc 2616 says not to go more than a year in the future } - -?> diff --git a/misc.php b/misc.php index ff8105e..4aaa495 100644 --- a/misc.php +++ b/misc.php @@ -187,5 +187,3 @@ function ref(&$foo) { function &last(&$array) { if(count($array)) return $array[count($array) - 1]; } - -?> diff --git a/namespacify.sh b/namespacify.sh index 557992a..541f32f 100644 --- a/namespacify.sh +++ b/namespacify.sh @@ -57,4 +57,4 @@ if [ "$1" = 'wordpress' ]; then echo '}' wordpress_regex='s/function db_\(send_get\|insert_ish\|update\|delete\|\)(.*{/\0\n\t$table = add_wp_table_prefix($table);/; s/\$GLOBALS\['\''wfpl_db_handle'\''\]/$GLOBALS['\''wpdb'\'']->dbh/g;' fi -cat atexit.php csv.php db.php email.php encode.php file.php file_run.php format.php http.php messages.php misc.php template.php time.php | grep -v -e '' -e '^\s*//' -e 'require_once' -e '^\s*$' | grep -v -P -e '^\s*#\s*((?!NAMESPACIFY).)*$' | sed -e "$wordpress_regex"'s/\(register_shutdown_function\|function_exists\|call_user_func_array\)(/\0'\''\\\\wfpl\\\\'\'' . /; s/^\(\s*\)# NAMESPACIFY \(.*\)/\1\2 = '\''\\\\wfpl\\\\'\'' . \2;/' +cat atexit.php csv.php db.php email.php encode.php file.php file_run.php format.php http.php messages.php misc.php template.php time.php | grep -v -e ' diff --git a/test/session_test_db_connect.php b/test/session_test_db_connect.php index fff0a2c..0627fb1 100644 --- a/test/session_test_db_connect.php +++ b/test/session_test_db_connect.php @@ -3,5 +3,3 @@ require_once(__DIR__.'/../'.'db.php'); db_connect('DATABASE_NAME', 'USERNAME', 'PASSWORD'); - -?> -- 1.7.10.4