dara-tobi / urbandict

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

DictTool.php - getSlang() #4

Open unicodeveloper opened 8 years ago

unicodeveloper commented 8 years ago
        if ($searchResult === false) {
            $result =  'No definition found for that slang';
            return $result;
        } 

can be better written as if( ! $searchResult ) { return 'No definition found for that slang'; } else {....}`

unicodeveloper commented 8 years ago

You also defined 3 parameters in your comments, yet I see only two parameters set in the function