* Parse command line options.
*/
function parse_options_cli($argv, $argc) {
- $options = array(
+ $options = [
'generate_enclosure' => FALSE,
'show_usernames' => TRUE,
'show_multimedia' => TRUE,
'verbose_output' => TRUE,
- );
+ ];
if ($argc < 2) {
return $options;
}
- $cli_options = getopt("em:u:v:h", array("help"));
+ $cli_options = getopt("em:u:v:h", ["help"]);
foreach ($cli_options as $opt => $val) {
switch ($opt) {
case 'e':
* Parse options passed from a query string.
*/
function parse_options_query_string() {
- $options = array(
+ $options = [
'generate_enclosure' => FALSE,
'show_usernames' => TRUE,
'show_multimedia' => TRUE,
'verbose_output' => TRUE,
- );
+ ];
if (isset($_GET['src_url'])) {
$options['src_url'] = $_GET['src_url'];