From 8485ca6e21c517f669367e40e10737f3291d2564 Mon Sep 17 00:00:00 2001 From: owenvoke Date: Fri, 22 Sep 2023 14:51:00 +0000 Subject: [PATCH] Fix styling --- src/Resources/ApiResource.php | 2 +- src/Resources/BrokenLink.php | 2 +- src/Resources/CronCheck.php | 6 +++--- src/Resources/Downtime.php | 2 +- src/Resources/LighthouseReport.php | 22 +++++++++++----------- src/Resources/MaintenancePeriod.php | 2 +- src/Resources/StatusPageUpdate.php | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Resources/ApiResource.php b/src/Resources/ApiResource.php index 048a17c..0267c22 100644 --- a/src/Resources/ApiResource.php +++ b/src/Resources/ApiResource.php @@ -10,7 +10,7 @@ class ApiResource { public array $attributes = []; - protected OhDear|null $ohDear; + protected ?OhDear $ohDear; public function __construct(array $attributes, OhDear $ohDear = null) { diff --git a/src/Resources/BrokenLink.php b/src/Resources/BrokenLink.php index 2ddeafb..7af8475 100644 --- a/src/Resources/BrokenLink.php +++ b/src/Resources/BrokenLink.php @@ -7,7 +7,7 @@ class BrokenLink extends ApiResource /* * The status code the site responded with. */ - public int|null $statusCode; + public ?int $statusCode; /* * The url that is broken. diff --git a/src/Resources/CronCheck.php b/src/Resources/CronCheck.php index 08411bd..84e0ab6 100644 --- a/src/Resources/CronCheck.php +++ b/src/Resources/CronCheck.php @@ -14,15 +14,15 @@ class CronCheck extends ApiResource public int $checkId; - public int|null $frequencyInMinutes; + public ?int $frequencyInMinutes; public string $pingUrl; public int $graceTimeInMinutes = 0; - public string|null $cronExpression = ''; + public ?string $cronExpression = ''; - public string|null $description = ''; + public ?string $description = ''; public function __construct(array $attributes, $ohDear = null) { diff --git a/src/Resources/Downtime.php b/src/Resources/Downtime.php index bb46dd3..4725284 100644 --- a/src/Resources/Downtime.php +++ b/src/Resources/Downtime.php @@ -6,5 +6,5 @@ class Downtime extends ApiResource { public string $startedAt; - public string|null $endedAt; + public ?string $endedAt; } diff --git a/src/Resources/LighthouseReport.php b/src/Resources/LighthouseReport.php index 2ad2234..76828bb 100644 --- a/src/Resources/LighthouseReport.php +++ b/src/Resources/LighthouseReport.php @@ -6,27 +6,27 @@ class LighthouseReport extends ApiResource { public int $id; - public int|null $performanceScore; + public ?int $performanceScore; - public int|null $accessibilityScore; + public ?int $accessibilityScore; - public int|null $bestPracticesScore; + public ?int $bestPracticesScore; - public int|null $seoScore; + public ?int $seoScore; - public int|null $progressiveWebAppScore; + public ?int $progressiveWebAppScore; - public float|null $firstContentfulPaintInMs; + public ?float $firstContentfulPaintInMs; - public float|null $speedIndexInMs; + public ?float $speedIndexInMs; - public float|null $largestContentfulPaintInMs; + public ?float $largestContentfulPaintInMs; - public float|null $timeToInteractiveInMs; + public ?float $timeToInteractiveInMs; - public float|null $totalBlockingTimeInMs; + public ?float $totalBlockingTimeInMs; - public float|null $cumulativeLayoutShift; + public ?float $cumulativeLayoutShift; public string $performedOnCheckerServer; diff --git a/src/Resources/MaintenancePeriod.php b/src/Resources/MaintenancePeriod.php index a873c00..ef88462 100644 --- a/src/Resources/MaintenancePeriod.php +++ b/src/Resources/MaintenancePeriod.php @@ -10,5 +10,5 @@ class MaintenancePeriod extends ApiResource public string $startsAt; - public string|null $endsAt; + public ?string $endsAt; } diff --git a/src/Resources/StatusPageUpdate.php b/src/Resources/StatusPageUpdate.php index 8383a04..4fbc0c4 100644 --- a/src/Resources/StatusPageUpdate.php +++ b/src/Resources/StatusPageUpdate.php @@ -8,7 +8,7 @@ class StatusPageUpdate extends ApiResource public string $title; - public string|null $text; + public ?string $text; public bool $pinned;