Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 746db98

Browse files
BaranekDvyskocilpavel
authored andcommitted
Using of short array syntax (#13)
1 parent 4bf5259 commit 746db98

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
[Changed]
6+
- Using of short array syntax (from array() to [])
57

68
## [v3.0.0]
79
[Added]

config-templates/module_statisticsproxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @author Pavel Vyskočil <[email protected]>
77
*/
88

9-
$config = array(
9+
$config = [
1010

1111
/*
1212
* Fill the serverName
@@ -81,4 +81,4 @@
8181
*/
8282
'ssl_ca_path' => '/etc/ssl',
8383

84-
);
84+
];

templates/idpDetail-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const CONFIG_FILE_NAME = 'config.php';
1111
const INSTANCE_NAME = 'instance_name';
1212

13-
$this->data['jquery'] = array('core' => true, 'ui' => true, 'css' => true);
13+
$this->data['jquery'] = ['core' => true, 'ui' => true, 'css' => true];
1414
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' .
1515
Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
1616
$this->data['head'] .= '';

templates/spDetail-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
const INSTANCE_NAME = 'instance_name';
1414

1515

16-
$this->data['jquery'] = array('core' => true, 'ui' => true, 'css' => true);
16+
$this->data['jquery'] = ['core' => true, 'ui' => true, 'css' => true];
1717
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' .
1818
Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
1919
$this->data['head'] .= '';

templates/statistics-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Logger::warning('Missing configuration: config.php - instance_name is not set.');
2323
}
2424

25-
$this->data['jquery'] = array('core' => true, 'ui' => true, 'css' => true);
25+
$this->data['jquery'] = ['core' => true, 'ui' => true, 'css' => true];
2626
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' .
2727
Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
2828
$this->data['head'] .= '';

0 commit comments

Comments
 (0)