Passed
Push — master ( 6ac466...90f295 )
by Martijn
01:42
created
classes/autoloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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
 	
Please login to merge, or discard this patch.
classes/Sentence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 					)
Please login to merge, or discard this patch.