dara-tobi / urbandict

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

DictTool.php - addDictionary() #6

Open unicodeveloper opened 9 years ago

unicodeveloper commented 9 years ago
 if ($this->find($dictStore, $slang) !== false) {
            return 'Slang already exists';
        } 

better written as


if( ! $this->find($dictStore, $slang) ) { 
     return 'Slang already exists' ;
} 

 return $this->populateDictionary($dictStore, $slang, $definition, $example);
unicodeveloper commented 9 years ago

5 params defined in the comments and only 4 set in the function.Please Fix!