@@ -16,6 +16,9 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class ViolationMessageSerializer implements Serializer { |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $fullMessageKey |
|
| 21 | + */ |
|
| 19 | 22 | private function abbreviateViolationMessageKey( $fullMessageKey ) { |
| 20 | 23 | return substr( $fullMessageKey, strlen( ViolationMessage::MESSAGE_KEY_PREFIX ) ); |
| 21 | 24 | } |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | } |
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | - * @param EntityDocument|StatementListProvider $entity |
|
| 313 | + * @param EntityDocument $entity |
|
| 314 | 314 | * @param string[]|null $constraintIds list of constraints to check (if null: all constraints) |
| 315 | 315 | * @param callable|null $defaultResultsPerContext optional function to pre-populate the check results |
| 316 | 316 | * |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | /** |
| 341 | - * @param EntityDocument|StatementListProvider $entity |
|
| 341 | + * @param EntityDocument $entity |
|
| 342 | 342 | * @param Statement $statement |
| 343 | 343 | * @param string[]|null $constraintIds list of constraints to check (if null: all constraints) |
| 344 | 344 | * @param callable|null $defaultResultsPerContext optional function to pre-populate the check results |
@@ -352,7 +352,6 @@ discard block |
||
| 352 | 352 | } |
| 353 | 353 | |
| 354 | 354 | /** |
| 355 | - * @param string[] $text Context::TYPE_* constants |
|
| 356 | 355 | * @param string|null $role one of the Role::* constants |
| 357 | 356 | * @return array[] list of parameters as accepted by Message::params() |
| 358 | 357 | */ |
@@ -387,7 +386,6 @@ discard block |
||
| 387 | 386 | } |
| 388 | 387 | |
| 389 | 388 | /** |
| 390 | - * @param string[] $text Context::TYPE_* constants |
|
| 391 | 389 | * @param string|null $role one of the Role::* constants |
| 392 | 390 | * @return array[] list of parameters as accepted by Message::params() |
| 393 | 391 | */ |
@@ -76,6 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * @param string the converted $cacheId |
| 79 | + * @param string $cacheId |
|
| 79 | 80 | * |
| 80 | 81 | * @return boolean representing if the Lock is Locked |
| 81 | 82 | * |
@@ -65,6 +65,7 @@ discard block |
||
| 65 | 65 | * and return it along with the associated log level. |
| 66 | 66 | * |
| 67 | 67 | * @param float $durationSeconds |
| 68 | + * @param double[] $limits |
|
| 68 | 69 | * @return array [ $limitSeconds, $logLevel ] |
| 69 | 70 | */ |
| 70 | 71 | private function findLimit( $limits, $durationSeconds ) { |
@@ -174,6 +175,7 @@ discard block |
||
| 174 | 175 | * @param EntityId $entityId |
| 175 | 176 | * @param CheckResult[] $checkResults |
| 176 | 177 | * @param float $durationSeconds |
| 178 | + * @param string $method |
|
| 177 | 179 | */ |
| 178 | 180 | public function logConstraintCheckOnEntity( |
| 179 | 181 | EntityId $entityId, |