diff --git a/src/Blocks/Client.php b/src/Blocks/Client.php index 03b17bd9..258327dd 100644 --- a/src/Blocks/Client.php +++ b/src/Blocks/Client.php @@ -18,7 +18,8 @@ public function __construct( private readonly RequestFactoryInterface $requestFactory, private readonly string $token, private readonly string $version, - ) {} + ) { + } public function find(string $blockId): BlockInterface { diff --git a/src/Common/Date.php b/src/Common/Date.php index ddd07d5a..1b1da313 100644 --- a/src/Common/Date.php +++ b/src/Common/Date.php @@ -16,7 +16,8 @@ class Date private function __construct( public readonly DateTimeImmutable $start, public readonly DateTimeImmutable|null $end, - ) {} + ) { + } public static function create(DateTimeImmutable $date): self { diff --git a/src/Common/Emoji.php b/src/Common/Emoji.php index 3e500f1d..f82014df 100644 --- a/src/Common/Emoji.php +++ b/src/Common/Emoji.php @@ -11,7 +11,8 @@ class Emoji { private function __construct( public readonly string $emoji, - ) {} + ) { + } public static function create(string $emoji): self { diff --git a/src/Common/Equation.php b/src/Common/Equation.php index 076c1bdb..72c19033 100644 --- a/src/Common/Equation.php +++ b/src/Common/Equation.php @@ -11,7 +11,8 @@ class Equation { private function __construct( public readonly string $expression - ) {} + ) { + } public static function create(string $expression): self { diff --git a/src/Common/File.php b/src/Common/File.php index 90eff1a1..9a46562f 100644 --- a/src/Common/File.php +++ b/src/Common/File.php @@ -19,7 +19,8 @@ private function __construct( public readonly FileType $type, public readonly string $url, public readonly DateTimeImmutable|null $expiryTime, - ) {} + ) { + } public static function createExternal(string $url): self { diff --git a/src/Common/Mention.php b/src/Common/Mention.php index 428a89fc..d3d31cce 100644 --- a/src/Common/Mention.php +++ b/src/Common/Mention.php @@ -26,7 +26,8 @@ private function __construct( public readonly string|null $databaseId, public readonly User|null $user, public readonly Date|null $date, - ) {} + ) { + } public static function createPage(string $pageId): self { diff --git a/src/Common/RichText.php b/src/Common/RichText.php index 659a1768..4f7d77d2 100644 --- a/src/Common/RichText.php +++ b/src/Common/RichText.php @@ -30,7 +30,8 @@ private function __construct( public readonly Text|null $text, public readonly Mention|null $mention, public readonly Equation|null $equation, - ) {} + ) { + } /** @psalm-mutation-free */ public static function createText(string $content): self diff --git a/src/Common/Text.php b/src/Common/Text.php index 2536d9ef..35fbc73f 100644 --- a/src/Common/Text.php +++ b/src/Common/Text.php @@ -12,7 +12,8 @@ class Text private function __construct( public readonly string $content, public readonly string|null $url, - ) {} + ) { + } /** @psalm-mutation-free */ public static function create(string $content): self diff --git a/src/Databases/Client.php b/src/Databases/Client.php index ddd1fed6..5eab2790 100644 --- a/src/Databases/Client.php +++ b/src/Databases/Client.php @@ -23,7 +23,8 @@ public function __construct( private readonly RequestFactoryInterface $requestFactory, private readonly string $token, private readonly string $version, - ) {} + ) { + } public function find(string $databaseId): Database { diff --git a/src/Databases/Properties/Checkbox.php b/src/Databases/Properties/Checkbox.php index 3b22bb83..4b8238ff 100644 --- a/src/Databases/Properties/Checkbox.php +++ b/src/Databases/Properties/Checkbox.php @@ -16,7 +16,8 @@ class Checkbox implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Checkbox"): self { diff --git a/src/Databases/Properties/CreatedBy.php b/src/Databases/Properties/CreatedBy.php index 3d8fe57e..0a1def54 100644 --- a/src/Databases/Properties/CreatedBy.php +++ b/src/Databases/Properties/CreatedBy.php @@ -16,7 +16,8 @@ class CreatedBy implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "CreatedBy"): self { diff --git a/src/Databases/Properties/CreatedTime.php b/src/Databases/Properties/CreatedTime.php index f4a6e87d..c857ee1d 100644 --- a/src/Databases/Properties/CreatedTime.php +++ b/src/Databases/Properties/CreatedTime.php @@ -16,7 +16,8 @@ class CreatedTime implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "CreatedTime"): self { diff --git a/src/Databases/Properties/Date.php b/src/Databases/Properties/Date.php index af0dd00a..dffcf21b 100644 --- a/src/Databases/Properties/Date.php +++ b/src/Databases/Properties/Date.php @@ -16,7 +16,8 @@ class Date implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Date"): self { diff --git a/src/Databases/Properties/Email.php b/src/Databases/Properties/Email.php index 71646af4..1c8f46bd 100644 --- a/src/Databases/Properties/Email.php +++ b/src/Databases/Properties/Email.php @@ -16,7 +16,8 @@ class Email implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Email"): self { diff --git a/src/Databases/Properties/Files.php b/src/Databases/Properties/Files.php index f4797d1e..f509794b 100644 --- a/src/Databases/Properties/Files.php +++ b/src/Databases/Properties/Files.php @@ -16,7 +16,8 @@ class Files implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Files"): self { diff --git a/src/Databases/Properties/Formula.php b/src/Databases/Properties/Formula.php index 9b25f27c..990f05c8 100644 --- a/src/Databases/Properties/Formula.php +++ b/src/Databases/Properties/Formula.php @@ -17,7 +17,8 @@ class Formula implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly string $expression - ) {} + ) { + } public static function create(string $propertyName = "Formula", string $expression = ""): self { diff --git a/src/Databases/Properties/LastEditedBy.php b/src/Databases/Properties/LastEditedBy.php index 23b262dc..1bdee085 100644 --- a/src/Databases/Properties/LastEditedBy.php +++ b/src/Databases/Properties/LastEditedBy.php @@ -16,7 +16,8 @@ class LastEditedBy implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "LastEditedBy"): self { diff --git a/src/Databases/Properties/LastEditedTime.php b/src/Databases/Properties/LastEditedTime.php index ff92267e..32c1c3c7 100644 --- a/src/Databases/Properties/LastEditedTime.php +++ b/src/Databases/Properties/LastEditedTime.php @@ -16,7 +16,8 @@ class LastEditedTime implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "LastEditedTime"): self { diff --git a/src/Databases/Properties/MultiSelect.php b/src/Databases/Properties/MultiSelect.php index 11f496c5..a5dfd132 100644 --- a/src/Databases/Properties/MultiSelect.php +++ b/src/Databases/Properties/MultiSelect.php @@ -22,7 +22,8 @@ class MultiSelect implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $options, - ) {} + ) { + } /** @param SelectOption[] $options */ public static function create(string $propertyName = "Multi Select", array $options = []): self diff --git a/src/Databases/Properties/Number.php b/src/Databases/Properties/Number.php index bab14977..6dffdf9c 100644 --- a/src/Databases/Properties/Number.php +++ b/src/Databases/Properties/Number.php @@ -17,7 +17,8 @@ class Number implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly NumberFormat $format, - ) {} + ) { + } public static function create( string $propertyName = "Number", diff --git a/src/Databases/Properties/People.php b/src/Databases/Properties/People.php index e330291f..2070bad1 100644 --- a/src/Databases/Properties/People.php +++ b/src/Databases/Properties/People.php @@ -16,7 +16,8 @@ class People implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "People"): self { diff --git a/src/Databases/Properties/PhoneNumber.php b/src/Databases/Properties/PhoneNumber.php index 42586e3c..733cbe8c 100644 --- a/src/Databases/Properties/PhoneNumber.php +++ b/src/Databases/Properties/PhoneNumber.php @@ -16,7 +16,8 @@ class PhoneNumber implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "PhoneNumber"): self { diff --git a/src/Databases/Properties/PropertyMetadata.php b/src/Databases/Properties/PropertyMetadata.php index e6c6890a..9496275b 100644 --- a/src/Databases/Properties/PropertyMetadata.php +++ b/src/Databases/Properties/PropertyMetadata.php @@ -13,7 +13,8 @@ private function __construct( public readonly string $id, public readonly string $name, public readonly PropertyType $type, - ) {} + ) { + } public static function create(string $id, string $name, PropertyType $type): self { diff --git a/src/Databases/Properties/RichTextProperty.php b/src/Databases/Properties/RichTextProperty.php index 6c9ba79d..e21f3551 100644 --- a/src/Databases/Properties/RichTextProperty.php +++ b/src/Databases/Properties/RichTextProperty.php @@ -16,7 +16,8 @@ class RichTextProperty implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Text"): self { diff --git a/src/Databases/Properties/Select.php b/src/Databases/Properties/Select.php index e58c18fc..13753c1f 100644 --- a/src/Databases/Properties/Select.php +++ b/src/Databases/Properties/Select.php @@ -22,7 +22,8 @@ class Select implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $options - ) {} + ) { + } /** @param SelectOption[] $options */ public static function create(string $propertyName = "Select", array $options = []): self diff --git a/src/Databases/Properties/SelectOption.php b/src/Databases/Properties/SelectOption.php index 531d6e68..caf2f0be 100644 --- a/src/Databases/Properties/SelectOption.php +++ b/src/Databases/Properties/SelectOption.php @@ -19,7 +19,8 @@ private function __construct( public readonly string|null $id, public readonly string|null $name, public readonly Color $color, - ) {} + ) { + } public static function fromId(string $id): self { diff --git a/src/Databases/Properties/Title.php b/src/Databases/Properties/Title.php index 06902fbb..e70aab74 100644 --- a/src/Databases/Properties/Title.php +++ b/src/Databases/Properties/Title.php @@ -16,7 +16,8 @@ class Title implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Title"): self { diff --git a/src/Databases/Properties/Url.php b/src/Databases/Properties/Url.php index 3b309694..f4764bbb 100644 --- a/src/Databases/Properties/Url.php +++ b/src/Databases/Properties/Url.php @@ -16,7 +16,8 @@ class Url implements PropertyInterface { private function __construct( private readonly PropertyMetadata $metadata, - ) {} + ) { + } public static function create(string $propertyName = "Url"): self { diff --git a/src/Databases/Query.php b/src/Databases/Query.php index 9f966f9c..b3e3d4f4 100644 --- a/src/Databases/Query.php +++ b/src/Databases/Query.php @@ -17,7 +17,8 @@ private function __construct( public readonly array $sorts, public readonly string|null $startCursor, public readonly int $pageSize, - ) {} + ) { + } public static function create(): self { diff --git a/src/Databases/Query/Result.php b/src/Databases/Query/Result.php index 96891b7b..cf13372f 100644 --- a/src/Databases/Query/Result.php +++ b/src/Databases/Query/Result.php @@ -23,7 +23,8 @@ private function __construct( public readonly array $pages, public readonly bool $hasMore, public readonly string|null $nextCursor - ) {} + ) { + } /** @param QueryResultJson $array */ public static function fromArray(array $array): self diff --git a/src/Databases/Query/Sort.php b/src/Databases/Query/Sort.php index efc65f5e..c669fefb 100644 --- a/src/Databases/Query/Sort.php +++ b/src/Databases/Query/Sort.php @@ -21,7 +21,8 @@ private function __construct( private readonly string $type, private readonly string $propertyName, private readonly string $direction, - ) {} + ) { + } public static function property(string $propertyName): self { diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index ed812049..ba0d6fd1 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -9,7 +9,8 @@ final class ApiException extends NotionException { private string $notionCode; - private function __construct(string $message, string $notionCode) { + private function __construct(string $message, string $notionCode) + { $this->notionCode = $notionCode; parent::__construct($message); diff --git a/src/Notion.php b/src/Notion.php index 2758764a..3d5c31f2 100644 --- a/src/Notion.php +++ b/src/Notion.php @@ -19,7 +19,8 @@ private function __construct( private readonly ClientInterface $psrClient, private readonly RequestFactoryInterface $requestFactory, private readonly string $token, - ) {} + ) { + } public static function create(string $token): self { diff --git a/src/Pages/Client.php b/src/Pages/Client.php index 3f4674dd..cac60446 100644 --- a/src/Pages/Client.php +++ b/src/Pages/Client.php @@ -21,7 +21,8 @@ public function __construct( private readonly RequestFactoryInterface $requestFactory, private readonly string $token, private readonly string $version, - ) {} + ) { + } public function find(string $pageId): Page { diff --git a/src/Pages/Page.php b/src/Pages/Page.php index 052be279..24bcd16b 100644 --- a/src/Pages/Page.php +++ b/src/Pages/Page.php @@ -46,7 +46,8 @@ private function __construct( public readonly array $properties, public readonly PageParent $parent, public readonly string $url - ) {} + ) { + } public static function create(PageParent $parent): self { diff --git a/src/Pages/PageParent.php b/src/Pages/PageParent.php index 0415a42c..fb153d7e 100644 --- a/src/Pages/PageParent.php +++ b/src/Pages/PageParent.php @@ -17,7 +17,8 @@ class PageParent private function __construct( public readonly PageParentType $type, public readonly string|null $id, - ) {} + ) { + } public static function database(string $databaseId): self { diff --git a/src/Pages/Properties/Checkbox.php b/src/Pages/Properties/Checkbox.php index 517b8b4d..6229016e 100644 --- a/src/Pages/Properties/Checkbox.php +++ b/src/Pages/Properties/Checkbox.php @@ -16,7 +16,8 @@ class Checkbox implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly bool $checked, - ) {} + ) { + } public static function create(bool $checked = false): self { diff --git a/src/Pages/Properties/CreatedBy.php b/src/Pages/Properties/CreatedBy.php index 0156ff1c..6eedbcbf 100644 --- a/src/Pages/Properties/CreatedBy.php +++ b/src/Pages/Properties/CreatedBy.php @@ -20,7 +20,8 @@ class CreatedBy implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly User $user, - ) {} + ) { + } public function metadata(): PropertyMetadata { diff --git a/src/Pages/Properties/CreatedTime.php b/src/Pages/Properties/CreatedTime.php index 6dfac50c..e4b358f6 100644 --- a/src/Pages/Properties/CreatedTime.php +++ b/src/Pages/Properties/CreatedTime.php @@ -19,7 +19,8 @@ class CreatedTime implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly DateTimeImmutable $time, - ) {} + ) { + } public static function create(DateTimeImmutable $time): self { diff --git a/src/Pages/Properties/Date.php b/src/Pages/Properties/Date.php index a055b17b..8430387b 100644 --- a/src/Pages/Properties/Date.php +++ b/src/Pages/Properties/Date.php @@ -24,7 +24,8 @@ private function __construct( private readonly PropertyMetadata $metadata, public readonly DateTimeImmutable $start, public readonly DateTimeImmutable|null $end, - ) {} + ) { + } public static function create( DateTimeImmutable $start, diff --git a/src/Pages/Properties/Email.php b/src/Pages/Properties/Email.php index 3b245b94..8eda9b5b 100644 --- a/src/Pages/Properties/Email.php +++ b/src/Pages/Properties/Email.php @@ -16,7 +16,8 @@ class Email implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly string $email, - ) {} + ) { + } public static function create(string $email): self { diff --git a/src/Pages/Properties/Files.php b/src/Pages/Properties/Files.php index 9b66f3e9..8d5c2317 100644 --- a/src/Pages/Properties/Files.php +++ b/src/Pages/Properties/Files.php @@ -21,7 +21,8 @@ class Files implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $files, - ) {} + ) { + } public static function create(File ...$files): self { diff --git a/src/Pages/Properties/Formula.php b/src/Pages/Properties/Formula.php index 2e2d2cf4..929fe86e 100644 --- a/src/Pages/Properties/Formula.php +++ b/src/Pages/Properties/Formula.php @@ -32,7 +32,8 @@ private function __construct( public readonly int|float|null $number, public readonly bool|null $boolean, public readonly Date|null $date, - ) {} + ) { + } public static function fromArray(array $array): self { diff --git a/src/Pages/Properties/LastEditedBy.php b/src/Pages/Properties/LastEditedBy.php index fe8a90fa..3a6a3706 100644 --- a/src/Pages/Properties/LastEditedBy.php +++ b/src/Pages/Properties/LastEditedBy.php @@ -20,7 +20,8 @@ class LastEditedBy implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly User $user - ) {} + ) { + } public function metadata(): PropertyMetadata { diff --git a/src/Pages/Properties/LastEditedTime.php b/src/Pages/Properties/LastEditedTime.php index 5edf74f4..622cff2b 100644 --- a/src/Pages/Properties/LastEditedTime.php +++ b/src/Pages/Properties/LastEditedTime.php @@ -19,7 +19,8 @@ class LastEditedTime implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly DateTimeImmutable $time, - ) {} + ) { + } public static function fromArray(array $array): self { diff --git a/src/Pages/Properties/MultiSelect.php b/src/Pages/Properties/MultiSelect.php index ad8ff17f..9606a445 100644 --- a/src/Pages/Properties/MultiSelect.php +++ b/src/Pages/Properties/MultiSelect.php @@ -21,7 +21,8 @@ class MultiSelect implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $options - ) {} + ) { + } public static function fromIds(string ...$ids): self { diff --git a/src/Pages/Properties/Number.php b/src/Pages/Properties/Number.php index f9a401b7..962baa91 100644 --- a/src/Pages/Properties/Number.php +++ b/src/Pages/Properties/Number.php @@ -18,7 +18,8 @@ class Number implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly int|float $number - ) {} + ) { + } public static function create(int|float $number): self { diff --git a/src/Pages/Properties/People.php b/src/Pages/Properties/People.php index 2abe9bf9..eb4fb635 100644 --- a/src/Pages/Properties/People.php +++ b/src/Pages/Properties/People.php @@ -21,7 +21,8 @@ class People implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $users - ) {} + ) { + } public static function create(User ...$users): self { diff --git a/src/Pages/Properties/PhoneNumber.php b/src/Pages/Properties/PhoneNumber.php index d147375a..c186e11b 100644 --- a/src/Pages/Properties/PhoneNumber.php +++ b/src/Pages/Properties/PhoneNumber.php @@ -16,7 +16,8 @@ class PhoneNumber implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly string $phone - ) {} + ) { + } public static function create(string $phone): self { diff --git a/src/Pages/Properties/PropertyMetadata.php b/src/Pages/Properties/PropertyMetadata.php index b8788c9c..6e5d7a3e 100644 --- a/src/Pages/Properties/PropertyMetadata.php +++ b/src/Pages/Properties/PropertyMetadata.php @@ -12,7 +12,8 @@ class PropertyMetadata private function __construct( public readonly string $id, public readonly PropertyType $type, - ) {} + ) { + } /** @psalm-mutation-free */ public static function create(string $id, PropertyType $type): self diff --git a/src/Pages/Properties/Relation.php b/src/Pages/Properties/Relation.php index c378640f..0d4e41e7 100644 --- a/src/Pages/Properties/Relation.php +++ b/src/Pages/Properties/Relation.php @@ -17,7 +17,8 @@ class Relation implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $pageIds - ) {} + ) { + } public static function create(string ...$pageIds): self { diff --git a/src/Pages/Properties/RichTextProperty.php b/src/Pages/Properties/RichTextProperty.php index 0b2a22f3..369225d0 100644 --- a/src/Pages/Properties/RichTextProperty.php +++ b/src/Pages/Properties/RichTextProperty.php @@ -21,7 +21,8 @@ class RichTextProperty implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $text - ) {} + ) { + } public static function create(RichText ...$texts): self { diff --git a/src/Pages/Properties/Select.php b/src/Pages/Properties/Select.php index 01f9e3e4..0ae028d8 100644 --- a/src/Pages/Properties/Select.php +++ b/src/Pages/Properties/Select.php @@ -18,7 +18,8 @@ class Select implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly SelectOption $option - ) {} + ) { + } public static function fromId(string $id): self { diff --git a/src/Pages/Properties/Title.php b/src/Pages/Properties/Title.php index 54825aa9..24b433f4 100644 --- a/src/Pages/Properties/Title.php +++ b/src/Pages/Properties/Title.php @@ -21,7 +21,8 @@ class Title implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly array $title - ) {} + ) { + } /** @psalm-mutation-free */ public static function create(RichText ...$title): self diff --git a/src/Pages/Properties/Url.php b/src/Pages/Properties/Url.php index 6d427da6..12cd0b0b 100644 --- a/src/Pages/Properties/Url.php +++ b/src/Pages/Properties/Url.php @@ -16,7 +16,8 @@ class Url implements PropertyInterface private function __construct( private readonly PropertyMetadata $metadata, public readonly string $url - ) {} + ) { + } public static function create(string $url): self { diff --git a/src/Users/Person.php b/src/Users/Person.php index b362ecc4..af454510 100644 --- a/src/Users/Person.php +++ b/src/Users/Person.php @@ -11,7 +11,8 @@ class Person { private function __construct( public readonly string $email, - ) {} + ) { + } /** @param PersonJson $array */ public static function fromArray(array $array): self diff --git a/src/Users/User.php b/src/Users/User.php index 7577446b..e54cfa99 100644 --- a/src/Users/User.php +++ b/src/Users/User.php @@ -26,7 +26,8 @@ private function __construct( public readonly UserType $type, public readonly Person|null $person, public readonly Bot|null $bot, - ) {} + ) { + } /** @psalm-param UserJson $array */ public static function fromArray(array $array): self