From 774b3674600c837dd331f43605f05d5fc83cf930 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 19 Dec 2022 18:19:11 -0500 Subject: [PATCH] Added declare strict_types. --- cli_cron.php | 2 ++ cli_unit_tests.php | 2 ++ public/main.page | 2 ++ src/before_main.php | 2 ++ src/configs/ex/loadall.php | 4 +++- src/configs/ex/on_email.php | 2 ++ src/configs/ex/on_html.php | 2 ++ src/configs/ex/on_http_request.php | 2 ++ src/configs/ex/on_security.php | 2 ++ src/configs/ex/on_sessions.php | 2 ++ src/configs/ex/on_tts.php | 2 ++ src/configs/ex/on_view_mode.php | 2 ++ src/configs/live/off_cache.php | 2 ++ src/configs/live/off_twilio.php | 2 ++ src/configs/live/on_database.php | 2 ++ src/configs/live/on_email.php | 2 ++ src/configs/live/on_html.php | 2 ++ src/configs/live/on_http_request.php | 2 ++ src/configs/live/on_security.php | 2 ++ src/configs/live/on_sessions.php | 2 ++ src/configs/live/on_tts.php | 2 ++ src/configs/live/on_view_mode.php | 2 ++ src/configs/mockup/loadall.php | 4 +++- src/configs/mockup/on_email.php | 2 ++ src/configs/mockup/on_html.php | 2 ++ src/configs/mockup/on_http_request.php | 2 ++ src/configs/mockup/on_security.php | 2 ++ src/configs/mockup/on_sessions.php | 2 ++ src/configs/mockup/on_tts.php | 2 ++ src/configs/mockup/on_view_mode.php | 2 ++ src/ex/controllers/app/home_ctrl.php | 2 ++ src/ex/controllers/cronjobs/daily_ctrl.php | 2 ++ src/ex/inputs/app/home_in.php | 2 ++ src/ex/models/app/home_model.php | 2 ++ src/ex/outputs/app/home_out.php | 2 ++ src/ex/views/default/app/footer.php | 2 ++ src/ex/views/default/app/header.php | 2 ++ src/ex/views/default/app/home_index.php | 2 ++ src/main.php | 2 ++ src/mockup/cli_controllers/app/home_ctrl.php | 2 ++ src/mockup/controllers/app/home_ctrl.php | 2 ++ src/mockup/controllers/bills/notices_ctrl.php | 2 ++ src/mockup/inputs/app/home_in.php | 2 ++ src/mockup/models/app/home_model.php | 2 ++ src/mockup/outputs/app/home_out.php | 2 ++ src/mockup/outputs/bills/notices_out.php | 2 ++ src/mockup/routes/cli_routes.php | 2 ++ src/mockup/routes/routes.php | 2 ++ src/mockup/routes/test_routes.php | 2 ++ src/mockup/views/default/app/footer.php | 2 ++ src/mockup/views/default/app/header.php | 2 ++ src/mockup/views/default/app/home_index.php | 6 ++++-- src/mockup/views/default/app/name_demo.php | 2 ++ src/mockup/views/default/app/name_demo_post.php | 2 ++ src/services/ex/loadall.php | 4 +++- src/services/ex/on_html_filter.php | 2 ++ src/services/ex/on_log.php | 2 ++ src/services/ex/on_templates.php | 2 ++ src/services/ex/on_test_db.php | 2 ++ src/services/live/off_cache.php | 2 ++ src/services/live/off_test_db.php | 2 ++ src/services/live/on_crypto.php | 2 ++ src/services/live/on_db.php | 2 ++ src/services/live/on_debugger.php | 2 ++ src/services/live/on_emailer.php | 2 ++ src/services/live/on_encryption.php | 2 ++ src/services/live/on_html_filter.php | 2 ++ src/services/live/on_http_request.php | 2 ++ src/services/live/on_log.php | 2 ++ src/services/live/on_passwords.php | 2 ++ src/services/live/on_session.php | 2 ++ src/services/live/on_templates.php | 2 ++ src/services/live/on_twillio.php | 2 ++ src/services/mockup/loadall.php | 4 +++- src/services/mockup/on_html_filter.php | 2 ++ src/services/mockup/on_log.php | 2 ++ src/services/mockup/on_templates.php | 2 ++ src/services/mockup/on_test_db.php | 2 ++ 78 files changed, 162 insertions(+), 6 deletions(-) diff --git a/cli_cron.php b/cli_cron.php index 900565e..d3f8e1b 100755 --- a/cli_cron.php +++ b/cli_cron.php @@ -1,6 +1,8 @@ #!/usr/bin/php '', // SMTP Hosts - seperated by ; // 'username' => '', diff --git a/src/configs/ex/on_html.php b/src/configs/ex/on_html.php index 5f379b9..9b427a2 100644 --- a/src/configs/ex/on_html.php +++ b/src/configs/ex/on_html.php @@ -1,5 +1,7 @@ 'Robert Strutts', 'title' => 'In Mockup...', diff --git a/src/configs/ex/on_http_request.php b/src/configs/ex/on_http_request.php index a61f591..9899063 100644 --- a/src/configs/ex/on_http_request.php +++ b/src/configs/ex/on_http_request.php @@ -1,5 +1,7 @@ 'sockets', // curl or sockets )); diff --git a/src/configs/ex/on_security.php b/src/configs/ex/on_security.php index 1c09819..04230fa 100644 --- a/src/configs/ex/on_security.php +++ b/src/configs/ex/on_security.php @@ -1,5 +1,7 @@ true, 'key' => 'y8+HSfrO8wFknxND8SA2mQZBoYpPDeK+2FmIzdxFU9EmTsZ2rdo7GED0nt4DsKoHmbiBBIoNTMAfl+eEMv6qeA==', diff --git a/src/configs/ex/on_sessions.php b/src/configs/ex/on_sessions.php index e6ec9df..061bb73 100644 --- a/src/configs/ex/on_sessions.php +++ b/src/configs/ex/on_sessions.php @@ -1,5 +1,7 @@ 'php', // php, db 'type' => 'none', // Session Type: files, database, or cache diff --git a/src/configs/ex/on_tts.php b/src/configs/ex/on_tts.php index 9719dd8..0118aa0 100644 --- a/src/configs/ex/on_tts.php +++ b/src/configs/ex/on_tts.php @@ -1,5 +1,7 @@ array('json', 'common', 'flexbox', 'default') )); \ No newline at end of file diff --git a/src/configs/live/off_cache.php b/src/configs/live/off_cache.php index 8c9884c..fc72c19 100644 --- a/src/configs/live/off_cache.php +++ b/src/configs/live/off_cache.php @@ -1,5 +1,7 @@ false, 'log_cache_hits' => false, diff --git a/src/configs/live/off_twilio.php b/src/configs/live/off_twilio.php index 95a7260..ced256d 100644 --- a/src/configs/live/off_twilio.php +++ b/src/configs/live/off_twilio.php @@ -1,5 +1,7 @@ '____ADD_ME_HERE____', 'AuthToken' => '____ADD_ME_HERE____', diff --git a/src/configs/live/on_database.php b/src/configs/live/on_database.php index 1c5a48d..19d0b10 100644 --- a/src/configs/live/on_database.php +++ b/src/configs/live/on_database.php @@ -1,5 +1,7 @@ '', // SMTP Hosts - seperated by ; // 'username' => '', diff --git a/src/configs/live/on_html.php b/src/configs/live/on_html.php index cf3b0d4..1ca48bd 100644 --- a/src/configs/live/on_html.php +++ b/src/configs/live/on_html.php @@ -1,5 +1,7 @@ 'My Cool Project', 'javascript' => array('js/error_handler.js'=>'tts', 'js/store.js'=>'tts'), //'js/analytics.js'=>'project' diff --git a/src/configs/live/on_http_request.php b/src/configs/live/on_http_request.php index a61f591..9899063 100644 --- a/src/configs/live/on_http_request.php +++ b/src/configs/live/on_http_request.php @@ -1,5 +1,7 @@ 'sockets', // curl or sockets )); diff --git a/src/configs/live/on_security.php b/src/configs/live/on_security.php index 1c09819..04230fa 100644 --- a/src/configs/live/on_security.php +++ b/src/configs/live/on_security.php @@ -1,5 +1,7 @@ true, 'key' => 'y8+HSfrO8wFknxND8SA2mQZBoYpPDeK+2FmIzdxFU9EmTsZ2rdo7GED0nt4DsKoHmbiBBIoNTMAfl+eEMv6qeA==', diff --git a/src/configs/live/on_sessions.php b/src/configs/live/on_sessions.php index 383347c..8bea071 100644 --- a/src/configs/live/on_sessions.php +++ b/src/configs/live/on_sessions.php @@ -1,5 +1,7 @@ 'php', // php, db 'type' => 'none', // Session Type: files, database, or cache diff --git a/src/configs/live/on_tts.php b/src/configs/live/on_tts.php index 4a0d66d..5c52652 100644 --- a/src/configs/live/on_tts.php +++ b/src/configs/live/on_tts.php @@ -1,5 +1,7 @@ array('default', 'common') )); \ No newline at end of file diff --git a/src/configs/mockup/loadall.php b/src/configs/mockup/loadall.php index f75af84..634652e 100644 --- a/src/configs/mockup/loadall.php +++ b/src/configs/mockup/loadall.php @@ -1,4 +1,6 @@ - '', // SMTP Hosts - seperated by ; // 'username' => '', diff --git a/src/configs/mockup/on_html.php b/src/configs/mockup/on_html.php index 39cf2e8..7edd269 100644 --- a/src/configs/mockup/on_html.php +++ b/src/configs/mockup/on_html.php @@ -1,5 +1,7 @@ 'In Mockup...', 'author' => 'Robert Strutts', diff --git a/src/configs/mockup/on_http_request.php b/src/configs/mockup/on_http_request.php index a61f591..9899063 100644 --- a/src/configs/mockup/on_http_request.php +++ b/src/configs/mockup/on_http_request.php @@ -1,5 +1,7 @@ 'sockets', // curl or sockets )); diff --git a/src/configs/mockup/on_security.php b/src/configs/mockup/on_security.php index 1c09819..04230fa 100644 --- a/src/configs/mockup/on_security.php +++ b/src/configs/mockup/on_security.php @@ -1,5 +1,7 @@ true, 'key' => 'y8+HSfrO8wFknxND8SA2mQZBoYpPDeK+2FmIzdxFU9EmTsZ2rdo7GED0nt4DsKoHmbiBBIoNTMAfl+eEMv6qeA==', diff --git a/src/configs/mockup/on_sessions.php b/src/configs/mockup/on_sessions.php index e6ec9df..061bb73 100644 --- a/src/configs/mockup/on_sessions.php +++ b/src/configs/mockup/on_sessions.php @@ -1,5 +1,7 @@ 'php', // php, db 'type' => 'none', // Session Type: files, database, or cache diff --git a/src/configs/mockup/on_tts.php b/src/configs/mockup/on_tts.php index 9719dd8..0118aa0 100644 --- a/src/configs/mockup/on_tts.php +++ b/src/configs/mockup/on_tts.php @@ -1,5 +1,7 @@ array('json', 'common', 'flexbox', 'default') )); \ No newline at end of file diff --git a/src/ex/controllers/app/home_ctrl.php b/src/ex/controllers/app/home_ctrl.php index 6c73c59..fdd020d 100644 --- a/src/ex/controllers/app/home_ctrl.php +++ b/src/ex/controllers/app/home_ctrl.php @@ -1,5 +1,7 @@ ['media'=>'all'] ]; diff --git a/src/ex/views/default/app/home_index.php b/src/ex/views/default/app/home_index.php index 335af88..edfbc75 100644 --- a/src/ex/views/default/app/home_index.php +++ b/src/ex/views/default/app/home_index.php @@ -1,6 +1,8 @@

Welcome...to Example Codes

diff --git a/src/main.php b/src/main.php index df8f5a3..682f2f2 100644 --- a/src/main.php +++ b/src/main.php @@ -1,4 +1,6 @@ ['media'=>'all'] ]; diff --git a/src/mockup/views/default/app/home_index.php b/src/mockup/views/default/app/home_index.php index 0e83acb..37effac 100644 --- a/src/mockup/views/default/app/home_index.php +++ b/src/mockup/views/default/app/home_index.php @@ -1,6 +1,6 @@ -

Welcome...to your M0ck Ups

- +

Welcome...to your M0ck Ups

+ View Name Demo

View Late Payment Signing \ No newline at end of file diff --git a/src/mockup/views/default/app/name_demo.php b/src/mockup/views/default/app/name_demo.php index f7daac2..b971270 100644 --- a/src/mockup/views/default/app/name_demo.php +++ b/src/mockup/views/default/app/name_demo.php @@ -1,4 +1,6 @@ diff --git a/src/mockup/views/default/app/name_demo_post.php b/src/mockup/views/default/app/name_demo_post.php index 59020fd..a5cc565 100644 --- a/src/mockup/views/default/app/name_demo_post.php +++ b/src/mockup/views/default/app/name_demo_post.php @@ -1,4 +1,6 @@ diff --git a/src/services/ex/loadall.php b/src/services/ex/loadall.php index 34ff354..70cc588 100644 --- a/src/services/ex/loadall.php +++ b/src/services/ex/loadall.php @@ -1,4 +1,6 @@ -register('html_filter', function() { return new \tts\services\html_filter(); }); \ No newline at end of file diff --git a/src/services/ex/on_log.php b/src/services/ex/on_log.php index 2414de7..6071887 100644 --- a/src/services/ex/on_log.php +++ b/src/services/ex/on_log.php @@ -1,5 +1,7 @@ register('log', function(array $arg) { $file_name = null; if (isset($arg[0]) && is_string($arg[0])) { diff --git a/src/services/ex/on_templates.php b/src/services/ex/on_templates.php index 94412e6..a359c4f 100644 --- a/src/services/ex/on_templates.php +++ b/src/services/ex/on_templates.php @@ -1,5 +1,7 @@ register('templates', function(array $arg) { $file_type = '.tpl'; if (isset($arg[0]) && is_string($arg[0])) { diff --git a/src/services/ex/on_test_db.php b/src/services/ex/on_test_db.php index 86ebc6b..deac963 100644 --- a/src/services/ex/on_test_db.php +++ b/src/services/ex/on_test_db.php @@ -1,5 +1,7 @@ register('db_mocker', function($args) { try { $conn = new \PDO('sqlite::memory:'); diff --git a/src/services/live/off_cache.php b/src/services/live/off_cache.php index a077da4..cdf036d 100644 --- a/src/services/live/off_cache.php +++ b/src/services/live/off_cache.php @@ -1,5 +1,7 @@ register('cache', function(array $args) { $servers = \tts\main\configure::get('cache', 'servers'); diff --git a/src/services/live/off_test_db.php b/src/services/live/off_test_db.php index 666da89..c4f616d 100644 --- a/src/services/live/off_test_db.php +++ b/src/services/live/off_test_db.php @@ -1,5 +1,7 @@ register('db_mocker', function($args) { try { return new PDO('sqlite::memory:'); diff --git a/src/services/live/on_crypto.php b/src/services/live/on_crypto.php index f4a9d1d..8459816 100644 --- a/src/services/live/on_crypto.php +++ b/src/services/live/on_crypto.php @@ -1,5 +1,7 @@ register('crypto', function($nonce) { return new \tts\services\crypto($nonce); }); \ No newline at end of file diff --git a/src/services/live/on_db.php b/src/services/live/on_db.php index 1bc79b0..9309c78 100644 --- a/src/services/live/on_db.php +++ b/src/services/live/on_db.php @@ -1,5 +1,7 @@ register('db', function(array $args) { if (isset($args[0])) { $db_select = $args[0]; diff --git a/src/services/live/on_debugger.php b/src/services/live/on_debugger.php index 9f9d966..c0b3d14 100644 --- a/src/services/live/on_debugger.php +++ b/src/services/live/on_debugger.php @@ -1,5 +1,7 @@ register('debugger', function($o) { return \tts\services\debugger::error($o); }); \ No newline at end of file diff --git a/src/services/live/on_emailer.php b/src/services/live/on_emailer.php index c910cb5..2e17287 100644 --- a/src/services/live/on_emailer.php +++ b/src/services/live/on_emailer.php @@ -1,5 +1,7 @@ register('emailer', function() { return new \tts\services\emailer(); }); \ No newline at end of file diff --git a/src/services/live/on_encryption.php b/src/services/live/on_encryption.php index d3e5b09..4e4240d 100644 --- a/src/services/live/on_encryption.php +++ b/src/services/live/on_encryption.php @@ -1,5 +1,7 @@ register('encryption', function() { return new \tts\services\encryption(); }); \ No newline at end of file diff --git a/src/services/live/on_html_filter.php b/src/services/live/on_html_filter.php index 36a6474..507db7d 100644 --- a/src/services/live/on_html_filter.php +++ b/src/services/live/on_html_filter.php @@ -1,5 +1,7 @@ register('html_filter', function() { return new \tts\services\html_filter(); }); \ No newline at end of file diff --git a/src/services/live/on_http_request.php b/src/services/live/on_http_request.php index ac7db8c..1174b52 100644 --- a/src/services/live/on_http_request.php +++ b/src/services/live/on_http_request.php @@ -1,5 +1,7 @@ register('http_request', function() { if (\tts\main\configure::get('http_request', 'use') == 'curl') { return new \tts\services\http_requests\http_curl_request(); diff --git a/src/services/live/on_log.php b/src/services/live/on_log.php index 2414de7..6071887 100644 --- a/src/services/live/on_log.php +++ b/src/services/live/on_log.php @@ -1,5 +1,7 @@ register('log', function(array $arg) { $file_name = null; if (isset($arg[0]) && is_string($arg[0])) { diff --git a/src/services/live/on_passwords.php b/src/services/live/on_passwords.php index bf03a85..a5d0763 100644 --- a/src/services/live/on_passwords.php +++ b/src/services/live/on_passwords.php @@ -1,5 +1,7 @@ register('passwords', function() { return new \tts\services\passwords(); }); \ No newline at end of file diff --git a/src/services/live/on_session.php b/src/services/live/on_session.php index 38545f6..6ad283f 100644 --- a/src/services/live/on_session.php +++ b/src/services/live/on_session.php @@ -1,5 +1,7 @@ register('session', function(array $args) { if (isset($arg[0]) && is_string($arg[0])) { $type = $arg[0]; diff --git a/src/services/live/on_templates.php b/src/services/live/on_templates.php index 94412e6..a359c4f 100644 --- a/src/services/live/on_templates.php +++ b/src/services/live/on_templates.php @@ -1,5 +1,7 @@ register('templates', function(array $arg) { $file_type = '.tpl'; if (isset($arg[0]) && is_string($arg[0])) { diff --git a/src/services/live/on_twillio.php b/src/services/live/on_twillio.php index 6c18a44..4661c6c 100644 --- a/src/services/live/on_twillio.php +++ b/src/services/live/on_twillio.php @@ -1,5 +1,7 @@ register('twillio', function() { return new \tts\services\twillio(); }); \ No newline at end of file diff --git a/src/services/mockup/loadall.php b/src/services/mockup/loadall.php index 5e7864f..9b51253 100644 --- a/src/services/mockup/loadall.php +++ b/src/services/mockup/loadall.php @@ -1,4 +1,6 @@ -register('html_filter', function() { return new \tts\services\html_filter(); }); \ No newline at end of file diff --git a/src/services/mockup/on_log.php b/src/services/mockup/on_log.php index 2414de7..6071887 100644 --- a/src/services/mockup/on_log.php +++ b/src/services/mockup/on_log.php @@ -1,5 +1,7 @@ register('log', function(array $arg) { $file_name = null; if (isset($arg[0]) && is_string($arg[0])) { diff --git a/src/services/mockup/on_templates.php b/src/services/mockup/on_templates.php index 94412e6..a359c4f 100644 --- a/src/services/mockup/on_templates.php +++ b/src/services/mockup/on_templates.php @@ -1,5 +1,7 @@ register('templates', function(array $arg) { $file_type = '.tpl'; if (isset($arg[0]) && is_string($arg[0])) { diff --git a/src/services/mockup/on_test_db.php b/src/services/mockup/on_test_db.php index 3170aca..7a0be41 100644 --- a/src/services/mockup/on_test_db.php +++ b/src/services/mockup/on_test_db.php @@ -1,5 +1,7 @@ register('db_mocker', function($args) { try { $conn = new \PDO('sqlite::memory:');