Index: trunk/extensions/Contest/specials/SpecialMyContests.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | * |
31 | 31 | * @since 0.1 |
32 | 32 | * |
33 | | - * @param string $arg |
| 33 | + * @param string $subPage |
34 | 34 | */ |
35 | 35 | public function execute( $subPage ) { |
36 | 36 | $subPage = str_replace( '_', ' ', $subPage ); |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | /** |
57 | 57 | * On regular page view, ie no submission and no sub-page, |
58 | 58 | * display a list of all contests the user is participating in, |
59 | | - * or in case there is only one, redirect them to the submissiom |
| 59 | + * or in case there is only one, redirect them to the submission |
60 | 60 | * UI of it. |
61 | 61 | * |
62 | 62 | * @since 0.1 |
— | — | @@ -330,6 +330,8 @@ |
331 | 331 | * |
332 | 332 | * @since 0.1 |
333 | 333 | * |
| 334 | + * @param array $data |
| 335 | + * |
334 | 336 | * @return true|array |
335 | 337 | */ |
336 | 338 | public function handleSubmission( array $data ) { |
— | — | @@ -381,6 +383,8 @@ |
382 | 384 | * @since 0.1 |
383 | 385 | * |
384 | 386 | * @param ContestContestant $contest |
| 387 | + * |
| 388 | + * @return array |
385 | 389 | */ |
386 | 390 | protected function getFormFields( ContestContestant $contestant ) { |
387 | 391 | $fields = array(); |
— | — | @@ -546,7 +550,7 @@ |
547 | 551 | } |
548 | 552 | |
549 | 553 | /** |
550 | | - * HTMLForm field validation-callback for the submissiom field. |
| 554 | + * HTMLForm field validation-callback for the submission field. |
551 | 555 | * Warning: regexes used! o_O |
552 | 556 | * |
553 | 557 | * @since 0.1 |
Index: trunk/extensions/Contest/specials/SpecialContestWelcome.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | * |
29 | 29 | * @since 0.1 |
30 | 30 | * |
31 | | - * @param string $arg |
| 31 | + * @param string $subPage |
32 | 32 | */ |
33 | 33 | public function execute( $subPage ) { |
34 | 34 | $subPage = str_replace( '_', ' ', $subPage ); |
Index: trunk/extensions/Contest/specials/SpecialContestPage.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | * |
45 | 45 | * @since 0.1 |
46 | 46 | * |
47 | | - * @param string $arg |
| 47 | + * @param string $subPage |
48 | 48 | */ |
49 | 49 | public function execute( $subPage ) { |
50 | 50 | $this->subPage = $subPage; |
— | — | @@ -94,6 +94,7 @@ |
95 | 95 | * @since 0.1 |
96 | 96 | * |
97 | 97 | * @param string $message |
| 98 | + * @param string $subst |
98 | 99 | */ |
99 | 100 | protected function showSuccess( $message, $subst = '' ) { |
100 | 101 | $this->getOutput()->addHTML( |
Index: trunk/extensions/Contest/specials/SpecialContest.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | * |
29 | 29 | * @since 0.1 |
30 | 30 | * |
31 | | - * @param string $arg |
| 31 | + * @param string $subPage |
32 | 32 | */ |
33 | 33 | public function execute( $subPage ) { |
34 | 34 | $subPage = str_replace( '_', ' ', $subPage ); |
Index: trunk/extensions/Contest/specials/SpecialContests.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | * |
51 | 51 | * @since 0.1 |
52 | 52 | * |
53 | | - * @param string $arg |
| 53 | + * @param string $subPage |
54 | 54 | */ |
55 | 55 | public function execute( $subPage ) { |
56 | 56 | $subPage = str_replace( '_', ' ', $subPage ); |
Index: trunk/extensions/Contest/specials/SpecialContestSignup.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | * |
29 | 29 | * @since 0.1 |
30 | 30 | * |
31 | | - * @param string $arg |
| 31 | + * @param string $subPage |
32 | 32 | */ |
33 | 33 | public function execute( $subPage ) { |
34 | 34 | $subPage = str_replace( '_', ' ', $subPage ); |
— | — | @@ -59,6 +59,8 @@ |
60 | 60 | * |
61 | 61 | * @since 0.1 |
62 | 62 | * |
| 63 | + * @param array $data |
| 64 | + * |
63 | 65 | * @return true|array |
64 | 66 | */ |
65 | 67 | public function handleSubmission( array $data ) { |
— | — | @@ -176,7 +178,7 @@ |
177 | 179 | $form->setSubmitText( wfMsg( 'contest-signup-submit' ) ); |
178 | 180 | |
179 | 181 | if( $form->show() ) { |
180 | | - $this->showSucess( $contest ); |
| 182 | + $this->showSuccess( $contest ); |
181 | 183 | } |
182 | 184 | else { |
183 | 185 | $this->getOutput()->addModules( 'contest.special.signup' ); |
— | — | @@ -199,7 +201,7 @@ |
200 | 202 | * |
201 | 203 | * @param Contest $contest |
202 | 204 | */ |
203 | | - protected function showSucess( Contest $contest ) { |
| 205 | + protected function showSuccess( Contest $contest ) { |
204 | 206 | $url = SpecialPage::getTitleFor( 'MyContests', $contest->getField( 'name' ) )->getLocalURL( 'new' ); |
205 | 207 | $this->getOutput()->redirect( $url ); |
206 | 208 | } |
Index: trunk/extensions/Contest/specials/SpecialEditContest.php |
— | — | @@ -357,6 +357,7 @@ |
358 | 358 | * @since 0.1 |
359 | 359 | * |
360 | 360 | * @param integer|null $challengeId |
| 361 | + * @param boolean $isNewChallenge |
361 | 362 | * |
362 | 363 | * @return ContestChallenge |
363 | 364 | */ |
Index: trunk/extensions/Contest/includes/ContestDBObject.php |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | * |
150 | 150 | * @since 0.1 |
151 | 151 | * |
152 | | - * @param integere|null $id |
| 152 | + * @param integer|null $id |
153 | 153 | */ |
154 | 154 | public function setId( $id ) { |
155 | 155 | return $this->setField( 'id', $id ); |
Index: trunk/extensions/Contest/includes/ContestContestant.php |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | * |
181 | 181 | * @since 0.1 |
182 | 182 | * |
183 | | - * @param booolean $addEmptyItem |
| 183 | + * @param boolean $addEmptyItem |
184 | 184 | * |
185 | 185 | * @return array |
186 | 186 | */ |
— | — | @@ -466,7 +466,7 @@ |
467 | 467 | } |
468 | 468 | |
469 | 469 | /** |
470 | | - * Handles successfull user signup for a contest. |
| 470 | + * Handles successful user signup for a contest. |
471 | 471 | * |
472 | 472 | * @since 0.1 |
473 | 473 | */ |
— | — | @@ -537,7 +537,7 @@ |
538 | 538 | } |
539 | 539 | |
540 | 540 | /** |
541 | | - * Update the vote count and avarage vote fields. |
| 541 | + * Update the vote count and average vote fields. |
542 | 542 | * This does not write the changes to the database, |
543 | 543 | * if this is required, call writeToDB. |
544 | 544 | * |
Index: trunk/extensions/Contest/includes/Contest.class.php |
— | — | @@ -221,6 +221,8 @@ |
222 | 222 | * |
223 | 223 | * @since 0.1 |
224 | 224 | * |
| 225 | + * @param boolean $forceLoad |
| 226 | + * |
225 | 227 | * @return array of ContestChallenge |
226 | 228 | */ |
227 | 229 | public function getChallenges( $forceLoad = false ) { |
— | — | @@ -249,6 +251,8 @@ |
250 | 252 | * |
251 | 253 | * @since 0.1 |
252 | 254 | * |
| 255 | + * @param boolean $forceLoad |
| 256 | + * |
253 | 257 | * @return array of ContestContestant |
254 | 258 | */ |
255 | 259 | public function getContestants( $forceLoad = false ) { |