From 594c3b8659fc815ee1fafb4d09db5859fb8e2d3e Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sun, 16 Dec 2018 09:54:01 +0100 Subject: [PATCH] Shorthand arrays --- modules/radius/docs/radius.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/modules/radius/docs/radius.md b/modules/radius/docs/radius.md index ae5e70d3a..cca9e1ab9 100644 --- a/modules/radius/docs/radius.md +++ b/modules/radius/docs/radius.md @@ -14,7 +14,7 @@ To use this module, enable the radius module by creating a file named authentication source which uses the `radius:Radius` module to `config/authsources.php`: - 'example-radius' => array( + 'example-radius' => [ 'radius:Radius', /* @@ -24,12 +24,18 @@ authentication source which uses the `radius:Radius` module to * - port: the port of the radius server. Optional, defaults to 1812. * - secret: the radius secret to use with this server. Required. */ - 'servers' => array(array('hostname' => 'radius1.example.org', - 'port' => 1812, - 'secret' => 'topsecret'), - array('hostname' => 'radius2.example.org', - 'port' => 1812, - 'secret' => 'topsecret')), + 'servers' => [ + [ + 'hostname' => 'radius1.example.org', + 'port' => 1812, + 'secret' => 'topsecret' + ], + [ + 'hostname' => 'radius2.example.org', + 'port' => 1812, + 'secret' => 'topsecret' + ] + ], /* * The timeout for contacting the RADIUS server, in seconds. @@ -67,7 +73,7 @@ authentication source which uses the `radius:Radius` module to * Optional, defaults to NULL. */ 'username_attribute' => 'eduPersonPrincipalName', - ), + ], User attributes -- GitLab