summaryrefslogtreecommitdiff
path: root/app/Module/YahrzeitModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-12-23 21:15:42 +0000
committerGreg Roach <fisharebest@gmail.com>2016-12-23 21:15:42 +0000
commit13abd6f3a37322f885d85df150e105d27ad81f8d (patch)
treef023015b458c95273afe5876246adf141de169ca /app/Module/YahrzeitModule.php
parent2c55bacfbfed3c49d3f2ac181fb519d24ffe2803 (diff)
downloadwebtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.gz
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.bz2
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.zip
Code style - short array syntax
Diffstat (limited to 'app/Module/YahrzeitModule.php')
-rw-r--r--app/Module/YahrzeitModule.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Module/YahrzeitModule.php b/app/Module/YahrzeitModule.php
index 7edad8b431..025b220b5b 100644
--- a/app/Module/YahrzeitModule.php
+++ b/app/Module/YahrzeitModule.php
@@ -51,7 +51,7 @@ class YahrzeitModule extends AbstractModule implements ModuleBlockInterface {
*
* @return string
*/
- public function getBlock($block_id, $template = true, $cfg = array()) {
+ public function getBlock($block_id, $template = true, $cfg = []) {
global $ctype, $controller, $WT_TREE;
$days = $this->getBlockSetting($block_id, 'days', '7');
@@ -59,7 +59,7 @@ class YahrzeitModule extends AbstractModule implements ModuleBlockInterface {
$calendar = $this->getBlockSetting($block_id, 'calendar', 'jewish');
$block = $this->getBlockSetting($block_id, 'block', '1');
- foreach (array('days', 'infoStyle', 'block') as $name) {
+ foreach (['days', 'infoStyle', 'block'] as $name) {
if (array_key_exists($name, $cfg)) {
$$name = $cfg[$name];
}
@@ -81,7 +81,7 @@ class YahrzeitModule extends AbstractModule implements ModuleBlockInterface {
// The standard anniversary rules cover most of the Yahrzeit rules, we just
// need to handle a few special cases.
// Fetch normal anniversaries...
- $yahrzeits = array();
+ $yahrzeits = [];
for ($jd = $startjd - 1; $jd <= $endjd + $days; ++$jd) {
foreach (FunctionsDb::getAnniversaryEvents($jd, 'DEAT _YART', $WT_TREE) as $fact) {
// Exact hebrew dates only
@@ -273,16 +273,16 @@ class YahrzeitModule extends AbstractModule implements ModuleBlockInterface {
echo '<tr><td class="descriptionbox wrap width33">';
echo I18N::translate('Presentation style');
echo '</td><td class="optionbox">';
- echo FunctionsEdit::selectEditControl('infoStyle', array('list' => I18N::translate('list'), 'table' => I18N::translate('table')), null, $infoStyle, '');
+ echo FunctionsEdit::selectEditControl('infoStyle', ['list' => I18N::translate('list'), 'table' => I18N::translate('table')], null, $infoStyle, '');
echo '</td></tr>';
echo '<tr><td class="descriptionbox wrap width33">';
echo I18N::translate('Calendar');
echo '</td><td class="optionbox">';
- echo FunctionsEdit::selectEditControl('calendar', array(
+ echo FunctionsEdit::selectEditControl('calendar', [
'jewish' => /* I18N: The Hebrew/Jewish calendar */ I18N::translate('Jewish'),
'gregorian' => /* I18N: The gregorian calendar */ I18N::translate('Gregorian'),
- ), null, $calendar, '');
+ ], null, $calendar, '');
echo '</td></tr>';
echo '<tr><td class="descriptionbox wrap width33">';