]> git.mxchange.org Git - core.git/blobdiff - contrib/chash/lib/functions.php
Continued:
[core.git] / contrib / chash / lib / functions.php
index 666d4000dd2fc04f7992bed0f648263bc2e10299..fe05fd3820f9677c56bdcf9a66c0f16fb00724e5 100644 (file)
@@ -29,7 +29,7 @@ function multipleHashString ($str) {
        for ($idx = 0; $idx < ($GLOBALS['hash_cycles'] - 1); $idx++) {
                // Over-hash the given hash
                $hash = hashString($hash);
-       } // END - for
+       }
 
        // Return it
        return $hash;
@@ -55,7 +55,7 @@ function calculateSumFromHash ($hash) {
        for ($idx = 0; $idx < (strlen($decode) / 2); $idx++) {
                // And add it
                $sum = $sum + hexdec(substr($decode, $idx, 2));
-       } // END - for
+       }
 
        // And return it
        //* NOISY-DEBUG: */ printf('[%s:%d]: sum=%d - EXIT!' . PHP_EOL, __FUNCTION__, __LINE__, $sum);
@@ -207,5 +207,5 @@ function loadCheckpointFile () {
                $GLOBALS['current_hash']   = $data[9];
                $GLOBALS['root_hash']      = $data[10];
                $GLOBALS['found_hashes']   = json_decode(gzuncompress(base64_decode($data[11])), TRUE);
-       } // END - if
+       }
 }