Skip to content

Commit

Permalink
delete ignore env from cs fixer github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Jan 9, 2024
1 parent 5158d02 commit b0a02a8
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
./php-cs-fixer fix src --dry-run
phpstan:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion src/Client/AccessDeniedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class AccessDeniedException extends \RuntimeException {}
final class AccessDeniedException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/Client/ApiRateExceededException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class ApiRateExceededException extends \RuntimeException {}
final class ApiRateExceededException extends \RuntimeException
{
}
3 changes: 2 additions & 1 deletion src/Client/AuthenticationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public function __construct(
private readonly string $clientSecret,
private string $accessToken,
private readonly string $refreshToken,
) {}
) {
}

public function sendRequest(RequestInterface $request): ResponseInterface
{
Expand Down
3 changes: 2 additions & 1 deletion src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public function __construct(
private readonly RequestFactoryInterface $requestFactory,
private readonly UriFactoryInterface $uriFactory,
private readonly StreamFactoryInterface $streamFactory,
) {}
) {
}

/**
* @throws ClientExceptionInterface
Expand Down
4 changes: 3 additions & 1 deletion src/Client/ForbiddenException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class ForbiddenException extends \RuntimeException {}
final class ForbiddenException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/Client/InternalServerErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class InternalServerErrorException extends \RuntimeException {}
final class InternalServerErrorException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/Client/InvalidCodeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class InvalidCodeException extends \RuntimeException {}
final class InvalidCodeException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/Client/NoContentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class NoContentException extends \RuntimeException {}
final class NoContentException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/Client/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class NotFoundException extends \RuntimeException {}
final class NotFoundException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/Client/RequestEntityTooLargeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@

namespace Kiboko\Component\Flow\ZohoCRM\Client;

final class RequestEntityTooLargeException extends \RuntimeException {}
final class RequestEntityTooLargeException extends \RuntimeException
{
}
4 changes: 3 additions & 1 deletion src/ContactLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

final readonly class ContactLoader implements LoaderInterface
{
public function __construct(private Client $client, private \Psr\Log\LoggerInterface $logger) {}
public function __construct(private Client $client, private \Psr\Log\LoggerInterface $logger)

Check failure on line 19 in src/ContactLoader.php

View workflow job for this annotation

GitHub Actions / phpstan

Property Kiboko\Component\Flow\ZohoCRM\ContactLoader::$logger is never read, only written.
{
}

public function load(): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/ContactLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public function __construct(
private CacheInterface $cache,
private CompiledMapperInterface $mapper,
private string $mappingField,
) {}
) {
}

public function transform(): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/DealLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
public function __construct(
private Client $client,
private \Psr\Log\LoggerInterface $logger,

Check failure on line 21 in src/DealLoader.php

View workflow job for this annotation

GitHub Actions / phpstan

Property Kiboko\Component\Flow\ZohoCRM\DealLoader::$logger is never read, only written.
) {}
) {
}

public function load(): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/DealTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ final class DealTransformer implements TransformerInterface
{
public function __construct(
private string $orderItemsField,
) {}
) {
}

public function transform(): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/GetOrderLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public function __construct(
private CompiledMapperInterface $mapper,
private string $subjectMappingField,
private string $storeMappingField,
) {}
) {
}

public function transform(): \Generator
{
Expand Down
4 changes: 3 additions & 1 deletion src/OrderLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

final readonly class OrderLoader implements LoaderInterface
{
public function __construct(private Client $client, private \Psr\Log\LoggerInterface $logger) {}
public function __construct(private Client $client, private \Psr\Log\LoggerInterface $logger)
{
}

public function load(): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/OrderLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public function __construct(
private CompiledMapperInterface $mapper,
private string $subjectMappingField,
private string $storeMappingField,
) {}
) {
}

public function transform(): \Generator
{
Expand Down
4 changes: 3 additions & 1 deletion src/ProductLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

final readonly class ProductLoader implements LoaderInterface
{
public function __construct(private Client $client, private \Psr\Log\LoggerInterface $logger) {}
public function __construct(private Client $client, private \Psr\Log\LoggerInterface $logger)
{
}

public function load(): \Generator
{
Expand Down
3 changes: 2 additions & 1 deletion src/ProductLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public function __construct(
private string $mappingField,
private string $orderItemsField,
private string $propertyPath,
) {}
) {
}

public function transform(): \Generator
{
Expand Down

0 comments on commit b0a02a8

Please sign in to comment.