Skip to content

Commit 1cdb190

Browse files
committed
remove IGNORE_ENV_TRUE parameter for cs-fixer
1 parent d32cc33 commit 1cdb190

File tree

9 files changed

+13
-19
lines changed

9 files changed

+13
-19
lines changed

.github/workflows/quality.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
run: |
1313
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
1414
chmod a+x php-cs-fixer
15-
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
15+
./php-cs-fixer fix src --dry-run
1616
1717
phpstan:
1818
runs-on: ubuntu-latest

src/CategoryLookup.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ public function __construct(
2020
private string $cacheKey,
2121
private CompiledMapperInterface $mapper,
2222
private string $mappingField,
23-
) {
24-
}
23+
) {}
2524

2625
public function transform(): \Generator
2726
{

src/CustomerExtractor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function __construct(
2323
private readonly int $pageSize = 100,
2424
/** @var FilterGroup[] $filters */
2525
private readonly array $filters = [],
26-
) {
27-
}
26+
) {}
2827

2928
private function compileQueryParameters(int $currentPage = 1): array
3029
{

src/Filter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ public function __construct(
1010
public string $field,
1111
public string $conditionType,
1212
public mixed $value,
13-
) {
14-
}
13+
) {}
1514
}

src/FilterGroup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function withFilters(Filter ...$filters): self
5050
private function sliceLongFilter(string $value): iterable
5151
{
5252
$iterator = new \ArrayIterator(explode(',', $value));
53-
while($this->offset < iterator_count($iterator)) {
54-
$filteredValue = array_slice(iterator_to_array($iterator), $this->offset, $this->lenght);
53+
while ($this->offset < iterator_count($iterator)) {
54+
$filteredValue = \array_slice(iterator_to_array($iterator), $this->offset, $this->lenght);
5555
$this->offset += $this->lenght;
5656
yield $filteredValue;
5757
}

src/InvoiceExtractor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function __construct(
2323
private readonly int $pageSize = 100,
2424
/** @var FilterGroup[] $filters */
2525
private readonly array $filters = [],
26-
) {
27-
}
26+
) {}
2827

2928
private function compileQueryParameters(int $currentPage = 1): array
3029
{

src/Lookup.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
namespace Kiboko\Component\Flow\Magento2;
66

77
use Kiboko\Component\Bucket\AcceptanceResultBucket;
8-
use Kiboko\Component\Bucket\RejectionResultBucket;
98
use Kiboko\Component\Bucket\EmptyResultBucket;
9+
use Kiboko\Component\Bucket\RejectionResultBucket;
1010
use Kiboko\Contract\Mapping\CompiledMapperInterface;
1111
use Kiboko\Contract\Pipeline\TransformerInterface;
1212
use Psr\SimpleCache\CacheInterface;
@@ -21,8 +21,7 @@ public function __construct(
2121
private CompiledMapperInterface $mapper,
2222
private string $mappingField,
2323
private string $attributeCode,
24-
) {
25-
}
24+
) {}
2625

2726
public function transform(): \Generator
2827
{

src/OrderExtractor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function __construct(
2323
private readonly int $pageSize = 100,
2424
/** @var FilterGroup[] $filters */
2525
private readonly array $filters = [],
26-
) {
27-
}
26+
) {}
2827

2928
private function compileQueryParameters(int $currentPage = 1): array
3029
{
@@ -69,6 +68,7 @@ private function generateFinalQueryParameters(array $queryParameters, array $que
6968
} else {
7069
$finalQueryParameters[] = $queryParameters;
7170
}
71+
7272
return $finalQueryParameters;
7373
}
7474

@@ -79,7 +79,7 @@ public function extract(): iterable
7979
$queryLongParameters = $this->compileQueryLongParameters();
8080
$finalQueryParameters = $this->generateFinalQueryParameters($queryParameters, $queryLongParameters);
8181

82-
foreach($finalQueryParameters as $finalQueryParameter) {
82+
foreach ($finalQueryParameters as $finalQueryParameter) {
8383
$response = $this->client->salesOrderRepositoryV1GetListGet(
8484
queryParameters: $finalQueryParameter,
8585
);

src/ProductExtractor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ public function __construct(
2323
private readonly int $pageSize = 100,
2424
/** @var FilterGroup[] $filters */
2525
private readonly array $filters = [],
26-
) {
27-
}
26+
) {}
2827

2928
private function compileQueryParameters(int $currentPage = 1): array
3029
{

0 commit comments

Comments
 (0)