Skip to content

Commit

Permalink
Removed redundant strtolower()
Browse files Browse the repository at this point in the history
Removed the redundant strtolower on line 43 in the private function get_file_name_from_class() which is only called from line 66 using a $class variable that is just strtolower()ed on line 65
  • Loading branch information
fhugas committed Jun 21, 2015
1 parent 80e8bd9 commit e0c81c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct() {
* @return string
*/
private function get_file_name_from_class( $class ) {
return 'class-' . str_replace( '_', '-', strtolower( $class ) ) . '.php';
return 'class-' . str_replace( '_', '-', $class ) . '.php';
}

/**
Expand Down

0 comments on commit e0c81c5

Please sign in to comment.