Commit d5cc71d9 authored by Martin's avatar Martin

OCD indent

parent 8817aff1
......@@ -14,7 +14,7 @@ function scrapShit($languageToScrap) {
$files = scandir("../2_wiktionaryDump/$languageToScrap/");
$finalInflectionArray = array();
$finalWordDefinitionArray = array();
foreach($files as $file) {
if ($file != "." && $file != "..") {
$word = substr($file, 0, -5 );
......@@ -66,7 +66,7 @@ function scrapShit($languageToScrap) {
$wordDefExplode2 = explode(" ", $finalWordDefinitionArray[$l], 2);
// if(removeAccents($wordDefExplode2[0]) == removeAccents($inflectionExplode[0])) {
if($wordDefExplode2[0] == $infParent) {
echo "Definition for $infParent will be copied to word $inflection; Which means it'll look like |$inflection $wordDefExplode2[1]|\n";
echo "Definition for $infParent will be copied to word $inflection; Which means it'll look like |$inflection $wordDefExplode2[1]|\n";
array_push($tempCatWordDefArray, $inflection." ".$wordDefExplode2[1]);
}
}
......@@ -256,7 +256,7 @@ function wordDefExists($word, $finalWordDefinitionArray) {
}
}
return false;
}
}
else {
$wordDefExplode = explode(" ", $finalWordDefinitionArray, 2);
if ($wordDefExplode[0] == $word){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment