r112590 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112589‎ | r112590 | r112591 >
Date:12:10, 28 February 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Whitespace cleanup
Modified paths:
  • /trunk/extensions/Translate/utils/TranslateMetadata.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslateMetadata.php
@@ -11,27 +11,28 @@
1212 */
1313
1414 class TranslateMetadata {
15 - /*
 15+ /**
1616 * Get a metadata value for the given group and key.
1717 * @param $group The group name
1818 * @param $key Metadata key
1919 * @return String
2020 */
21 - public static function get( $group , $key ) {
 21+ public static function get( $group, $key ) {
2222 $dbr = wfGetDB( DB_SLAVE );
23 - $conds = array( 'tmd_group' => $group , 'tmd_key' => $key );
 23+ $conds = array( 'tmd_group' => $group, 'tmd_key' => $key );
2424 $result = $dbr->selectField( 'translate_metadata', 'tmd_value', $conds, __METHOD__ );
2525 return $result;
2626 }
27 - /*
 27+
 28+ /**
2829 * Set a metadata value for the given group and metadata key. Updates the value if already existing.
2930 * @param $group The group name
3031 * @param $key Metadata key
3132 * @param $value Metadata value
3233 */
33 - public static function set( $group , $key, $value ) {
 34+ public static function set( $group, $key, $value ) {
3435 $dbw = wfGetDB( DB_MASTER );
35 - $data = array( 'tmd_group' => $group , 'tmd_key' => $key, 'tmd_value' => $value );
 36+ $data = array( 'tmd_group' => $group, 'tmd_key' => $key, 'tmd_value' => $value );
3637 $dbw->replace( 'translate_metadata', array( array( 'tmd_group', 'tmd_key' ) ), $data, __METHOD__ );
3738 }
3839

Status & tagging log