Index: trunk/phase3/includes/api/ApiUserrights.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | public function execute() { |
41 | 41 | $params = $this->extractRequestParams(); |
42 | 42 | |
43 | | - //User already validated in call to getTokenSalt from Main |
| 43 | + // User already validated in call to getTokenSalt from Main |
44 | 44 | $form = new UserrightsPage; |
45 | 45 | $user = $form->fetchUser( $params['user'] ); |
46 | 46 | |
Index: trunk/phase3/includes/api/ApiDelete.php |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | |
81 | 81 | if ( count( $retval ) ) |
82 | 82 | $this->dieUsageMsg( reset( $retval ) ); // We don't care about multiple errors, just report one of them |
83 | | - |
| 83 | + |
84 | 84 | if ( $params['watch'] || $wgUser->getOption( 'watchdeletion' ) ) |
85 | 85 | $articleObj->doWatch(); |
86 | 86 | else if ( $params['unwatch'] ) |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | |
416 | 416 | $moduleParams = $module->extractRequestParams(); |
417 | 417 | |
418 | | - //Die if token required, but not provided (unless there is a gettoken parameter) |
| 418 | + // Die if token required, but not provided (unless there is a gettoken parameter) |
419 | 419 | $salt = $module->getTokenSalt(); |
420 | 420 | if ( $salt !== false ) |
421 | 421 | { |
Index: trunk/phase3/includes/api/ApiFeedWatchlist.php |
— | — | @@ -75,13 +75,17 @@ |
76 | 76 | 'wllimit' => ( 50 > $wgFeedLimit ) ? $wgFeedLimit : 50 |
77 | 77 | ); |
78 | 78 | |
79 | | - if ( !is_null( $params['wlowner'] ) ) |
| 79 | + if ( !is_null( $params['wlowner'] ) ) { |
80 | 80 | $fauxReqArr['wlowner'] = $params['wlowner']; |
81 | | - if ( !is_null( $params['wltoken'] ) ) |
| 81 | + } |
| 82 | + if ( !is_null( $params['wltoken'] ) ) { |
82 | 83 | $fauxReqArr['wltoken'] = $params['wltoken']; |
| 84 | + } |
83 | 85 | |
84 | 86 | // Check for 'allrev' parameter, and if found, show all revisions to each page on wl. |
85 | | - if ( ! is_null ( $params['allrev'] ) ) $fauxReqArr['wlallrev'] = ''; |
| 87 | + if ( !is_null ( $params['allrev'] ) ) { |
| 88 | + $fauxReqArr['wlallrev'] = ''; |
| 89 | + } |
86 | 90 | |
87 | 91 | // Create the request |
88 | 92 | $fauxReq = new FauxRequest ( $fauxReqArr ); |
— | — | @@ -93,7 +97,7 @@ |
94 | 98 | // Get data array |
95 | 99 | $data = $module->getResultData(); |
96 | 100 | |
97 | | - $feedItems = array (); |
| 101 | + $feedItems = array(); |
98 | 102 | foreach ( (array)$data['query']['watchlist'] as $info ) { |
99 | 103 | $feedItems[] = $this->createFeedItem( $info ); |
100 | 104 | } |