Mercurial > hg > fapweb
diff faptool.php @ 1120:b2bca5f6d0ff default tip
Cosmetic cleanup: remove trailing whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Dec 2020 13:47:13 +0200 |
parents | 0a2117349f46 |
children |
line wrap: on
line diff
--- a/faptool.php Mon Oct 14 10:54:32 2019 +0300 +++ b/faptool.php Sun Dec 13 13:47:13 2020 +0200 @@ -70,7 +70,7 @@ if ($outDim !== FALSE) { - // Get dimensions, setup background + // Get dimensions, setup background $dim = $img->getImageGeometry(); // $img->setBackgroundColor(imagick::COLOR_BLACK); $img->setGravity(imagick::GRAVITY_CENTER); @@ -172,7 +172,7 @@ $res = wtConvertSample($inFilename, $outFilename, array("-f" => "wav")); break; - + case EFILE_IMAGE: $res = wtConvertImage( $inFilename, @@ -341,7 +341,7 @@ // Single file $found = wtEntryToSource($compo, $filename, $edata, $filename, $pdata, $outFilename, $force); } - + if (!$found) { echo "WARNING: Could not generate preview from entry ".wtNiceName($compo, $entry, $efile)."\n"; @@ -369,7 +369,7 @@ if ($valid) return TRUE; } - + // // Either we now have a "user specified" source file or // a generated source file - in any case, now convert it @@ -890,11 +890,11 @@ wtPrintDivider(); } break; - + case "cra": echo "Not implemented. :D\n"; break; - + default: die("ERROR! Invalid entry sub-command '".stCArg(2)."'.\n"); break; @@ -944,7 +944,7 @@ { // Create new one wtMakeDir($setPrefix, 0755); - + // Create results.txt if it does not exist $resultsFile = stMakePath(FALSE, TRUE, array($setPrefix, "results.txt")); if (!file_exists($resultsFile)) @@ -964,7 +964,7 @@ $resultsText.stGetCompoResultsASCIIStr(FALSE, 0) ); } - + foreach (stExecSQL("SELECT * FROM compos WHERE cpath <> '' AND cpath IS NOT NULL") as $compo) foreach (stExecSQL("SELECT * FROM entries WHERE compo_id=".$compo["id"]) as $entry) { @@ -1045,7 +1045,7 @@ /* Dummy { - + } */ ?> \ No newline at end of file