1
0
Fork 0
mirror of synced 2025-04-02 12:56:16 +03:00
This commit is contained in:
zYne 2007-07-27 15:35:37 +00:00
parent f0275da674
commit 97e82445d7

View file

@ -47,10 +47,10 @@ class Doctrine_Tokenizer
* @param string $e1 the first bracket, usually '('
* @param string $e2 the second bracket, usually ')'
*/
public static function bracketTrim($str,$e1 = '(',$e2 = ')')
public static function bracketTrim($str, $e1 = '(', $e2 = ')')
{
if(substr($str,0,1) == $e1 && substr($str,-1) == $e2) {
return substr($str,1,-1);
if (substr($str,0,1) == $e1 && substr($str,-1) == $e2) {
return substr($str, 1, -1);
} else {
return $str;
}