diff --git a/src/Actions/ManagesDowntime.php b/src/Actions/ManagesDowntime.php index 3593bb9..a14548f 100644 --- a/src/Actions/ManagesDowntime.php +++ b/src/Actions/ManagesDowntime.php @@ -7,8 +7,8 @@ trait ManagesDowntime { /** - * @param string $startedAt Short (2020-12-01) or long (2020-12-01 15:00:00) date format - * @param string $endedAt Short (2020-12-01) or long (2020-12-01 15:00:00) date format + * @param string $startedAt Short (2020-12-01) or long (2020-12-01 15:00:00) date format + * @param string $endedAt Short (2020-12-01) or long (2020-12-01 15:00:00) date format */ public function downtime(int $siteId, string $startedAt, string $endedAt): array { diff --git a/src/Actions/ManagesMaintenancePeriods.php b/src/Actions/ManagesMaintenancePeriods.php index dc4bb0c..caffdd1 100644 --- a/src/Actions/ManagesMaintenancePeriods.php +++ b/src/Actions/ManagesMaintenancePeriods.php @@ -15,7 +15,7 @@ public function maintenancePeriods(int $siteId): array } /** - * @param int $stopMaintenanceAfterSeconds Stops after one hour by default + * @param int $stopMaintenanceAfterSeconds Stops after one hour by default */ public function startSiteMaintenance(int $siteId, int $stopMaintenanceAfterSeconds = 60 * 60): MaintenancePeriod { @@ -32,8 +32,8 @@ public function stopSiteMaintenance(int $siteId) } /** - * @param string $startsAt Y-m-d H:i - * @param string $endsAt Y-m-d H:i + * @param string $startsAt Y-m-d H:i + * @param string $endsAt Y-m-d H:i */ public function createSiteMaintenance(int $siteId, string $startsAt, string $endsAt): MaintenancePeriod { diff --git a/src/Actions/ManagesPerformance.php b/src/Actions/ManagesPerformance.php index 156b42b..42f0157 100644 --- a/src/Actions/ManagesPerformance.php +++ b/src/Actions/ManagesPerformance.php @@ -7,9 +7,9 @@ trait ManagesPerformance { /** - * @param string $start Short (2020-12-01) or long (2020-12-01 15:00:00) date format - * @param string $end Short (2020-12-01) or long (2020-12-01 15:00:00) date format - * @param string $timeframe Should be 1m or 1h + * @param string $start Short (2020-12-01) or long (2020-12-01 15:00:00) date format + * @param string $end Short (2020-12-01) or long (2020-12-01 15:00:00) date format + * @param string $timeframe Should be 1m or 1h */ public function performanceRecords( int $siteId, diff --git a/src/Resources/ApiResource.php b/src/Resources/ApiResource.php index 0267c22..912b18e 100644 --- a/src/Resources/ApiResource.php +++ b/src/Resources/ApiResource.php @@ -12,7 +12,7 @@ class ApiResource protected ?OhDear $ohDear; - public function __construct(array $attributes, OhDear $ohDear = null) + public function __construct(array $attributes, ?OhDear $ohDear = null) { $this->attributes = $attributes;