https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112590
Revision: 112590 Author: nikerabbit Date: 2012-02-28 12:10:17 +0000 (Tue, 28 Feb 2012) Log Message: ----------- Whitespace cleanup Modified Paths: -------------- trunk/extensions/Translate/utils/TranslateMetadata.php Modified: trunk/extensions/Translate/utils/TranslateMetadata.php =================================================================== --- trunk/extensions/Translate/utils/TranslateMetadata.php 2012-02-28 11:56:59 UTC (rev 112589) +++ trunk/extensions/Translate/utils/TranslateMetadata.php 2012-02-28 12:10:17 UTC (rev 112590) @@ -11,27 +11,28 @@ */ class TranslateMetadata { - /* + /** * Get a metadata value for the given group and key. * @param $group The group name * @param $key Metadata key * @return String */ - public static function get( $group , $key ) { + public static function get( $group, $key ) { $dbr = wfGetDB( DB_SLAVE ); - $conds = array( 'tmd_group' => $group , 'tmd_key' => $key ); + $conds = array( 'tmd_group' => $group, 'tmd_key' => $key ); $result = $dbr->selectField( 'translate_metadata', 'tmd_value', $conds, __METHOD__ ); return $result; } - /* + + /** * Set a metadata value for the given group and metadata key. Updates the value if already existing. * @param $group The group name * @param $key Metadata key * @param $value Metadata value */ - public static function set( $group , $key, $value ) { + public static function set( $group, $key, $value ) { $dbw = wfGetDB( DB_MASTER ); - $data = array( 'tmd_group' => $group , 'tmd_key' => $key, 'tmd_value' => $value ); + $data = array( 'tmd_group' => $group, 'tmd_key' => $key, 'tmd_value' => $value ); $dbw->replace( 'translate_metadata', array( array( 'tmd_group', 'tmd_key' ) ), $data, __METHOD__ ); } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs