formatting fix
This commit is contained in:
parent
d877b8239e
commit
37198a6bb7
@ -49,7 +49,7 @@ class Doctrine_Tokenizer
|
|||||||
*/
|
*/
|
||||||
public static function bracketTrim($str, $e1 = '(', $e2 = ')')
|
public static function bracketTrim($str, $e1 = '(', $e2 = ')')
|
||||||
{
|
{
|
||||||
if (substr($str,0,1) == $e1 && substr($str,-1) == $e2) {
|
if (substr($str, 0, 1) === $e1 && substr($str, -1) === $e2) {
|
||||||
return substr($str, 1, -1);
|
return substr($str, 1, -1);
|
||||||
} else {
|
} else {
|
||||||
return $str;
|
return $str;
|
||||||
@ -81,8 +81,9 @@ class Doctrine_Tokenizer
|
|||||||
if(is_array($d)) {
|
if(is_array($d)) {
|
||||||
$a = preg_split('/('.implode('|', $d).')/', $str);
|
$a = preg_split('/('.implode('|', $d).')/', $str);
|
||||||
$d = stripslashes($d[0]);
|
$d = stripslashes($d[0]);
|
||||||
} else
|
} else {
|
||||||
$a = explode($d, $str);
|
$a = explode($d, $str);
|
||||||
|
}
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$term = array();
|
$term = array();
|
||||||
@ -127,8 +128,9 @@ class Doctrine_Tokenizer
|
|||||||
if (is_array($d)) {
|
if (is_array($d)) {
|
||||||
$a = preg_split('/('.implode('|', $d).')/', $str);
|
$a = preg_split('/('.implode('|', $d).')/', $str);
|
||||||
$d = stripslashes($d[0]);
|
$d = stripslashes($d[0]);
|
||||||
} else
|
} else {
|
||||||
$a = explode($d, $str);
|
$a = explode($d, $str);
|
||||||
|
}
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$term = array();
|
$term = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user