Skip to content

Commit 6e01991

Browse files
thiemowmdeWMDE bot
authored andcommitted
Remove obsolete PHPDoc tags that don't add new information
Maybe these PHPDocs are from a time where our PHPCS rule set forced us to add documentation, even if there was nothing to say? Or these comments are from a time before we have been able to add all these language-level type declarations? In any case, these comments just repeat what the code already says. They don't add any new information. There are many more comments like this. This patch was made with a regex and focusses on shorter 1- and 2-line comments. I don#t want to make the patch any bigger to keep it in a state where it can still be reviewed. Change-Id: I36a0e3e0bff2e946f1104bcb29ad725000e90366
1 parent cbf5db5 commit 6e01991

4 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/Diff/EntityDiff.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ public function getClaimsDiff() {
121121

122122
/**
123123
* Returns if there are any changes (equivalent to: any differences between the entities).
124-
*
125-
* @return bool
126124
*/
127125
public function isEmpty(): bool {
128126
return $this->getLabelsDiff()->isEmpty()

src/Entity/EntityPrefetcher.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ public function prefetch( array $entityIds );
2424

2525
/**
2626
* Purges prefetched data about a given entity.
27-
*
28-
* @param EntityId $entityId
2927
*/
3028
public function purge( EntityId $entityId );
3129

src/Entity/NullEntityPrefetcher.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public function prefetch( array $entityIds ) {
2626

2727
/**
2828
* Purges prefetched data about a given entity.
29-
*
30-
* @param EntityId $entityId
3129
*/
3230
public function purge( EntityId $entityId ) {
3331
}

src/Lookup/RestrictedEntityLookupFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ class RestrictedEntityLookupFactory {
3030
*/
3131
private array $restrictedEntityLookupArray = [];
3232

33-
/**
34-
* @param EntityLookup $entityLookup
35-
* @param int $entityAccessLimit
36-
*/
3733
public function __construct( EntityLookup $entityLookup, int $entityAccessLimit ) {
3834
$this->entityLookup = $entityLookup;
3935
$this->entityAccessLimit = $entityAccessLimit;

0 commit comments

Comments
 (0)