From 4d8252055a55695da57ceade4d7dcc5d991455bd Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 2 Feb 2023 14:00:54 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Entities/Page.php | 3 +-- src/Entities/Properties/Text.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Entities/Page.php b/src/Entities/Page.php index 53747eb..08d03d1 100644 --- a/src/Entities/Page.php +++ b/src/Entities/Page.php @@ -18,7 +18,6 @@ use FiveamCode\LaravelNotionApi\Entities\Properties\Url; use FiveamCode\LaravelNotionApi\Exceptions\HandlingException; use Illuminate\Support\Arr; -use Illuminate\Support\Str; use Illuminate\Support\Collection; /** @@ -469,7 +468,7 @@ public function getProperties(): Collection */ public function getProperty(string $propertyKey): ?Property { - if (!isset($this->propertyMap[$propertyKey])) { + if (! isset($this->propertyMap[$propertyKey])) { return null; } diff --git a/src/Entities/Properties/Text.php b/src/Entities/Properties/Text.php index 3d96cbb..84df2e4 100644 --- a/src/Entities/Properties/Text.php +++ b/src/Entities/Properties/Text.php @@ -56,7 +56,7 @@ public static function value($text): Text protected function fillFromRaw(): void { parent::fillFromRaw(); - if (!is_array($this->rawContent)) { + if (! is_array($this->rawContent)) { throw HandlingException::instance('The property-type is text, however the raw data-structure does not represent this type (= array of items). Please check the raw response-data.'); }