From 6a2420351ac15ecab7797294d510aebcf533637d Mon Sep 17 00:00:00 2001 From: valentina Date: Tue, 10 Sep 2024 12:38:16 +0200 Subject: [PATCH] Formattazione codice --- actions.php | 4 ++-- ajax_dataload.php | 2 +- include/top.php | 4 ++-- log.php | 2 +- mail.php | 6 +++--- modules/anagrafiche/bulk.php | 2 -- modules/anagrafiche/modutil.php | 12 +++++++----- modules/anagrafiche/src/Anagrafica.php | 9 +++++---- modules/anagrafiche/src/Sede.php | 9 +++++---- modules/articoli/edit.php | 8 ++++---- modules/emails/ajax/complete.php | 19 +++++++++---------- modules/emails/edit.php | 4 ++-- modules/interventi/plugins/mappa.php | 4 ++-- modules/mappa/actions.php | 2 +- modules/mappa/edit.php | 4 ++-- modules/statistiche/edit.php | 8 ++++---- plugins/exportFE/src/Validator.php | 2 +- plugins/importFE/src/FatturaElettronica.php | 4 ++-- plugins/sedi/actions.php | 4 ++-- src/Models/Upload.php | 2 +- src/Validate.php | 1 - templates/fatture/body.php | 2 +- templates/ordini/body.php | 2 +- templates/partitario_mastrino/bottom.php | 2 +- 24 files changed, 59 insertions(+), 59 deletions(-) diff --git a/actions.php b/actions.php index 6e1dd613d..bc3482362 100755 --- a/actions.php +++ b/actions.php @@ -515,9 +515,9 @@ if ($structure->permission == 'rw') { foreach ($values as $key => $value) { $name = $dbo->fetchOne('SELECT `name` FROM `zz_fields` WHERE `id` = '.prepare($key)); - $custom_fields = new HTMLBuilder\Manager\FieldManager; + $custom_fields = new HTMLBuilder\Manager\FieldManager(); $campo = $custom_fields->getValue(['id_record' => $id_record, 'id_module' => $id_module], $name); - if (empty($campo)){ + if (empty($campo)) { $dbo->insert('zz_field_record', [ 'id_record' => $id_record, 'id_field' => $key, diff --git a/ajax_dataload.php b/ajax_dataload.php index e56069aeb..d5749cc84 100755 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -133,7 +133,7 @@ if (!empty($query)) { // Formattazione HTML if (empty($total['html_format'][$pos]) && !empty($value)) { - $value = strip_tags($value?:''); + $value = strip_tags($value ?: ''); } // Formattazione automatica diff --git a/include/top.php b/include/top.php index 2ca4a2c6d..7232417f8 100755 --- a/include/top.php +++ b/include/top.php @@ -457,8 +457,8 @@ if (Auth::check()) {