Skip to content

Commit

Permalink
chore: Format files and added format script
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Jun 26, 2024
1 parent c72a279 commit 3e1609a
Show file tree
Hide file tree
Showing 60 changed files with 75 additions and 180 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
],
"stan": [
"./vendor/bin/phpstan analyse --memory-limit=2g"
],
"format": [
"./vendor/bin/pint"
]
},
"script-descriptions": {
Expand Down
28 changes: 14 additions & 14 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
use Rector\Set\ValueObject\SetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/src',
]);
$rectorConfig->paths([
__DIR__.'/src',
]);

$rectorConfig->rules([
InlineConstructorDefaultToPropertyRector::class,
]);
$rectorConfig->rules([
InlineConstructorDefaultToPropertyRector::class,
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
SetList::TYPE_DECLARATION,
SetList::PRIVATIZATION,
]);
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_82,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
SetList::TYPE_DECLARATION,
SetList::PRIVATIZATION,
]);
};
3 changes: 1 addition & 2 deletions src/ClerkBackendBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class ClerkBackendBuilder
{
public function __construct(
private SDKConfiguration $sdkConfig = new SDKConfiguration(),
) {
}
) {}

/**
* setClient allows setting a custom Guzzle client for the SDK to make requests with.
Expand Down
4 changes: 1 addition & 3 deletions src/Models/Components/Actor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class Actor
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/ActorTokenActor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class ActorTokenActor
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/Claims.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class Claims
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/ClerkErrorsMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class ClerkErrorsMeta
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/ExternalAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class ExternalAccount
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/ExternalAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class ExternalAccounts
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/InvitationPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class InvitationPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/InvitationRevokedPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class InvitationRevokedPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class Meta
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationInvitationPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationInvitationPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationMembershipOrganizationPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationMembershipOrganizationPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** OrganizationMembershipPrivateMetadata - Metadata saved on the organization membership, accessible only from the Backend API */
class OrganizationMembershipPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** OrganizationMembershipPublicMetadata - Metadata saved on the organization membership, accessible from both Frontend and Backend APIs */
class OrganizationMembershipPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/OrganizationPrivateMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/OrganizationPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationWithLogoPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/OrganizationWithLogoPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class OrganizationWithLogoPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/PrivateMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class PrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/PublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class PublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/SAMLAccountPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class SAMLAccountPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/SignUpPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class SignUpPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/SignUpUnsafeMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class SignUpUnsafeMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/UnsafeMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class UnsafeMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Components/Verifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@

class Verifications
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Operations/Actor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@
*/
class Actor
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Operations/Claims.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** Claims - JWT template claims in JSON format */
class Claims
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Operations/CreateInvitationPublicMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@
*/
class CreateInvitationPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** CreateOrganizationInvitationBulkPrivateMetadata - Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. */
class CreateOrganizationInvitationBulkPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** CreateOrganizationInvitationBulkPublicMetadata - Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. */
class CreateOrganizationInvitationBulkPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** CreateOrganizationInvitationPrivateMetadata - Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. */
class CreateOrganizationInvitationPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** CreateOrganizationInvitationPublicMetadata - Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. */
class CreateOrganizationInvitationPublicMetadata
{
public function __construct()
{
}
public function __construct() {}
}
4 changes: 1 addition & 3 deletions src/Models/Operations/CreateOrganizationPrivateMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
/** CreateOrganizationPrivateMetadata - Metadata saved on the organization, accessible only from the Backend API */
class CreateOrganizationPrivateMetadata
{
public function __construct()
{
}
public function __construct() {}
}
Loading

0 comments on commit 3e1609a

Please sign in to comment.