diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
| commit | c105a9834fd9c5a320d41422c50fa84e5bc12084 (patch) | |
| tree | 48d0d400d6e0a4fd87485e89accfdeaf8db5c24b /liberty_plugins | |
| parent | 1778d95793e4bc5d494ece84ec177b5629c830f3 (diff) | |
| download | wiki-c105a9834fd9c5a320d41422c50fa84e5bc12084.tar.gz wiki-c105a9834fd9c5a320d41422c50fa84e5bc12084.tar.bz2 wiki-c105a9834fd9c5a320d41422c50fa84e5bc12084.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'liberty_plugins')
| -rwxr-xr-x | liberty_plugins/data.wikigraph.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/liberty_plugins/data.wikigraph.php b/liberty_plugins/data.wikigraph.php index 2aae36d..0a08945 100755 --- a/liberty_plugins/data.wikigraph.php +++ b/liberty_plugins/data.wikigraph.php @@ -26,7 +26,7 @@ $pluginParams = [ 'description' => KernelTools::tra( "Inserts a graph for visual navigation. The graph shows the page and every page that can be reached from that page. It requies the Image_GraphViz pear plugin and graphviz to be installed: <strong>pear install Image_GraphViz</strong>" ), 'help_function' => 'data_wikigraph_help', 'syntax' => "{wikigraph level= title= }".KernelTools::tra( "Wiki page name" )."{/wikigraph}", - 'plugin_type' => DATA_PLUGIN + 'plugin_type' => DATA_PLUGIN, ]; $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAWIKIGRAPH, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAWIKIGRAPH ); @@ -93,14 +93,14 @@ function data_wikigraph( $pData, $pParams ) { } if( !empty( $pData ) ) { - $params = array( + $params = [ 'graph' => $gBitThemes->getGraphvizGraphAttributes( $pParams ), 'node' => $gBitThemes->getGraphvizNodeAttributes( $pParams ), 'edge' => $gBitThemes->getGraphvizEdgeAttributes( $pParams ), - ); + ]; $mapname = md5( microtime() ); - $mapdata = $gContent->linkStructureMap( $pData, isset( $pParams['level'] ) ? $pParams['level'] : 0, $params ); + $mapdata = $gContent->linkStructureMap( $pData, $pParams['level'] ?? 0, $params ); $ret = " <div style='text-align:center'> |
