diff --git a/actions.php b/actions.php
index 05b6589bb..f099f0c30 100755
--- a/actions.php
+++ b/actions.php
@@ -54,7 +54,7 @@ if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') {
// Gestione delle operazioni
else {
- //UPLOAD PER CKEDITOR
+ // UPLOAD PER CKEDITOR
if (filter('op') == 'aggiungi-allegato' && !empty($_FILES) && !empty($_FILES['upload']['name'])) {
$CKEditor = get('CKEditor');
$funcNum = get('CKEditorFuncNum');
@@ -63,8 +63,8 @@ if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') {
'png', 'jpg', 'jpeg',
];
- //Maximum file limit (unit: byte)
- $max_size = '2097152'; //2MB
+ // Maximum file limit (unit: byte)
+ $max_size = '2097152'; // 2MB
// Get image file extension
$file_extension = pathinfo($_FILES['upload']['name'], PATHINFO_EXTENSION);
@@ -86,7 +86,7 @@ if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') {
// Creazione file fisico
if (!empty($upload)) {
- //flash()->info(tr('File caricato correttamente!'));
+ // flash()->info(tr('File caricato correttamente!'));
$id_allegato = $dbo->lastInsertedID();
$upload = Upload::find($id_allegato);
@@ -113,15 +113,15 @@ if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') {
echo json_encode($response);
}
} else {
- //flash()->error(tr('Errore durante il caricamento del file!'));
+ // flash()->error(tr('Errore durante il caricamento del file!'));
echo '';
}
} else {
- //flash()->error(tr('Estensione non permessa!'));
+ // flash()->error(tr('Estensione non permessa!'));
echo '';
}
- exit();
+ exit;
}
// UPLOAD
@@ -359,7 +359,7 @@ elseif (filter('op') == 'ordina-checks') {
elseif (post('op') == 'send-email') {
$template = Template::find(post('template'));
- $mail = \Modules\Emails\Mail::build($user, $template, $id_record);
+ $mail = Modules\Emails\Mail::build($user, $template, $id_record);
// Rimozione allegati predefiniti
$mail->resetPrints();
diff --git a/ajax.php b/ajax.php
index 68e808cfc..2a40d9342 100755
--- a/ajax.php
+++ b/ajax.php
@@ -52,7 +52,7 @@ switch (filter('op')) {
break;
- // Imposta un valore ad una sessione
+ // Imposta un valore ad una sessione
case 'session_set':
$array = explode(',', get('session'));
$value = get('value', true);
diff --git a/ajax_dataload.php b/ajax_dataload.php
index fbf00dfdb..0fd9df8b7 100755
--- a/ajax_dataload.php
+++ b/ajax_dataload.php
@@ -31,7 +31,7 @@ if (!empty(filter('order'))) {
}
array_shift($columns);
-$total = Util\Query::readQuery($structure);
+$total = Query::readQuery($structure);
// Ricerca
$search = [];
@@ -74,7 +74,7 @@ if (!empty($query)) {
$results['recordsFiltered'] = $data['count'];
// SOMME
- $results['summable'] = Util\Query::getSums($structure, $search);
+ $results['summable'] = Query::getSums($structure, $search);
// Allineamento delle righe
$align = [];
diff --git a/api/index.php b/api/index.php
index 3e117bc75..5b6c34cd1 100755
--- a/api/index.php
+++ b/api/index.php
@@ -43,7 +43,7 @@ try {
} catch (Exception $e) {
// Log dell'errore
$logger = logger();
- $logger->addRecord(\Monolog\Logger::ERROR, $e);
+ $logger->addRecord(Monolog\Logger::ERROR, $e);
$response = Response::error('serverError');
}
diff --git a/config.example.php b/config.example.php
index 3c9ce31c5..863e6d9a5 100755
--- a/config.example.php
+++ b/config.example.php
@@ -22,9 +22,9 @@ $db_host = '|host|';
$db_username = '|username|';
$db_password = '|password|';
$db_name = '|database|';
-//$port = '|port|';
+// $port = '|port|';
$db_options = [
- //'sort_buffer_size' => '2M',
+ // 'sort_buffer_size' => '2M',
];
// Percorso della cartella di backup
diff --git a/core.php b/core.php
index a410e50e7..181d75819 100755
--- a/core.php
+++ b/core.php
@@ -30,7 +30,7 @@ if (version_compare(phpversion(), $minimum) < 0) {
Stai utilizzando la versione PHP '.phpversion().', non compatibile con OpenSTAManager.
Aggiorna PHP alla versione >= '.$minimum.'.
';
- exit();
+ exit;
}
// Caricamento delle impostazioni personalizzabili
@@ -69,7 +69,7 @@ $config = App::getConfig();
if (!empty($config['redirectHTTPS']) && !isHTTPS(true)) {
header('HTTP/1.1 301 Moved Permanently');
header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
- exit();
+ exit;
}
/* GESTIONE DEGLI ERRORI */
@@ -181,7 +181,7 @@ if (!$continue && getURLPath() != slashes(base_path().'/index.php') && !Permissi
}
redirect(base_path().'/index.php');
- exit();
+ exit;
}
/* INIZIALIZZAZIONE GENERALE */
diff --git a/include/common/articolo.php b/include/common/articolo.php
index 2d7358abb..69af0781b 100755
--- a/include/common/articolo.php
+++ b/include/common/articolo.php
@@ -34,7 +34,7 @@ WHERE mg_articoli.id = '.prepare($result['idarticolo']));
$qta_minima = $articolo['qta_minima'];
- echo '
+echo '
{[ "type": "select", "disabled":"1", "label": "'.tr('Articolo').'", "name": "idarticolo", "value": "'.$result['idarticolo'].'", "ajax-source": "articoli", "select-options": '.json_encode($options['select-options']['articoli']).' ]}
';
@@ -518,7 +518,7 @@ if (Auth::check()) {
if (!empty($id_record)) {
$plugins = $dbo->fetchArray('SELECT id, title, options, options2 FROM zz_plugins WHERE idmodule_to='.prepare($id_module)." AND position='tab' AND enabled = 1 ORDER BY zz_plugins.order DESC");
foreach ($plugins as $plugin) {
- //Badge count per record plugin
+ // Badge count per record plugin
$count = 0;
$opt = '';
if (!empty($plugin['options2'])) {
@@ -565,7 +565,7 @@ if (Auth::check()) {