Ran PHPCBF over PHP files.
This commit is contained in:
parent
42eb9fdd5e
commit
d1f9982dc3
|
@ -83,6 +83,7 @@ function lang_getfrombrowser(array $allowed_languages, string $default_language,
|
||||||
|
|
||||||
// die gefundene Sprache zurückgeben
|
// die gefundene Sprache zurückgeben
|
||||||
return $current_lang;
|
return $current_lang;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -94,6 +95,7 @@ function lang_getfrombrowser(array $allowed_languages, string $default_language,
|
||||||
*/
|
*/
|
||||||
function ensureDir(string $filepath) {
|
function ensureDir(string $filepath) {
|
||||||
if (!is_dir($filepath)) mkdir($filepath);
|
if (!is_dir($filepath)) mkdir($filepath);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -182,6 +184,7 @@ function transform(string $transform):string {
|
||||||
|
|
||||||
$transform = html_entity_decode($transform, ENT_QUOTES, "utf-8" );
|
$transform = html_entity_decode($transform, ENT_QUOTES, "utf-8" );
|
||||||
return $transform;
|
return $transform;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -193,6 +196,7 @@ function transform(string $transform):string {
|
||||||
*/
|
*/
|
||||||
function scanDirConts(string $folder) {
|
function scanDirConts(string $folder) {
|
||||||
return array_values(array_diff(scandir($folder), [".", "..", ".git"]));
|
return array_values(array_diff(scandir($folder), [".", "..", ".git"]));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generating PDFs
|
// Generating PDFs
|
||||||
|
@ -210,6 +214,7 @@ function copyFolder(string $from, string $to) {
|
||||||
foreach (array_diff(scandir("$from"), [".", ".."]) as $file) {
|
foreach (array_diff(scandir("$from"), [".", ".."]) as $file) {
|
||||||
copy("$from/$file", "$to/$file");
|
copy("$from/$file", "$to/$file");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -225,6 +230,7 @@ function removeFolder(string $folder) {
|
||||||
else unlink("$folder/$file");
|
else unlink("$folder/$file");
|
||||||
}
|
}
|
||||||
rmdir($folder);
|
rmdir($folder);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -244,6 +250,7 @@ function removeFolderGently(string $folder, string $exclude) {
|
||||||
}
|
}
|
||||||
if (count(array_diff(scandir("$folder"), [".", ".."])) == 0) rmdir($folder);
|
if (count(array_diff(scandir("$folder"), [".", ".."])) == 0) rmdir($folder);
|
||||||
return $output;
|
return $output;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -387,8 +394,6 @@ function printHTMLPage(string $title, string $contents, string $lang = "en", arr
|
||||||
|
|
||||||
</html>';
|
</html>';
|
||||||
|
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
|
@ -132,6 +132,7 @@ function divToTeX($node):string {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -220,4 +221,3 @@ $content
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
@ -62,4 +62,3 @@ $content = str_replace("\\today", date("Y-m-d", filemtime(__DIR__ . "/$sourceFol
|
||||||
|
|
||||||
echo printHTMLPage("about:" . $title, $content, $lang, $availableLangs, "", $sourceFile);
|
echo printHTMLPage("about:" . $title, $content, $lang, $availableLangs, "", $sourceFile);
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
Reference in New Issue
Block a user