diff --git a/templates/themes/overboards/theme.php b/templates/themes/overboards/theme.php
index 409062d6..9e68cb17 100644
--- a/templates/themes/overboards/theme.php
+++ b/templates/themes/overboards/theme.php
@@ -29,7 +29,7 @@
// Copy the generated board HTML to its place
file_write($overboard['uri'] . '/index.html', $overboards->build($overboard));
file_write($overboard['uri'] . '/overboard.js',
- Element('themes/overboards/overboard.js', array()));
+ Element('themes/overboards/overboard.js', []));
}
}
}
@@ -157,7 +157,7 @@
global $config;
$html = '';
- $overflow = array();
+ $overflow = [];
// Fetch threads from all boards and chomp the first 'n' posts, depending
// on the setting
@@ -166,7 +166,7 @@
// Top threads displayed on load
$top_threads = array_splice($threads, 0, $overboard['thread_limit']);
// Number of processed threads by board
- $counts = array();
+ $counts = [];
// Output threads up to the specified limit
foreach ($top_threads as $post) {
@@ -201,20 +201,19 @@
$html .= '';
$html .= '';
- return Element('index.html', array(
+ return Element('index.html', [
'config' => $config,
- 'board' => array(
+ 'board' => [
'dir' => $overboard['uri'] . "/",
'url' => $overboard['uri'],
'title' => $overboard['title'],
- 'subtitle' => str_replace('%s', $overboard['thread_limit'],
- strval(min($overboard['subtitle'], $total_count))),
- ),
+ 'subtitle' => str_replace('%s', $overboard['thread_limit'], strval(min($overboard['subtitle'], $total_count))),
+ ],
'no_post_form' => true,
'body' => $html,
'mod' => $mod,
'boardlist' => createBoardlist($mod),
- ));
+ ]);
}
};