Skip to content

Commit 3e978e4

Browse files
Adding more trailing commas
1 parent 1605c35 commit 3e978e4

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/File/Transformer/TransformerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(
2323
EntityInterface $entity,
2424
UploadedFileInterface $data,
2525
string $field,
26-
array $settings
26+
array $settings,
2727
);
2828

2929
/**

src/Model/Behavior/UploadBehavior.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function getPathProcessor(
206206
EntityInterface $entity,
207207
string|UploadedFileInterface $data,
208208
string $field,
209-
array $settings
209+
array $settings,
210210
): ProcessorInterface {
211211
/** @var class-string<\Josegonzalez\Upload\File\Path\ProcessorInterface> $processorClass */
212212
$processorClass = Hash::get($settings, 'pathProcessor', DefaultProcessor::class);
@@ -227,7 +227,7 @@ public function getWriter(
227227
EntityInterface $entity,
228228
?UploadedFileInterface $data,
229229
string $field,
230-
array $settings
230+
array $settings,
231231
): WriterInterface {
232232
/** @var class-string<\Josegonzalez\Upload\File\Writer\WriterInterface> $writerClass */
233233
$writerClass = Hash::get($settings, 'writer', DefaultWriter::class);
@@ -262,7 +262,7 @@ public function constructFiles(
262262
UploadedFileInterface $data,
263263
string $field,
264264
array $settings,
265-
array $pathinfo
265+
array $pathinfo,
266266
): array {
267267
$basepath = $pathinfo['basepath'];
268268
$filename = $pathinfo['filename'];
@@ -284,7 +284,7 @@ public function constructFiles(
284284
} else {
285285
throw new UnexpectedValueException(sprintf(
286286
"'transformer' not set to instance of TransformerInterface: %s",
287-
$transformerClass
287+
$transformerClass,
288288
));
289289
}
290290

tests/Stub/ChildBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function constructFiles(
1616
UploadedFileInterface $data,
1717
string $field,
1818
array $settings,
19-
array $pathinfo
19+
array $pathinfo,
2020
): array {
2121
$files = parent::constructFiles($entity, $data, $field, $settings, $pathinfo);
2222
$this->constructedFiles = $files;

tests/TestCase/File/Transformer/DefaultTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testTransform()
2929
{
3030
$this->assertEquals(
3131
[$this->uploadedFile->getStream()->getMetadata('uri') => 'foo.txt'],
32-
$this->transformer->transform('foo.txt')
32+
$this->transformer->transform('foo.txt'),
3333
);
3434
}
3535
}

tests/TestCase/File/Writer/DefaultWriterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function setUp(): void
4040
$this->entity,
4141
$this->data,
4242
$this->field,
43-
$this->settings
43+
$this->settings,
4444
);
4545

4646
$this->vfs = Vfs::setup('tmp');

tests/TestCase/Model/Behavior/UploadBehaviorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function setUp(): void
3030
1,
3131
UPLOAD_ERR_OK,
3232
'derp',
33-
'text/plain'
33+
'text/plain',
3434
),
3535
];
3636

@@ -45,7 +45,7 @@ public function setUp(): void
4545
fopen('php://temp', 'wb+'),
4646
0,
4747
UPLOAD_ERR_NO_FILE,
48-
'derp'
48+
'derp',
4949
),
5050
];
5151
$this->configError = [

0 commit comments

Comments
 (0)