Skip to content

Commit 361bf17

Browse files
Adding more trailing commas
1 parent 3e978e4 commit 361bf17

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/TestCase/Model/Behavior/UploadBehaviorTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ public function testBeforeMarshalDataAsArray()
284284
->will($this->returnValue($this->settings));
285285

286286
$data = new ArrayObject(
287-
$this->transformUploadedFilesToArray($this->dataOk)
287+
$this->transformUploadedFilesToArray($this->dataOk),
288288
);
289289
$behavior->beforeMarshal(new Event('fake.event'), $data, new ArrayObject());
290290
$this->assertEquals(new ArrayObject($this->transformUploadedFilesToArray($this->dataOk)), $data);
291291

292292
$data = new ArrayObject(
293-
$this->transformUploadedFilesToArray($this->dataError)
293+
$this->transformUploadedFilesToArray($this->dataError),
294294
);
295295
$behavior->beforeMarshal(new Event('fake.event'), $data, new ArrayObject());
296296
$this->assertEquals(new ArrayObject([]), $data);
@@ -720,7 +720,7 @@ public function testConstructFiles()
720720
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK, 'file.txt'),
721721
'field',
722722
[],
723-
['basepath' => 'path', 'filename' => 'file.txt']
723+
['basepath' => 'path', 'filename' => 'file.txt'],
724724
);
725725
$this->assertEquals(['php://temp' => 'path/file.txt'], $files);
726726

@@ -729,7 +729,7 @@ public function testConstructFiles()
729729
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK, 'file.txt'),
730730
'field',
731731
[],
732-
['basepath' => 'some/path', 'filename' => 'file.txt']
732+
['basepath' => 'some/path', 'filename' => 'file.txt'],
733733
);
734734
$this->assertEquals(['php://temp' => 'some/path/file.txt'], $files);
735735
}
@@ -741,7 +741,7 @@ public function testConstructFilesWithBasePathEndingDS()
741741
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK, 'file.txt'),
742742
'field',
743743
[],
744-
['basepath' => 'path/', 'filename' => 'file.txt']
744+
['basepath' => 'path/', 'filename' => 'file.txt'],
745745
);
746746
$this->assertEquals(['php://temp' => 'path/file.txt'], $files);
747747

@@ -750,7 +750,7 @@ public function testConstructFilesWithBasePathEndingDS()
750750
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK, 'file.txt'),
751751
'field',
752752
[],
753-
['basepath' => 'some/path/', 'filename' => 'file.txt']
753+
['basepath' => 'some/path/', 'filename' => 'file.txt'],
754754
);
755755
$this->assertEquals(['php://temp' => 'some/path/file.txt'], $files);
756756
}
@@ -765,7 +765,7 @@ public function testConstructFilesWithCallable()
765765
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK, 'file.txt'),
766766
'field',
767767
['transformer' => $callable],
768-
['basepath' => 'some/path', 'filename' => 'file.txt']
768+
['basepath' => 'some/path', 'filename' => 'file.txt'],
769769
);
770770
$this->assertEquals(['php://temp' => 'some/path/file.text'], $files);
771771
}
@@ -780,7 +780,7 @@ public function testConstructFilesWithCallableAndBasePathEndingDS()
780780
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK),
781781
'field',
782782
['transformer' => $callable],
783-
['basepath' => 'some/path', 'filename' => 'file.txt']
783+
['basepath' => 'some/path', 'filename' => 'file.txt'],
784784
);
785785
$this->assertEquals(['php://temp' => 'some/path/file.text'], $files);
786786
}
@@ -793,7 +793,7 @@ public function testConstructFilesException()
793793
new UploadedFile(fopen('php://temp', 'rw+'), 1, UPLOAD_ERR_OK, 'file.txt'),
794794
'field',
795795
['transformer' => 'UnexpectedValueException'],
796-
['basepath' => 'path', 'filename' => 'file.txt']
796+
['basepath' => 'path', 'filename' => 'file.txt'],
797797
);
798798
}
799799

@@ -841,7 +841,7 @@ function (UploadedFileInterface $file) {
841841
'size' => $file->getSize(),
842842
];
843843
},
844-
$data
844+
$data,
845845
);
846846
}
847847
}

0 commit comments

Comments
 (0)