Skip to content

Commit c0e7a24

Browse files
committed
Convert array() to [] in comments
1 parent 4d5fa9a commit c0e7a24

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

library/Icinga/Protocol/Ldap/LdapCapabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public static function discoverCapabilities(LdapConnection $connection)
321321
'supportedSaslMechanisms',
322322
'dnsHostName',
323323
'schemaNamingContext',
324-
'supportedLDAPVersion', // => array(3, 2)
324+
'supportedLDAPVersion', // => [3, 2]
325325
'supportedCapabilities',
326326
'supportedControl',
327327
'supportedExtension',

library/Icinga/Web/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ public function loadDefaultDecorators()
13501350
->addDecorator('FormErrors', ['onlyCustomFormErrors' => true])
13511351
->addDecorator('FormElements')
13521352
->addDecorator('FormHints')
1353-
//->addDecorator('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form'))
1353+
//->addDecorator('HtmlTag', ['tag' => 'dl', 'class' => 'zend_form'])
13541354
->addDecorator('Form');
13551355
}
13561356
}

library/Icinga/Web/Navigation/Navigation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@ public static function getItemTypeConfiguration()
452452
'label' => t('Menu Entry'),
453453
'config' => 'menu'
454454
]/*, // Disabled, until it is able to fully replace the old implementation
455-
'dashlet' => array(
455+
'dashlet' => [
456456
'label' => 'Dashlet',
457457
'config' => 'dashboard'
458-
)*/
458+
]*/
459459
];
460460

461461
$moduleItemTypes = [];

test/php/library/Icinga/Web/UrlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ public function testWhetherFromPathProperlyRecognizesAndDecodesQueryParameters()
210210
/*
211211
// Temporarily disabled, no [] support right now
212212
$this->assertEquals(
213-
array('1', '2', '3'),
213+
['1', '2', '3'],
214214
$url->getParam('param3'),
215215
'Url::fromPath does not properly reassemble query parameter values as sequenced values'
216216
);
217217
$this->assertEquals(
218-
array('key1' => 'val1', 'key2' => 'val2'),
218+
['key1' => 'val1', 'key2' => 'val2'],
219219
$url->getParam('param4'),
220220
'Url::fromPath does not properly reassemble query parameters as associative arrays'
221221
);

0 commit comments

Comments
 (0)