Skip to content

Commit 12f99aa

Browse files
committed
style: apply fixes from ECS
1 parent d98e4f6 commit 12f99aa

File tree

8 files changed

+17
-14
lines changed

8 files changed

+17
-14
lines changed

src/Enums/ExportResponseStatus.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
final class ExportResponseStatus extends Enum
1212
{
1313
public const SUCCESS = 'success';
14+
1415
public const ERROR = 'error';
1516
}

src/Enums/ExportStatus.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
final class ExportStatus extends Enum
88
{
99
public const AWAITING = 'awaiting';
10+
1011
public const COMPLETED = 'completed';
1112
}

src/Generator/CsvDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function generate(ProcessorData $processorData): GeneratorFile
2525
Carbon::now()->format('Y-m-d'),
2626
Str::random(40)
2727
);
28+
2829
return $this->saveToStorage($filename, $csv, $processorData);
2930
}
3031

src/Processor/ProcessorRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function get(string $processor): ProcessorDriver
2222
{
2323
if (! isset($this->processors[$processor])) {
2424
throw new InvalidProcessorException(
25-
sprintf("The processor [%s] is not registered!", $processor)
25+
sprintf('The processor [%s] is not registered!', $processor)
2626
);
2727
}
2828

src/Services/CreateExport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function run(): Export
3838
'dateTo' => $dateTo,
3939
'dateFrom' => $dateFrom,
4040
]
41-
)
41+
),
4242
]);
4343
}
4444
}

tests/Fake/FakeProcessorWithOptionalDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function optional($item): array
3030
{
3131
return [
3232
['Compliance UK' => 'applies'],
33-
['Compliance US' => 'none']
33+
['Compliance US' => 'none'],
3434
];
3535
}
3636
}

tests/Feature/Processor/EloquentProcessorTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,18 @@
7474
}
7575

7676
expect($data[0])->toBe([
77-
"User ID" => "1",
78-
"name" => "User One",
79-
"Is Admin" => "1",
80-
"Compliance UK" => "applies",
81-
"Compliance US" => "none"
77+
'User ID' => '1',
78+
'name' => 'User One',
79+
'Is Admin' => '1',
80+
'Compliance UK' => 'applies',
81+
'Compliance US' => 'none',
8282
]);
8383

8484
expect($data[1])->toBe([
85-
"User ID" => "2",
86-
"name" => "User Two",
87-
"Is Admin" => "0",
88-
"Compliance UK" => "applies",
89-
"Compliance US" => "none"
85+
'User ID' => '2',
86+
'name' => 'User Two',
87+
'Is Admin' => '0',
88+
'Compliance UK' => 'applies',
89+
'Compliance US' => 'none',
9090
]);
9191
});

tests/Feature/Processor/ProcessorDataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
it('can retrieve the data', function () {
88
$processorData = new ProcessorData([
9-
'foo' => 'Bar'
9+
'foo' => 'Bar',
1010
], 'randomstuff');
1111

1212
expect($processorData->getData())->toBe([

0 commit comments

Comments
 (0)