r77314 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77313‎ | r77314 | r77315 >
Date:23:56, 25 November 2010
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Remove unused parameter from getSpecializedWhereClause

Rename $signoffFlags to $addSignoffs
Modified paths:
  • /trunk/extensions/CodeReview/ui/CodeRevisionAuthorView.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRevisionCommitter.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRevisionListView.php (modified) (history)
  • /trunk/extensions/CodeReview/ui/CodeRevisionStatusView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/ui/CodeRevisionAuthorView.php
@@ -45,10 +45,9 @@
4646 parent::execute();
4747 }
4848
49 - function getSpecializedWhereClause( $dbr ) {
 49+ function getSpecializedWhereClause() {
5050 return array( 'cr_author' => $this->mAuthor );
5151 }
52 -
5352 }
5453
5554 class SvnRevAuthorTablePager extends SvnRevTablePager {
Index: trunk/extensions/CodeReview/ui/CodeRevisionCommitter.php
@@ -50,14 +50,14 @@
5151 * @param string $status Status to set the revision to
5252 * @param Array $addTags Tags to add to the revision
5353 * @param Array $removeTags Tags to remove from the Revision
54 - * @param Array $signoffFlags Array of sign-off flags to add
 54+ * @param Array $addSignoffs Array of sign-off flags to add
5555 * @param Array $strikeSignoffs Array of sign-off IDs to strike
5656 * @param string $commentText Comment to add to the revision
5757 * @param null|int $parent What the parent comment is (if a subcomment)
5858 * @param int $review (unused)
5959 * @return int Comment ID if added, else 0
6060 */
61 - public function revisionUpdate( $status, $addTags, $removeTags, $signoffFlags, $strikeSignoffs,
 61+ public function revisionUpdate( $status, $addTags, $removeTags, $addSignoffs, $strikeSignoffs,
6262 $commentText, $parent = null, $review = 0 ) {
6363 if ( !$this->mRev ) {
6464 return false;
@@ -85,8 +85,8 @@
8686 $this->mRev->changeTags( $validAddTags, $validRemoveTags, $wgUser );
8787 }
8888 // Add any signoffs
89 - if ( count( $signoffFlags ) && $this->validPost( 'codereview-signoff' ) ) {
90 - $this->mRev->addSignoff( $wgUser, $signoffFlags );
 89+ if ( count( $addSignoffs ) && $this->validPost( 'codereview-signoff' ) ) {
 90+ $this->mRev->addSignoff( $wgUser, $addSignoffs );
9191 }
9292 // Strike any signoffs
9393 if ( count( $strikeSignoffs ) && $this->validPost( 'codereview-signoff' ) ) {
Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php
@@ -212,10 +212,7 @@
213213 }
214214 }
215215
216 - /**
217 - * @todo Document
218 - */
219 - function getSpecializedWhereClause( $dbr ) {
 216+ function getSpecializedWhereClause() {
220217 return array();
221218 }
222219
Index: trunk/extensions/CodeReview/ui/CodeRevisionStatusView.php
@@ -11,7 +11,7 @@
1212 return new SvnRevStatusTablePager( $this, $this->mStatus );
1313 }
1414
15 - function getSpecializedWhereClause( $dbr ) {
 15+ function getSpecializedWhereClause() {
1616 return array( 'cr_status' => $this->mStatus );
1717 }
1818 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r77324Fix indenting from r76849, restore fixme removed in r77314...reedy12:05, 26 November 2010

Comments

#Comment by Nikerabbit (talk | contribs)   07:50, 26 November 2010

Why did you remove @todo Document?

Status & tagging log