summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
commit72119ef864e1a5ffa377a504dc2ef430d7e6cd4a (patch)
tree24a4b9539cf4f4b8116bd38d3444001843cb8e45 /admin
parent72312119fe678d14b61e3c508db98a6dd0ee4ec0 (diff)
downloadcontact-72119ef864e1a5ffa377a504dc2ef430d7e6cd4a.tar.gz
contact-72119ef864e1a5ffa377a504dc2ef430d7e6cd4a.tar.bz2
contact-72119ef864e1a5ffa377a504dc2ef430d7e6cd4a.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/admin_contact_inc.php4
-rwxr-xr-xadmin/admin_contact_type.php3
-rwxr-xr-xadmin/admin_xref_types.php3
-rwxr-xr-xadmin/schema_inc.php20
4 files changed, 14 insertions, 16 deletions
diff --git a/admin/admin_contact_inc.php b/admin/admin_contact_inc.php
index 69a43b9..5ea1ae2 100755
--- a/admin/admin_contact_inc.php
+++ b/admin/admin_contact_inc.php
@@ -50,14 +50,14 @@ asort($contactTypeDefaults);
$gBitSmarty->assign('contactTypeDefaults', $contactTypeDefaults);
if (isset($_REQUEST["contactlistfeatures"])) {
-
+
foreach( $formContactListFeatures as $item => $data ) {
simple_set_toggle( $item, CONTACT_PKG_NAME );
}
foreach( $contactTypeDefaults as $key => $val ) {
simple_set_toggle_array( 'defaultTypes', $key, CONTACT_PKG_NAME);
- }
+ }
}
foreach( $contactTypeDefaults as $key => $val) {
diff --git a/admin/admin_contact_type.php b/admin/admin_contact_type.php
index 8176111..cb9fff0 100755
--- a/admin/admin_contact_type.php
+++ b/admin/admin_contact_type.php
@@ -2,7 +2,6 @@
// $Header$
require_once '../../kernel/includes/setup_inc.php';
-use Bitweaver\Contact\Contact;
use Bitweaver\Contact\ContactType;
use Bitweaver\KernelTools;
@@ -28,4 +27,4 @@ if( isset( $_REQUEST["fSubmitAddContactType"] ) ) {
$contacttype = ContactType::getContactTypeList();
$gBitSmarty->assign( 'contacttype', $contacttype );
-$gBitSystem->display( 'bitpackage:contact/admin_contact_type.tpl', KernelTools::tra( 'Edit Contact Types' ) , array( 'display_mode' => 'admin' ));
+$gBitSystem->display( 'bitpackage:contact/admin_contact_type.tpl', KernelTools::tra( 'Edit Contact Types' ) , [ 'display_mode' => 'admin' ]);
diff --git a/admin/admin_xref_types.php b/admin/admin_xref_types.php
index e53958b..3ffff55 100755
--- a/admin/admin_xref_types.php
+++ b/admin/admin_xref_types.php
@@ -2,7 +2,6 @@
// $Header$
require_once '../../kernel/includes/setup_inc.php';
-use Bitweaver\Contact\Contact;
use Bitweaver\Contact\ContactXrefType;
use Bitweaver\KernelTools;
include_once CONTACT_PKG_INCLUDE_PATH . 'lookup_contact_xref_type_inc.php';
@@ -29,4 +28,4 @@ if( isset( $_REQUEST["fSubmitAddXrefType"] ) ) {
$xref_types = ContactXrefType::getContactXrefTypeList();
$gBitSmarty->assign( 'xref_types', $xref_types );
-$gBitSystem->display( 'bitpackage:contact/admin_xref_types.tpl', KernelTools::tra( 'Edit XrefTypes' ) , array( 'display_mode' => 'admin' ));
+$gBitSystem->display( 'bitpackage:contact/admin_xref_types.tpl', KernelTools::tra( 'Edit XrefTypes' ) , [ 'display_mode' => 'admin' ]);
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index d0b3275..d305cbb 100755
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -70,11 +70,11 @@ foreach( array_keys( $tables ) AS $tableName ) {
$gBitInstaller->registerSchemaTable( CONTACT_PKG_NAME, $tableName, $tables[$tableName] );
}
-$gBitInstaller->registerPackageInfo( CONTACT_PKG_NAME, array(
+$gBitInstaller->registerPackageInfo( CONTACT_PKG_NAME, [
'description' => "Base Contact management package with contact xref and address books
designed to be expanded with additional plugins.",
'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
-) );
+] );
// ### Indexes
$indices = [
@@ -84,31 +84,31 @@ $indices = [
$gBitInstaller->registerSchemaIndexes( CONTACT_PKG_NAME, $indices );
// ### Sequences
-$sequences = array (
+$sequences = [
'contact_xref_seq' => [ 'start' => 1 ],
-);
+];
$gBitInstaller->registerSchemaSequences( CONTACT_PKG_NAME, $sequences );
// ### Defaults
// ### Default User Permissions
-$gBitInstaller->registerUserPermissions( CONTACT_PKG_NAME, array(
+$gBitInstaller->registerUserPermissions( CONTACT_PKG_NAME, [
[ 'p_contact_view', 'Can browse the Contact List', 'basic', CONTACT_PKG_NAME ],
[ 'p_contact_update', 'Can update the Contact List content', 'registered', CONTACT_PKG_NAME ],
[ 'p_contact_create', 'Can create a new Contact List entry', 'registered', CONTACT_PKG_NAME ],
[ 'p_contact_admin', 'Can admin Contact List', 'admin', CONTACT_PKG_NAME ],
- [ 'p_contact_expunge', 'Can remove a Contact entry', 'editors', CONTACT_PKG_NAME ]
-) );
+ [ 'p_contact_expunge', 'Can remove a Contact entry', 'editors', CONTACT_PKG_NAME ],
+] );
// ### Default Preferences
-$gBitInstaller->registerPreferences( CONTACT_PKG_NAME, array(
+$gBitInstaller->registerPreferences( CONTACT_PKG_NAME, [
[ CONTACT_PKG_NAME, 'contact_default_ordering', 'title_desc' ],
[ CONTACT_PKG_NAME, 'contact_list_created', 'y' ],
[ CONTACT_PKG_NAME, 'contact_list_lastmodif', 'y' ],
[ CONTACT_PKG_NAME, 'contact_list_notes', 'y' ],
[ CONTACT_PKG_NAME, 'contact_list_title', 'y' ],
[ CONTACT_PKG_NAME, 'contact_list_user', 'y' ],
-) );
+] );
$gBitInstaller->registerSchemaDefault( CONTACT_PKG_NAME, [
"INSERT INTO `" . BIT_DB_PREFIX . "contact_xref_type` VALUES ('0', 'type', 'Contact Type List', '3', '')",
@@ -153,6 +153,6 @@ $gBitInstaller->registerSchemaDefault( CONTACT_PKG_NAME, [
] );
// Requirements
-$gBitInstaller->registerRequirements( CONTACT_PKG_NAME, [
+$gBitInstaller->registerRequirements( CONTACT_PKG_NAME, [
'liberty' => [ 'min' => '5.0.0' ],
] ); \ No newline at end of file