summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/migrate')
-rw-r--r--core/modules/migrate/src/MigrateExecutable.php4
-rw-r--r--core/modules/migrate/src/Plugin/migrate/destination/Config.php2
-rw-r--r--core/modules/migrate/src/Plugin/migrate/source/SqlBase.php2
-rw-r--r--core/modules/migrate/tests/src/Functional/MigrateMessageFormTest.php2
-rw-r--r--core/modules/migrate/tests/src/Unit/MigrateSourceTest.php2
-rw-r--r--core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php2
6 files changed, 7 insertions, 7 deletions
diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php
index a087ae6875e..2cf3a322351 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -106,7 +106,7 @@ class MigrateExecutable implements MigrateExecutableInterface {
$this->message = $message ?: new MigrateMessage();
$this->getIdMap()->setMessage($this->message);
$this->eventDispatcher = $event_dispatcher;
- // Record the memory limit in bytes
+ // Record the memory limit in bytes.
$limit = trim(ini_get('memory_limit'));
if ($limit == '-1') {
$this->memoryLimit = PHP_INT_MAX;
@@ -557,7 +557,7 @@ class MigrateExecutable implements MigrateExecutableInterface {
$usage = $this->attemptMemoryReclaim();
$pct_memory = $usage / $this->memoryLimit;
// Use a lower threshold - we don't want to be in a situation where we
- // keep coming back here and trimming a tiny amount
+ // keep coming back here and trimming a tiny amount.
if ($pct_memory > (0.90 * $threshold)) {
$this->message->display(
$this->t(
diff --git a/core/modules/migrate/src/Plugin/migrate/destination/Config.php b/core/modules/migrate/src/Plugin/migrate/destination/Config.php
index c77de935a52..2e6c26a1684 100644
--- a/core/modules/migrate/src/Plugin/migrate/destination/Config.php
+++ b/core/modules/migrate/src/Plugin/migrate/destination/Config.php
@@ -234,7 +234,7 @@ class Config extends DestinationBase implements ContainerFactoryPluginInterface,
return 'config_translation';
}
// Get the module handling this configuration object from the config_name,
- // which is of the form <module_name>.<configuration object name>
+ // which is of the form "<module_name>.<configuration object name>".
return !empty($this->configuration['config_name']) ? explode('.', $this->configuration['config_name'], 2)[0] : NULL;
}
diff --git a/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php b/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
index 40dea1c7a2b..0aefdd99de2 100644
--- a/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
+++ b/core/modules/migrate/src/Plugin/migrate/source/SqlBase.php
@@ -424,7 +424,7 @@ abstract class SqlBase extends SourcePluginBase implements ContainerFactoryPlugi
}
// If we are tracking changes, we also need to retrieve all rows to compare
- // hashes
+ // hashes.
if ($this->trackChanges) {
return FALSE;
}
diff --git a/core/modules/migrate/tests/src/Functional/MigrateMessageFormTest.php b/core/modules/migrate/tests/src/Functional/MigrateMessageFormTest.php
index cfbcdf5b4df..22f6c4fbc46 100644
--- a/core/modules/migrate/tests/src/Functional/MigrateMessageFormTest.php
+++ b/core/modules/migrate/tests/src/Functional/MigrateMessageFormTest.php
@@ -45,7 +45,7 @@ class MigrateMessageFormTest extends MigrateMessageTestBase {
$this->assertEquals($expected_count, $count[$level], sprintf('Count for level %s failed', $level));
}
- // Reset the filter
+ // Reset the filter.
$this->submitForm([], 'Reset');
$messages = $this->getMessages();
$this->assertCount(4, $messages);
diff --git a/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php b/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
index e344e3e23e8..77e4cf64e64 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
@@ -426,7 +426,7 @@ class MigrateSourceTest extends MigrateTestCase {
$migration = $this->getMigration();
$source = new StubSourceGeneratorPlugin([], '', [], $migration);
- // Test the default value of the skipCount Value;
+ // Test the default value of the skipCount Value.
$this->assertTrue($source->getSkipCount());
$this->assertTrue($source->getCacheCounts());
$this->assertTrue($source->getTrackChanges());
diff --git a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php
index 1cabbebdde6..aefd45d0438 100644
--- a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php
+++ b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php
@@ -47,7 +47,7 @@ class EntityContentBaseTest extends EntityTestBase {
// Syncing should be set once.
$entity->setSyncing(Argument::exact(TRUE))
->shouldBeCalledTimes(1);
- // Set an id for the entity
+ // Set an id for the entity.
$entity->id()
->willReturn(5);
$destination->setEntity($entity->reveal());