Skip to content

Commit

Permalink
Move data member to top of class
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Feb 21, 2024
1 parent 3f91818 commit 0963753
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions modules/images/image-loading-optimization/class-ilo-url-metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@
*/
final class ILO_URL_Metric implements JsonSerializable {

/**
* Data.
*
* @var array{
* timestamp: int,
* viewport: array{ width: int, height: int },
* elements: array<array{
* isLCP: bool,
* isLCPCandidate: bool,
* xpath: string,
* intersectionRatio: float,
* intersectionRect: array{ width: int, height: int },
* boundingClientRect: array{ width: int, height: int },
* }>
* }
*/
private $data;

/**
* Gets JSON schema for URL Metric.
*
Expand Down Expand Up @@ -101,24 +119,6 @@ public static function get_json_schema(): array {
);
}

/**
* Data.
*
* @var array{
* timestamp: int,
* viewport: array{ width: int, height: int },
* elements: array<array{
* isLCP: bool,
* isLCPCandidate: bool,
* xpath: string,
* intersectionRatio: float,
* intersectionRect: array{ width: int, height: int },
* boundingClientRect: array{ width: int, height: int },
* }>
* }
*/
private $data;

/**
* Constructor.
*
Expand Down

0 comments on commit 0963753

Please sign in to comment.