Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / migrate / tests / src / Unit / MigrateTestCase.php
index 19db21a6ff04c068ea4ef8294eb47551f1bbfa54..20d7662d2901b9ba6ba1d32e1415dbbd9c54489f 100644 (file)
@@ -61,12 +61,12 @@ abstract class MigrateTestCase extends UnitTestCase {
     // 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;
       });
 
@@ -147,7 +147,9 @@ abstract class MigrateTestCase extends UnitTestCase {
   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];
   }