// on the test class and use a return callback.
$migration->expects($this->any())
->method('getStatus')
- ->willReturnCallback(function() {
+ ->willReturnCallback(function () {
return $this->migrationStatus;
});
$migration->expects($this->any())
->method('setStatus')
- ->willReturnCallback(function($status) {
+ ->willReturnCallback(function ($status) {
$this->migrationStatus = $status;
});
protected function createSchemaFromRow(array $row) {
// SQLite uses loose ("affinity") typing, so it is OK for every column to be
// a text field.
- $fields = array_map(function() { return ['type' => 'text']; }, $row);
+ $fields = array_map(function () {
+ return ['type' => 'text'];
+ }, $row);
return ['fields' => $fields];
}