]> git.mxchange.org Git - core.git/blobdiff - contrib/audio.php
Continued:
[core.git] / contrib / audio.php
index 3bf11ac58b111779e7ca4787bfabcea7889a4feb..40508f1451aa5da319705d67006ab7277374f097 100644 (file)
@@ -1,11 +1,11 @@
 <?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;
@@ -24,7 +24,7 @@ if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'i') {
 }
 
 function analyzeForNoiseOnly ($data) {
-       $GLOBALS['analysis']['breakdown'] = array();
+       $GLOBALS['analysis']['breakdown'] = [];
        $GLOBALS['analysis']['average']   = 0;
 
        for ($i = 0; $i < strlen($data); $i++) {