Lucas Werkmeister (WMDE) has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/385159 )
Change subject: Add missing @license tags and other phpdoc cleanup ...................................................................... Add missing @license tags and other phpdoc cleanup I looked through all the top-level comments with git ls -z '*.php' | xargs -0 sed -n '/^\/\*\*$/,/^ \*\/$/ p' | less and checked which ones didn’t have a @license set. Change-Id: Ic61e30c3918c3302510799a26c9be3ed680c66a1 --- M includes/Constraint.php M includes/ConstraintCheck/Context/AbstractContext.php M includes/ConstraintCheck/Context/ApiV2Context.php M includes/ConstraintCheck/Context/Context.php M includes/ConstraintCheck/Context/MainSnakContext.php M includes/ConstraintCheck/Context/QualifierContext.php M includes/ConstraintCheck/Context/ReferenceContext.php M includes/ConstraintCheck/Context/StatementContext.php M includes/ConstraintParameterRenderer.php M maintenance/ImportConstraintStatements.php 10 files changed, 18 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints refs/changes/59/385159/1 diff --git a/includes/Constraint.php b/includes/Constraint.php index 31794bb..64359be 100644 --- a/includes/Constraint.php +++ b/includes/Constraint.php @@ -5,8 +5,9 @@ use Wikibase\DataModel\Entity\PropertyId; /** - * * Contains all data belonging to a certain constraint. + * + * @license GNU GPL v2+ */ class Constraint { diff --git a/includes/ConstraintCheck/Context/AbstractContext.php b/includes/ConstraintCheck/Context/AbstractContext.php index 21b2224..b37b3eb 100644 --- a/includes/ConstraintCheck/Context/AbstractContext.php +++ b/includes/ConstraintCheck/Context/AbstractContext.php @@ -8,6 +8,8 @@ /** * Base implementation of some Context functions, * given a snak and an entity. + * + * @license GNU GPL v2+ */ abstract class AbstractContext implements Context { diff --git a/includes/ConstraintCheck/Context/ApiV2Context.php b/includes/ConstraintCheck/Context/ApiV2Context.php index 4bbc9fb..32e7326 100644 --- a/includes/ConstraintCheck/Context/ApiV2Context.php +++ b/includes/ConstraintCheck/Context/ApiV2Context.php @@ -15,6 +15,8 @@ * 'qualifiers' keyed by property ID holding a list of snaks, * and a list of 'references' each having a 'hash' and 'snaks' * which are keyed by property ID and then hold a list of snaks. + * + * @license GNU GPL v2+ */ abstract class ApiV2Context extends AbstractContext { diff --git a/includes/ConstraintCheck/Context/Context.php b/includes/ConstraintCheck/Context/Context.php index 4f0552f..4bf07c4 100644 --- a/includes/ConstraintCheck/Context/Context.php +++ b/includes/ConstraintCheck/Context/Context.php @@ -8,6 +8,8 @@ /** * A context in which a constraint check can run. + * + * @license GNU GPL v2+ */ interface Context { diff --git a/includes/ConstraintCheck/Context/MainSnakContext.php b/includes/ConstraintCheck/Context/MainSnakContext.php index 6f83a1b..2970753 100644 --- a/includes/ConstraintCheck/Context/MainSnakContext.php +++ b/includes/ConstraintCheck/Context/MainSnakContext.php @@ -7,6 +7,8 @@ /** * A constraint check context for the main snak of a statement. + * + * @license GNU GPL v2+ */ class MainSnakContext extends ApiV2Context { diff --git a/includes/ConstraintCheck/Context/QualifierContext.php b/includes/ConstraintCheck/Context/QualifierContext.php index 079b113..3f8fc0b 100644 --- a/includes/ConstraintCheck/Context/QualifierContext.php +++ b/includes/ConstraintCheck/Context/QualifierContext.php @@ -8,6 +8,8 @@ /** * A constraint check context for a qualifier of a statement. + * + * @license GNU GPL v2+ */ class QualifierContext extends ApiV2Context { diff --git a/includes/ConstraintCheck/Context/ReferenceContext.php b/includes/ConstraintCheck/Context/ReferenceContext.php index bf93c8f..d0ba238 100644 --- a/includes/ConstraintCheck/Context/ReferenceContext.php +++ b/includes/ConstraintCheck/Context/ReferenceContext.php @@ -9,6 +9,8 @@ /** * A constraint check context for a snak of a reference of a statement. + * + * @license GNU GPL v2+ */ class ReferenceContext extends ApiV2Context { diff --git a/includes/ConstraintCheck/Context/StatementContext.php b/includes/ConstraintCheck/Context/StatementContext.php index 46bf1ad..ed20b9d 100644 --- a/includes/ConstraintCheck/Context/StatementContext.php +++ b/includes/ConstraintCheck/Context/StatementContext.php @@ -10,6 +10,8 @@ * * The result format used by storeCheckResultInArray() is only suitable * if no other kinds of contexts are to be stored in the same container. + * + * @license GNU GPL v2+ */ class StatementContext extends AbstractContext { diff --git a/includes/ConstraintParameterRenderer.php b/includes/ConstraintParameterRenderer.php index ec17e92..0735604 100644 --- a/includes/ConstraintParameterRenderer.php +++ b/includes/ConstraintParameterRenderer.php @@ -11,8 +11,6 @@ use WikibaseQuality\ConstraintReport\ConstraintCheck\ItemIdSnakValue; /** - * Class ConstraintParameterRenderer - * * Used to format the constraint values for output. * * @author BP2014N1 diff --git a/maintenance/ImportConstraintStatements.php b/maintenance/ImportConstraintStatements.php index a19084b..2a17564 100644 --- a/maintenance/ImportConstraintStatements.php +++ b/maintenance/ImportConstraintStatements.php @@ -14,8 +14,9 @@ require_once $basePath . "/maintenance/Maintenance.php"; /** - * * Runs {@link UpdateConstraintsTableJob} once for every property. + * + * @license GNU GPL v2+ */ class ImportConstraintStatements extends Maintenance { -- To view, visit https://gerrit.wikimedia.org/r/385159 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic61e30c3918c3302510799a26c9be3ed680c66a1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints Gerrit-Branch: master Gerrit-Owner: Lucas Werkmeister (WMDE) <lucas.werkmeis...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits