refactoring.

This commit is contained in:
Taylor Otwell
2012-01-26 13:35:29 -06:00
parent a36e2773e2
commit d3d3ffc168
2 changed files with 16 additions and 31 deletions

View File

@@ -250,7 +250,9 @@ class Str {
*/
public static function classify($value)
{
return str_replace(' ', '_', static::title(str_replace(array('_', '.'), ' ', $value)));
$search = array('_', '-', '.');
return str_replace(' ', '_', static::title(str_replace($search, ' ', $value)));
}
/**