Index: trunk/extensions/Contest/test/ContestValidationTests.php |
— | — | @@ -33,8 +33,8 @@ |
34 | 34 | 'https://gitorious.org/statusnet/mainline/merge_requests/2224' => true, |
35 | 35 | ); |
36 | 36 | |
37 | | - foreach ( $tests as $test => $isValdid ) { |
38 | | - if ( $isValdid ) { |
| 37 | + foreach ( $tests as $test => $isValid ) { |
| 38 | + if ( $isValid ) { |
39 | 39 | $this->assertEquals( true, SpecialMyContests::validateSubmissionField( $test ) ); |
40 | 40 | } |
41 | 41 | else { |
Index: trunk/extensions/Contest/Contest.settings.php |
— | — | @@ -21,9 +21,9 @@ |
22 | 22 | /** |
23 | 23 | * Returns the default values for the settings. |
24 | 24 | * setting name (string) => setting value (mixed) |
25 | | - * |
| 25 | + * |
26 | 26 | * @since 0.1 |
27 | | - * |
| 27 | + * |
28 | 28 | * @return array |
29 | 29 | */ |
30 | 30 | protected static function getDefaultSettings() { |
— | — | @@ -39,9 +39,9 @@ |
40 | 40 | * Retruns an array with all settings after making sure they are |
41 | 41 | * initialized (ie set settings have been merged with the defaults). |
42 | 42 | * setting name (string) => setting value (mixed) |
43 | | - * |
| 43 | + * |
44 | 44 | * @since 0.1 |
45 | | - * |
| 45 | + * |
46 | 46 | * @return array |
47 | 47 | */ |
48 | 48 | public static function getSettings() { |
— | — | @@ -59,21 +59,21 @@ |
60 | 60 | |
61 | 61 | /** |
62 | 62 | * Gets the value of the specified setting. |
63 | | - * |
| 63 | + * |
64 | 64 | * @since 0.1 |
65 | | - * |
| 65 | + * |
66 | 66 | * @param string $settingName |
67 | | - * |
| 67 | + * |
68 | 68 | * @throws MWException |
69 | 69 | * @return mixed |
70 | 70 | */ |
71 | 71 | public static function get( $settingName ) { |
72 | 72 | $settings = self::getSettings(); |
73 | | - |
| 73 | + |
74 | 74 | if ( !array_key_exists( $settingName, $settings ) ) { |
75 | 75 | throw new MWException( 'Attempt to get non-existing setting "' . $settingName . '"' ); |
76 | 76 | } |
77 | | - |
| 77 | + |
78 | 78 | return $settings[$settingName]; |
79 | 79 | } |
80 | 80 | |