Message info
 
To:glotpress-updates@lists.automattic.com From:glotpress-updates@lists.automattic.com Subject:[glotpress-updates] [GlotPress][694] trunk/gp-includes/warnings.php: Remove trailing whitespace Date:Tue, 5 Jun 2012 11:14:05 +0000 (UTC)
 

Revision
694
Author
nbachiyski
Date
2012-06-05 11:14:05 +0000 (Tue, 05 Jun 2012)

Log Message

Remove trailing whitespace

Modified Paths

Diff

Modified: trunk/gp-includes/warnings.php (693 => 694)


--- trunk/gp-includes/warnings.php	2012-06-05 11:12:44 UTC (rev 693)
+++ trunk/gp-includes/warnings.php	2012-06-05 11:14:05 UTC (rev 694)
@@ -9,15 +9,15 @@
 	function add( $id, $callback ) {
 		$this->callbacks[$id] = $callback;
 	}
-	
+
 	function remove( $id ) {
 		unset( $this->callbacks[$id] );
 	}
-	
+
 	function has( $id ) {
 		return isset( $this->callbacks[$id] );
 	}
-	
+
 	function check( $singular, $plural, $translations, $locale ) {
 		$problems = array();
 		foreach( $translations as $translation_index => $translation ) {
@@ -55,11 +55,11 @@
 }
 
 class GP_Builtin_Translation_Warnings {
-	
+
 	var $length_lower_bound = 0.2;
 	var $length_upper_bound = 5.0;
 	var $length_exclude_languages = array('ja', 'zh', 'zh-hk', 'zh-cn', 'zh-sg', 'zh-tw');
-	
+
 	function warning_length( $original, $translation, $locale ) {
 		if ( in_array( $locale->slug, $this->length_exclude_languages ) ) {
 			return true;
@@ -75,7 +75,7 @@
 		}
 		return true;
 	}
-	
+
 	function warning_tags( $original, $translation, $locale ) {
 		$tag_pattern = "(<[^>]*>)";
 		$tag_re = "/$tag_pattern/Us";
@@ -92,7 +92,7 @@
 			$expected_error_msg = "Expected $original_tag, got $translation_tag.";
 			$original_is_tag = preg_match( "/^$tag_pattern$/", $original_tag );
 			$translation_is_tag = preg_match( "/^$tag_pattern$/", $translation_tag );
-			// translations should never need a quote in their title attribute 
+			// translations should never need a quote in their title attribute
 			if ( $original_is_tag && $translation_is_tag && $original_tag != $translation_tag ) {
 				// we allow translations to have a different title tag
 				$title_re_single = '\s*title=\'[^\']+\'\s*';
@@ -106,7 +106,7 @@
 		}
 		return true;
 	}
-	
+
 	function warning_placeholders( $original, $translation, $locale ) {
 		$placeholders_re = apply_filters( 'warning_placeholders_re', '%[a-z]*|%[A-Z]+|%\d+\$(?:s|d)' );
 
@@ -125,7 +125,7 @@
 		}
 		return true;
 	}
-	
+
 	function _placeholders_counts( $string, $re ) {
 		$counts = array();
 		preg_match_all( "/$re/", $string, $matches );
@@ -134,7 +134,7 @@
 		}
 		return $counts;
 	}
-	
+
 	function warning_both_begin_end_on_newlines( $original, $translation, $locale ) {
 		if ( gp_endswith( $original, "\n" ) xor gp_endswith( $translation, "\n" ) ) {
 			return __('Original and translation should both end on newline.');
@@ -144,7 +144,7 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * Adds all methods starting with warning_ to $translation_warnings
 	 */
@@ -154,4 +154,4 @@
 			$translation_warnings->add( str_replace( 'warning_', '', $warning ), array( &$this, $warning ) );
 		}
 	}
-}
\ No newline at end of file
+}