jenkins-bot has submitted this change and it was merged.
Change subject: Convert spaces to tabs in ViolationQuery.php
......................................................................
Convert spaces to tabs in ViolationQuery.php
Change-Id: Ice9783d55cf8c2607abb7425735f5a485798fa0a
---
M includes/Violations/ViolationQuery.php
1 file changed, 174 insertions(+), 176 deletions(-)
Approvals:
Thiemo Mättig (WMDE): Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/Violations/ViolationQuery.php
b/includes/Violations/ViolationQuery.php
index 6e30d8b..493c639 100755
--- a/includes/Violations/ViolationQuery.php
+++ b/includes/Violations/ViolationQuery.php
@@ -13,252 +13,250 @@
*/
class ViolationQuery {
- /**
- * @var EntityId
- */
- private $entityId;
+ /**
+ * @var EntityId
+ */
+ private $entityId;
- /**
- * @var PropertyId
- */
- private $propertyId;
+ /**
+ * @var PropertyId
+ */
+ private $propertyId;
- /**
- * @var string
- */
- private $claimGuid;
+ /**
+ * @var string
+ */
+ private $claimGuid;
- /**
- * @var string
- */
- private $constraintId;
+ /**
+ * @var string
+ */
+ private $constraintId;
- /**
- * @var string
- */
- private $constraintGroup;
+ /**
+ * @var string
+ */
+ private $constraintGroup;
- /**
- * @var string
- */
- private $constraintTypeEntityId;
+ /**
+ * @var string
+ */
+ private $constraintTypeEntityId;
- /**
- * @var string
- */
- private $updatedAt;
+ /**
+ * @var string
+ */
+ private $updatedAt;
- /**
- * @var int
- */
- private $revisionId;
+ /**
+ * @var int
+ */
+ private $revisionId;
- /**
- * @var array
- */
- private $statuses;
+ /**
+ * @var array
+ */
+ private $statuses;
- /**
- * @var string
- */
- private $statusesOperator;
+ /**
+ * @var string
+ */
+ private $statusesOperator;
+ /**
+ * @return EntityId
+ */
+ public function getEntityId() {
+ return $this->entityId;
+ }
- /**
- * @return EntityId
- */
- public function getEntityId() {
- return $this->entityId;
- }
+ /**
+ * @return PropertyId
+ */
+ public function getPropertyId() {
+ return $this->propertyId;
+ }
- /**
- * @return PropertyId
- */
- public function getPropertyId() {
- return $this->propertyId;
- }
+ /**
+ * @return string
+ */
+ public function getClaimGuid() {
+ return $this->claimGuid;
+ }
- /**
- * @return string
- */
- public function getClaimGuid() {
- return $this->claimGuid;
- }
+ /**
+ * @return string
+ */
+ public function getConstraintId() {
+ return $this->constraintId;
+ }
- /**
- * @return string
- */
- public function getConstraintId() {
- return $this->constraintId;
- }
+ /**
+ * @return string
+ */
+ public function getConstraintGroup() {
+ return $this->constraintGroup;
+ }
- /**
- * @return string
- */
- public function getConstraintGroup() {
- return $this->constraintGroup;
- }
+ /**
+ * @return string
+ */
+ public function getConstraintTypeEntityId() {
+ return $this->constraintTypeEntityId;
+ }
- /**
- * @return string
- */
- public function getConstraintTypeEntityId() {
- return $this->constraintTypeEntityId;
- }
+ /**
+ * @return string
+ */
+ public function getUpdatedAt() {
+ return $this->updatedAt;
+ }
- /**
- * @return string
- */
- public function getUpdatedAt() {
- return $this->updatedAt;
- }
+ /**
+ * @return int
+ */
+ public function getRevisionId() {
+ return $this->revisionId;
+ }
- /**
- * @return int
- */
- public function getRevisionId() {
- return $this->revisionId;
- }
+ /**
+ * @return array
+ */
+ public function getStatuses() {
+ return $this->statuses;
+ }
- /**
- * @return array
- */
- public function getStatuses() {
- return $this->statuses;
- }
-
-
- /**
- * @param EntityId $entityId
- */
- public function setEntityId( EntityId $entityId ) {
+ /**
+ * @param EntityId $entityId
+ */
+ public function setEntityId( EntityId $entityId ) {
$this->entityId = $entityId;
- }
+ }
- /**
- * @param PropertyId $propertyId
- */
- public function setPropertyId( PropertyId $propertyId ) {
- $this->propertyId = $propertyId;
- }
+ /**
+ * @param PropertyId $propertyId
+ */
+ public function setPropertyId( PropertyId $propertyId ) {
+ $this->propertyId = $propertyId;
+ }
- /**
- * @param string $claimGuid
+ /**
+ * @param string $claimGuid
*
* @throws InvalidArgumentException
- */
- public function setClaimGuid( $claimGuid ) {
- if ( !is_string( $claimGuid ) ) {
- throw new InvalidArgumentException( '$claimGuid must be string!' );
- }
+ */
+ public function setClaimGuid( $claimGuid ) {
+ if ( !is_string( $claimGuid ) ) {
+ throw new InvalidArgumentException( '$claimGuid must be
string!' );
+ }
- $this->claimGuid = $claimGuid;
- }
+ $this->claimGuid = $claimGuid;
+ }
- /**
- * @param string $constraintId
+ /**
+ * @param string $constraintId
*
* @throws InvalidArgumentException
- */
- public function setConstraintId( $constraintId ) {
- if ( !is_string( $constraintId ) ) {
- throw new InvalidArgumentException( '$constraintId must be
string!' );
- }
+ */
+ public function setConstraintId( $constraintId ) {
+ if ( !is_string( $constraintId ) ) {
+ throw new InvalidArgumentException( '$constraintId must
be string!' );
+ }
- $this->constraintId = $constraintId;
- }
+ $this->constraintId = $constraintId;
+ }
- /**
- * @param string $constraintGroup
+ /**
+ * @param string $constraintGroup
*
* @throws InvalidArgumentException
- */
- public function setConstraintGroup( $constraintGroup ) {
- if ( !is_string( $constraintGroup ) ) {
- throw new InvalidArgumentException( '$constraintGroup must be
string!' );
- }
+ */
+ public function setConstraintGroup( $constraintGroup ) {
+ if ( !is_string( $constraintGroup ) ) {
+ throw new InvalidArgumentException( '$constraintGroup
must be string!' );
+ }
- $this->constraintGroup = $constraintGroup;
- }
+ $this->constraintGroup = $constraintGroup;
+ }
/**
* @param string $constraintTypeEntityId
*
* @throws InvalidArgumentException
*/
- public function setConstraintTypeEntityId( $constraintTypeEntityId ) {
- if ( !is_string( $constraintTypeEntityId ) ) {
- throw new InvalidArgumentException( '$constraintTypeEntityId must
be string!' );
- }
+ public function setConstraintTypeEntityId( $constraintTypeEntityId ) {
+ if ( !is_string( $constraintTypeEntityId ) ) {
+ throw new InvalidArgumentException(
'$constraintTypeEntityId must be string!' );
+ }
- $this->constraintTypeEntityId = $constraintTypeEntityId;
- }
+ $this->constraintTypeEntityId = $constraintTypeEntityId;
+ }
/**
* @param string $updatedAt
*
* @throws InvalidArgumentException
*/
- public function setUpdatedAt( $updatedAt ) {
+ public function setUpdatedAt( $updatedAt ) {
if ( !is_string( $updatedAt ) ) {
throw new InvalidArgumentException( '$updatedAt must be
string!' );
}
$timestamp = wfTimestamp( TS_MW, $updatedAt );
- if( !$timestamp ) {
+ if ( !$timestamp ) {
throw new InvalidArgumentException( '$updatedAt has
invalid timestamp format!' );
}
- $this->updatedAt = $timestamp;
- }
+ $this->updatedAt = $timestamp;
+ }
/**
* @param int $revisionId
*
* @throws InvalidArgumentException
*/
- public function setRevisionId( $revisionId ) {
- if ( !is_int( $revisionId ) ) {
- throw new InvalidArgumentException( '$revisionId must be int!' );
- }
+ public function setRevisionId( $revisionId ) {
+ if ( !is_int( $revisionId ) ) {
+ throw new InvalidArgumentException( '$revisionId must
be int!' );
+ }
- $this->revisionId = $revisionId;
- }
+ $this->revisionId = $revisionId;
+ }
- /**
- * @param string $status
- */
- public function setStatus( $status ) {
- $this->assertIsValidStatus( $status );
+ /**
+ * @param string $status
+ */
+ public function setStatus( $status ) {
+ $this->assertIsValidStatus( $status );
- $this->setStatuses( array( $status ) );
- }
+ $this->setStatuses( array( $status ) );
+ }
- /**
- * @param $statuses
- */
- public function setStatuses( $statuses ) {
- foreach ( $statuses as $status ) {
- $this->assertIsValidStatus( $status );
- }
+ /**
+ * @param $statuses
+ */
+ public function setStatuses( $statuses ) {
+ foreach ( $statuses as $status ) {
+ $this->assertIsValidStatus( $status );
+ }
- $this->statuses = $statuses;
- }
+ $this->statuses = $statuses;
+ }
/**
* @param string $status
*
* @throws InvalidArgumentException
*/
- private function assertIsValidStatus( $status ) {
- $validStatuses = array(
- Violation::STATUS_VIOLATION,
- Violation::STATUS_UNVERIFIED,
- Violation::STATUS_EXCEPTION
- );
- if ( !in_array( $status, $validStatuses ) ) {
- throw new InvalidArgumentException( '$status must be a valid
status.' );
- }
- }
+ private function assertIsValidStatus( $status ) {
+ $validStatuses = array(
+ Violation::STATUS_VIOLATION,
+ Violation::STATUS_UNVERIFIED,
+ Violation::STATUS_EXCEPTION
+ );
+ if ( !in_array( $status, $validStatuses ) ) {
+ throw new InvalidArgumentException( '$status must be a
valid status.' );
+ }
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/224634
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ice9783d55cf8c2607abb7425735f5a485798fa0a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQuality
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits