src: style sweep

This commit is contained in:
Franco Fichtner 2024-05-06 09:04:09 +02:00
parent 20a8006b67
commit e5c4cb0ce8
6 changed files with 8 additions and 9 deletions

1
plist
View File

@ -499,6 +499,7 @@
/usr/local/opnsense/mvc/app/library/OPNsense/Auth/Services/WebGui.php
/usr/local/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php
/usr/local/opnsense/mvc/app/library/OPNsense/Auth/Voucher.php
/usr/local/opnsense/mvc/app/library/OPNsense/Autoload/Loader.php
/usr/local/opnsense/mvc/app/library/OPNsense/Backup/BackupFactory.php
/usr/local/opnsense/mvc/app/library/OPNsense/Backup/Base.php
/usr/local/opnsense/mvc/app/library/OPNsense/Backup/GDrive.php

View File

@ -1,6 +1,6 @@
<?php
require_once (__DIR__ . '/../../app/library/OPNsense/Autoload/Loader.php');
require_once(__DIR__ . '/../../app/library/OPNsense/Autoload/Loader.php');
use OPNsense\Autoload\Loader;
$loader_paths = [
$config->application->controllersDir,

View File

@ -34,7 +34,7 @@ class Loader
private $is_registered = false;
private $classes_loaded = [];
public function __construct($dirs=null)
public function __construct($dirs = null)
{
$this->probe_dirs = $dirs;
}
@ -56,7 +56,7 @@ class Loader
public function register()
{
if (!$this->is_registered) {
spl_autoload_register([$this, "autoload"],true);
spl_autoload_register([$this, "autoload"], true);
$this->is_registered = true;
}
}

View File

@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
require_once (__DIR__ . '/../app/library/OPNsense/Autoload/Loader.php');
require_once(__DIR__ . '/../app/library/OPNsense/Autoload/Loader.php');
use OPNsense\Autoload\Loader;
$phalcon_config = include("/usr/local/opnsense/mvc/app/config/config.php");
$loader_paths = [

View File

@ -36,5 +36,3 @@ $config = include __DIR__ . "/app/config/config.php";
* Read auto-loader
*/
include __DIR__ . "/../app/config/loader.php";

View File

@ -111,7 +111,7 @@ export default class BaseTableWidget extends BaseWidget {
setTableOptions(options = {}) {
/**
* headerPosition: top, left or none.
* top: headers are on top of the table. Headers are defined in the options. Data layout:
* top: headers are on top of the table. Headers are defined in the options. Data layout:
* [
* ['x', 'y', 'z'],
* ['x', 'y', 'z']
@ -123,9 +123,9 @@ export default class BaseTableWidget extends BaseWidget {
* ['y', 'y1'],
* ['z', ['z1', 'z2']] <-- supports nested columns
* ]
*
*
* none: no headers, same data layout as 'top', without headers set as an option.
*
*
* rotation: limit table entries to a certain amount, and rotate them. Only applicable for headerPosition: top.
* headers: list of headers to display. Only applicable for headerPosition: top.
*/