@@ -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 | |
@@ -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(); |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | // detect end quote - if the entire string is a quotation mark, or it's [quote, space, lowercase] |
| 332 | 332 | if (trim($statement) == '"' || trim($statement) == "'" || |
| 333 | 333 | ( |
| 334 | - ( substr($statement, 0, 1) === '"' || substr($statement, 0, 1) === "'" ) |
|
| 334 | + (substr($statement, 0, 1) === '"' || substr($statement, 0, 1) === "'") |
|
| 335 | 335 | and substr($statement, 1, 1) === ' ' |
| 336 | 336 | and ctype_lower(substr($statement, 2, 1)) === true |
| 337 | 337 | ) |