@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | private static function mbSplit($pattern, $string, $limit = -1, $flags = 0) |
54 | 54 | { |
55 | - $strlen = strlen($string); // bytes! |
|
55 | + $strlen = strlen($string); // bytes! |
|
56 | 56 | mb_ereg_search_init($string); |
57 | 57 | |
58 | 58 | $lengths = array(); |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | // detect end quote - if the entire string is a quotation mark, or it's [quote, space, lowercase] |
334 | 334 | if (trim($statement) == '"' || trim($statement) == "'" || |
335 | 335 | ( |
336 | - ( substr($statement, 0, 1) == '"' || substr($statement, 0, 1) == "'" ) |
|
336 | + (substr($statement, 0, 1) == '"' || substr($statement, 0, 1) == "'") |
|
337 | 337 | and substr($statement, 1, 1) == " " |
338 | 338 | and ctype_lower(substr($statement, 2, 1)) == true |
339 | 339 | ) |
@@ -13,8 +13,8 @@ |
||
13 | 13 | * @param string $class |
14 | 14 | */ |
15 | 15 | function Sentence_autoloader($class) { |
16 | - if (!class_exists($class) && is_file(dirname(__FILE__). '/' . $class . '.php')) { |
|
17 | - require dirname(__FILE__). '/' . $class . '.php'; |
|
16 | + if (!class_exists($class) && is_file(dirname(__FILE__) . '/' . $class . '.php')) { |
|
17 | + require dirname(__FILE__) . '/' . $class . '.php'; |
|
18 | 18 | } |
19 | 19 | } |
20 | 20 |