From 2c3ebb3bbb0ebc3c36e5f9ec4d806785f9787970 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 21 Jan 2023 17:09:39 +0000 Subject: [PATCH] Tidy codestyle - spaces between parenthesis and curly braces --- account_add_modal.php | 2 +- accounts.php | 10 +- api_key_add_modal.php | 2 +- calendar_event_add_modal.php | 10 +- calendar_event_edit_modal.php | 22 +- calendar_events.php | 16 +- categories.php | 20 +- check_login.php | 18 +- client_add_modal.php | 16 +- client_asset_add_modal.php | 18 +- client_asset_copy_modal.php | 26 +- client_asset_documents_modal.php | 2 +- client_asset_edit_modal.php | 28 +- client_asset_interface_add_modal.php | 2 +- client_asset_tickets_modal.php | 2 +- client_assets.php | 106 +- client_certificate_add_modal.php | 2 +- client_certificates.php | 22 +- client_contact_add_modal.php | 4 +- client_contact_details.php | 68 +- client_contact_details_modal.php | 8 +- client_contact_edit_modal.php | 16 +- client_contacts.php | 32 +- client_delete_modal.php | 4 +- client_document_add_from_template_modal.php | 6 +- client_document_add_modal.php | 4 +- client_document_details.php | 4 +- client_document_edit_modal.php | 4 +- client_document_template_details.php | 2 +- client_document_templates.php | 12 +- client_documents.php | 28 +- client_domain_add_modal.php | 4 +- client_domains.php | 20 +- client_edit_modal.php | 14 +- client_events.php | 6 +- client_files.php | 18 +- client_invoices.php | 26 +- client_location_add_modal.php | 6 +- client_location_edit_modal.php | 10 +- client_locations.php | 20 +- client_login_add_modal.php | 8 +- client_login_edit_modal.php | 16 +- client_logins.php | 22 +- client_logs.php | 12 +- client_network_add_modal.php | 2 +- client_networks.php | 20 +- client_overview.php | 30 +- client_payments.php | 12 +- client_quotes.php | 24 +- client_recurring_invoices.php | 12 +- client_scheduled_tickets.php | 6 +- client_service_add_modal.php | 14 +- client_service_edit_modal.php | 34 +- client_service_view_modal.php | 70 +- client_services.php | 16 +- client_shared_items.php | 18 +- client_side_nav.php | 94 +- client_software.php | 16 +- client_software_add_modal.php | 4 +- client_software_edit_modal.php | 12 +- client_tickets.php | 30 +- client_trips.php | 16 +- client_vendor_templates.php | 26 +- client_vendors.php | 26 +- clients.php | 92 +- companies.php | 10 +- company_edit_modal.php | 6 +- cron.php | 40 +- dashboard_financial.php | 42 +- database_updates.php | 64 +- expense_add_modal.php | 8 +- expense_copy_modal.php | 12 +- expense_edit_modal.php | 14 +- expenses.php | 54 +- functions.php | 70 +- global_search.php | 32 +- guest_download_file.php | 12 +- guest_header.php | 4 +- guest_pay_invoice.php | 6 +- guest_post.php | 8 +- guest_view_invoice.php | 64 +- guest_view_item.php | 24 +- guest_view_quote.php | 24 +- inc_alert_feedback.php | 6 +- inc_all_client.php | 10 +- inc_client_top_head.php | 26 +- invoice.php | 58 +- invoice_add_modal.php | 6 +- invoice_edit_modal.php | 4 +- invoice_payment_add_modal.php | 10 +- invoices.php | 78 +- item_edit_modal.php | 8 +- login.php | 14 +- logs.php | 54 +- notifications.php | 8 +- notifications_dismissed.php | 28 +- pagination.php | 34 +- pagination_head.php | 8 +- payments.php | 52 +- portal/tickets.php | 2 +- post.php | 1112 +++++++++---------- product_add_modal.php | 4 +- product_edit_modal.php | 8 +- products.php | 10 +- quote.php | 46 +- quote_add_modal.php | 6 +- quote_edit_modal.php | 4 +- quotes.php | 66 +- recurring_invoice.php | 22 +- recurring_invoice_add_modal.php | 6 +- recurring_invoice_edit_modal.php | 14 +- recurring_invoices.php | 54 +- report_expense_by_vendor.php | 12 +- report_expense_summary.php | 12 +- report_income_by_client.php | 12 +- report_income_summary.php | 12 +- report_profit_loss.php | 10 +- report_recurring_by_client.php | 4 +- report_tax_summary.php | 8 +- reports_side_nav.php | 14 +- revenue_add_modal.php | 10 +- revenue_edit_modal.php | 14 +- revenues.php | 52 +- rfc6238.php | 8 +- scheduled_ticket_add_modal.php | 10 +- scheduled_tickets.php | 6 +- settings_alerts.php | 8 +- settings_api.php | 12 +- settings_defaults.php | 30 +- settings_mail.php | 12 +- settings_modules.php | 6 +- settings_online_payment.php | 4 +- settings_side_nav.php | 44 +- settings_tag_edit_modal.php | 2 +- settings_tags.php | 12 +- settings_taxes.php | 8 +- settings_theme.php | 2 +- settings_ticket.php | 2 +- settings_update.php | 10 +- setup.php | 68 +- share_modal.php | 8 +- side_nav.php | 44 +- ticket_edit_modal.php | 18 +- ticket_invoice_add_modal.php | 8 +- ticket_reply_edit_modal.php | 2 +- tickets.php | 30 +- top_nav.php | 8 +- transfer_add_modal.php | 8 +- transfer_edit_modal.php | 8 +- transfers.php | 50 +- trip_add_modal.php | 8 +- trip_copy_modal.php | 12 +- trip_edit_modal.php | 12 +- trips.php | 56 +- user_add_modal.php | 2 +- user_companies_modal.php | 6 +- user_edit_modal.php | 14 +- user_invite_modal.php | 2 +- user_profile.php | 22 +- users.php | 28 +- vendor_add_from_template_modal.php | 4 +- vendor_add_modal.php | 2 +- vendor_template_add_modal.php | 2 +- vendors.php | 30 +- 164 files changed, 2156 insertions(+), 2156 deletions(-) diff --git a/account_add_modal.php b/account_add_modal.php index c79e3b57..d80e26dd 100644 --- a/account_add_modal.php +++ b/account_add_modal.php @@ -39,7 +39,7 @@ diff --git a/accounts.php b/accounts.php index c0018c16..2a0f2019 100644 --- a/accounts.php +++ b/accounts.php @@ -1,6 +1,6 @@
- +
@@ -36,7 +36,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
- "> + "> @@ -47,7 +47,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); @@ -104,7 +104,7 @@
- + @@ -121,12 +121,12 @@ - + - +
diff --git a/calendar_events.php b/calendar_events.php index 5d8fb791..64d52050 100644 --- a/calendar_events.php +++ b/calendar_events.php @@ -4,7 +4,7 @@
- +
@@ -61,10 +61,10 @@ $colors_diff = array_diff($colors_array,$colors_used_array);
@@ -72,7 +72,7 @@ $colors_diff = array_diff($colors_array,$colors_used_array);
Name Currency
- "> + "> @@ -82,7 +82,7 @@ $colors_diff = array_diff($colors_array,$colors_used_array); @@ -155,7 +155,7 @@ @@ -227,7 +227,7 @@
- +
@@ -237,7 +237,7 @@
@@ -251,7 +251,7 @@
@@ -277,7 +277,7 @@ // Checks/prompts that the primary contact field (required) is populated - function promptPrimaryContact(){ + function promptPrimaryContact() { let primaryContactField = document.getElementById("primaryContact").value; - if (primaryContactField == null || primaryContactField === ""){ + if (primaryContactField == null || primaryContactField === "") { document.getElementById("contactNavPill").click(); } } diff --git a/client_asset_add_modal.php b/client_asset_add_modal.php index 51cb2119..d7f35508 100644 --- a/client_asset_add_modal.php +++ b/client_asset_add_modal.php @@ -2,7 +2,7 @@
Name Color
- "> + "> - + - + - + - + - + @@ -162,26 +162,26 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); "; @@ -191,7 +191,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $asset_purchase_date = $row['asset_purchase_date']; $asset_warranty_expire = $row['asset_warranty_expire']; $asset_install_date = $row['asset_install_date']; - if(empty($asset_install_date)){ + if (empty($asset_install_date)) { $asset_install_date_display = "-"; }else{ $asset_install_date_display = $asset_install_date; @@ -203,41 +203,41 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $asset_contact_id = $row['asset_contact_id']; $asset_network_id = $row['asset_network_id']; - if($asset_type == 'Laptop'){ + if ($asset_type == 'Laptop') { $device_icon = "laptop"; - }elseif($asset_type == 'Desktop'){ + }elseif ($asset_type == 'Desktop') { $device_icon = "desktop"; - }elseif($asset_type == 'Server'){ + }elseif ($asset_type == 'Server') { $device_icon = "server"; - }elseif($asset_type == 'Printer'){ + }elseif ($asset_type == 'Printer') { $device_icon = "print"; - }elseif($asset_type == 'Camera'){ + }elseif ($asset_type == 'Camera') { $device_icon = "video"; - }elseif($asset_type == 'Switch' || $asset_type == 'Firewall/Router'){ + }elseif ($asset_type == 'Switch' || $asset_type == 'Firewall/Router') { $device_icon = "network-wired"; - }elseif($asset_type == 'Access Point'){ + }elseif ($asset_type == 'Access Point') { $device_icon = "wifi"; - }elseif($asset_type == 'Phone'){ + }elseif ($asset_type == 'Phone') { $device_icon = "phone"; - }elseif($asset_type == 'Mobile Phone'){ + }elseif ($asset_type == 'Mobile Phone') { $device_icon = "mobile-alt"; - }elseif($asset_type == 'Tablet'){ + }elseif ($asset_type == 'Tablet') { $device_icon = "tablet-alt"; - }elseif($asset_type == 'TV'){ + }elseif ($asset_type == 'TV') { $device_icon = "tv"; - }elseif($asset_type == 'Virtual Machine'){ + }elseif ($asset_type == 'Virtual Machine') { $device_icon = "cloud"; }else{ $device_icon = "tag"; } $contact_name = $row['contact_name']; - if(empty($contact_name)){ + if (empty($contact_name)) { $contact_name = "-"; } $location_name = $row['location_name']; - if(empty($location_name)){ + if (empty($location_name)) { $location_name = "-"; } @@ -264,7 +264,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); 0){ + if ($login_id > 0) { ?> @@ -304,20 +304,20 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); ?> - + - + - + - + - + @@ -329,13 +329,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); InterfacesEditCopy - 0){ ?> + 0) { ?> Documents () - 0){ ?> + 0) { ?> Tickets () - + ArchiveDelete diff --git a/client_certificate_add_modal.php b/client_certificate_add_modal.php index 92478a5e..19a9e8d3 100644 --- a/client_certificate_add_modal.php +++ b/client_certificate_add_modal.php @@ -74,7 +74,7 @@ $domain_name"; diff --git a/client_certificates.php b/client_certificates.php index 72192bf2..1932bcc1 100644 --- a/client_certificates.php +++ b/client_certificates.php @@ -2,7 +2,7 @@
- +
@@ -51,7 +51,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
Name Type Make/Model Serial Number Operating System Install Date Assigned To Location
- "> + "> @@ -63,7 +63,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); @@ -120,7 +120,7 @@ diff --git a/client_contact_details.php b/client_contact_details.php index 98fa49c0..017e1fc4 100644 --- a/client_contact_details.php +++ b/client_contact_details.php @@ -2,7 +2,7 @@ Primary Contact"; }else{ $primary_contact_display = FALSE; } $contact_location_id = $row['contact_location_id']; $location_name = htmlentities($row['location_name']); - if(empty($location_name)){ + if (empty($location_name)) { $location_name_display = "-"; }else{ $location_name_display = $location_name; @@ -65,7 +65,7 @@ if(isset($_GET['contact_id'])){
- + contact_photo"> @@ -76,19 +76,19 @@ if(isset($_GET['contact_id'])){

- +
- +
- +
- +
- +
@@ -122,7 +122,7 @@ if(isset($_GET['contact_id'])){ -
"> +
">

Assets

@@ -144,26 +144,26 @@ if(isset($_GET['contact_id'])){
"; @@ -173,7 +173,7 @@ if(isset($_GET['contact_id'])){ $asset_purchase_date = $row['asset_purchase_date']; $asset_warranty_expire = $row['asset_warranty_expire']; $asset_install_date = $row['asset_install_date']; - if(empty($asset_install_date)){ + if (empty($asset_install_date)) { $asset_install_date_display = "-"; }else{ $asset_install_date_display = $asset_install_date; @@ -184,29 +184,29 @@ if(isset($_GET['contact_id'])){ $asset_location_id = $row['asset_location_id']; $asset_network_id = $row['asset_network_id']; - if($asset_type == 'Laptop'){ + if ($asset_type == 'Laptop') { $device_icon = "laptop"; - }elseif($asset_type == 'Desktop'){ + }elseif ($asset_type == 'Desktop') { $device_icon = "desktop"; - }elseif($asset_type == 'Server'){ + }elseif ($asset_type == 'Server') { $device_icon = "server"; - }elseif($asset_type == 'Printer'){ + }elseif ($asset_type == 'Printer') { $device_icon = "print"; - }elseif($asset_type == 'Camera'){ + }elseif ($asset_type == 'Camera') { $device_icon = "video"; - }elseif($asset_type == 'Switch' || $asset_type == 'Firewall/Router'){ + }elseif ($asset_type == 'Switch' || $asset_type == 'Firewall/Router') { $device_icon = "network-wired"; - }elseif($asset_type == 'Access Point'){ + }elseif ($asset_type == 'Access Point') { $device_icon = "wifi"; - }elseif($asset_type == 'Phone'){ + }elseif ($asset_type == 'Phone') { $device_icon = "phone"; - }elseif($asset_type == 'Mobile Phone'){ + }elseif ($asset_type == 'Mobile Phone') { $device_icon = "mobile-alt"; - }elseif($asset_type == 'Tablet'){ + }elseif ($asset_type == 'Tablet') { $device_icon = "tablet-alt"; - }elseif($asset_type == 'TV'){ + }elseif ($asset_type == 'TV') { $device_icon = "tv"; - }elseif($asset_type == 'Virtual Machine'){ + }elseif ($asset_type == 'Virtual Machine') { $device_icon = "cloud"; }else{ $device_icon = "tag"; @@ -230,7 +230,7 @@ if(isset($_GET['contact_id'])){ InterfacesEditCopy - + ArchiveDelete @@ -260,7 +260,7 @@ if(isset($_GET['contact_id'])){ -
"> +
">

Passwords

@@ -280,17 +280,17 @@ if(isset($_GET['contact_id'])){
"; } $login_username = htmlentities($row['login_username']); - if(empty($login_username)){ + if (empty($login_username)) { $login_username_display = "-"; }else{ $login_username_display = "$login_username"; @@ -298,7 +298,7 @@ if(isset($_GET['contact_id'])){ $login_password = htmlentities(decryptLoginEntry($row['login_password'])); $login_otp_secret = htmlentities($row['login_otp_secret']); $login_id_with_secret = '"' . $row['login_id'] . '","' . $row['login_otp_secret'] . '"'; - if(empty($login_otp_secret)){ + if (empty($login_otp_secret)) { $otp_display = "-"; }else{ $otp_display = " Hover.."; @@ -331,7 +331,7 @@ if(isset($_GET['contact_id'])){ @@ -58,7 +58,7 @@
- > + >
@@ -122,11 +122,11 @@ '$contact_created_at' OR location_archived_at IS NULL) AND location_client_id = $client_id ORDER BY location_name ASC"); - while($row = mysqli_fetch_array($sql_locations)){ + while ($row = mysqli_fetch_array($sql_locations)) { $location_id_select = $row['location_id']; $location_name_select = htmlentities($row['location_name']); ?> - + - +
@@ -180,7 +180,7 @@
- + contact_photo"> diff --git a/client_contacts.php b/client_contacts.php index 38aee406..68373c15 100644 --- a/client_contacts.php +++ b/client_contacts.php @@ -2,11 +2,11 @@
- +
@@ -75,7 +75,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
Name Domain
- "> + "> @@ -89,36 +89,36 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $contact_title"; } $contact_department =htmlentities($row['contact_department']); - if(empty($contact_department)){ + if (empty($contact_department)) { $contact_department_display = "-"; }else{ $contact_department_display = $contact_department; } $contact_phone = formatPhoneNumber($row['contact_phone']); - if(empty($contact_phone)){ + if (empty($contact_phone)) { $contact_phone_display = "-"; }else{ $contact_phone_display = "$contact_phone"; } $contact_extension = htmlentities($row['contact_extension']); $contact_mobile = formatPhoneNumber($row['contact_mobile']); - if(empty($contact_mobile)){ + if (empty($contact_mobile)) { $contact_mobile_display = "-"; }else{ $contact_mobile_display = "$contact_mobile"; } $contact_email = htmlentities($row['contact_email']); - if(empty($contact_email)){ + if (empty($contact_email)) { $contact_email_display = "-"; }else{ $contact_email_display = "$contact_email"; @@ -128,14 +128,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); $contact_notes = htmlentities($row['contact_notes']); $contact_important = intval($row['contact_important']); $contact_created_at = $row['contact_created_at']; - if($contact_id == $primary_contact){ + if ($contact_id == $primary_contact) { $primary_contact_display = "Primary Contact"; }else{ $primary_contact_display = FALSE; } $contact_location_id = $row['contact_location_id']; $location_name = htmlentities($row['location_name']); - if(empty($location_name)){ + if (empty($location_name)) { $location_name_display = "-"; }else{ $location_name_display = $location_name; @@ -162,7 +162,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); - +
Name Department
- + "> @@ -183,7 +183,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); @@ -194,7 +194,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));