dara-tobi / urbandict

Dictionary of common modern slangs
MIT License
1 stars 1 forks source link

DictTool.php - populateDictionary() #5

Open unicodeveloper opened 8 years ago

unicodeveloper commented 8 years ago
            $dictionary = $dictStore->dictData;
            $newSlang['slang'] = $slang;
            $newSlang['description'] = $definition;
            $newSlang['sample-sentence'] = $example;
            array_push($dictionary, $newSlang);
            return $dictionary;

should be abstracted into another function and then called into populateDictionary()

unicodeveloper commented 8 years ago

The comments indicate 5 parameters yet i see only 4 parameters set in the function