Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpoulter committed Oct 13, 2024
1 parent 6aacf30 commit eb96ba0
Show file tree
Hide file tree
Showing 165 changed files with 166 additions and 327 deletions.
3 changes: 1 addition & 2 deletions src/Common/BaseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ abstract class BaseResource
{
public function __construct(
protected VendConnector $connector,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace SimpleSquid\Vend\Common\Exceptions;

class AuthenticationDetailsMissingException extends VendException
{
}
class AuthenticationDetailsMissingException extends VendException {}
4 changes: 1 addition & 3 deletions src/Common/Exceptions/DomainPrefixMissingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace SimpleSquid\Vend\Common\Exceptions;

class DomainPrefixMissingException extends VendException
{
}
class DomainPrefixMissingException extends VendException {}
4 changes: 1 addition & 3 deletions src/Common/Exceptions/VendException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class VendException extends Exception
{
}
class VendException extends Exception {}
4 changes: 1 addition & 3 deletions src/Common/Responses/VendResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Saloon\Http\Response;

class VendResponse extends Response
{
}
class VendResponse extends Response {}
3 changes: 1 addition & 2 deletions src/ThreeZero/Requests/PriceBooks/CreatePriceBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function resolveEndpoint(): string
*/
public function __construct(
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/ThreeZero/Requests/PriceBooks/GetPriceBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $priceBookId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/ThreeZero/Requests/PriceBooks/ListPriceBooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function __construct(
protected ?string $direction = null,
protected ?bool $deleted = null,
protected ?string $customerGroupId = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/ThreeZero/Requests/PriceBooks/UpdatePriceBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $priceBookId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/ThreeZeroBeta/Requests/Products/GetProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $productId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/ThreeZeroBeta/Requests/Products/ListProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
protected ?int $sinceVersion = null,
protected ?int $pageSize = null,
protected ?bool $includeDeleted = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/TwoOneBeta/Requests/Products/CreateSingleVariant.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function resolveEndpoint(): string
*/
public function __construct(
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoOneBeta/Requests/Products/UpdateProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $productId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Brands/CreateBrand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function resolveEndpoint(): string
*/
public function __construct(
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Brands/DeleteBrand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $brandId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Brands/GetBrand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $brandId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Brands/ListBrands.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
protected ?int $after = null,
protected ?int $before = null,
protected ?int $pageSize = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Brands/UpdateBrand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $brandId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/ChannelRequestLog/GetRequestLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $requestLogId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/ChannelRequestLog/GetRequestLogText.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $requestLogId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/ChannelRequestLog/ListRequestLogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct(
protected ?string $statusCodeBefore = null,
protected ?string $statusCodeAfter = null,
protected ?string $channelId = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $consignmentId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $consignmentId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ public function resolveEndpoint(): string
public function __construct(
protected string $consignmentId,
protected string $productId,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
protected ?int $after = null,
protected ?int $before = null,
protected ?int $pageSize = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public function __construct(
protected string $consignmentId,
protected string $productId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Consignments/CreateConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function resolveEndpoint(): string
*/
public function __construct(
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Consignments/DeleteConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $consignmentId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Consignments/GetConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $consignmentId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Consignments/GetConsignmentTotals.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $consignmentId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Consignments/ListConsignments.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
protected ?int $after = null,
protected ?int $before = null,
protected ?int $pageSize = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Consignments/UpdateConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $consignmentId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $customerGroupId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/CustomerGroups/CreateCustomerGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function resolveEndpoint(): string
*/
public function __construct(
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/CustomerGroups/DeleteCustomerGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $customerGroupId,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $customerGroupId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/CustomerGroups/GetCustomerGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $customerGroupId,
) {
}
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
protected ?int $after = null,
protected ?int $before = null,
protected ?int $pageSize = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/CustomerGroups/ListCustomerGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
protected ?int $before = null,
protected ?int $pageSize = null,
protected ?bool $deleted = null,
) {
}
) {}

public function defaultQuery(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/CustomerGroups/UpdateCustomerGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function resolveEndpoint(): string
public function __construct(
protected string $customerGroupId,
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Customers/CreateCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function resolveEndpoint(): string
*/
public function __construct(
protected array $payload = [],
) {
}
) {}

/**
* @return array<string, mixed>
Expand Down
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Customers/DeleteCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $customerId,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/TwoZero/Requests/Customers/GetCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ public function resolveEndpoint(): string

public function __construct(
protected string $customerId,
) {
}
) {}
}
Loading

0 comments on commit eb96ba0

Please sign in to comment.