<?php
-$GLOBALS['options'] = array(
+$GLOBALS['options'] = [
'analyze_input' => FALSE,
'reduce_noise' => FALSE,
'ignore_noise' => FALSE,
'keep_noise' => FALSE,
'buffer_size' => 8,
-);
+];
if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'a') {
$GLOBALS['options']['analyze_input'] = TRUE;
}
function analyzeForNoiseOnly ($data) {
- $GLOBALS['analysis']['breakdown'] = array();
+ $GLOBALS['analysis']['breakdown'] = [];
$GLOBALS['analysis']['average'] = 0;
for ($i = 0; $i < strlen($data); $i++) {