Skip to content
Snippets Groups Projects
Commit 8eda4f54 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5954: coding standards

parent eca4a774
No related branches found
No related tags found
1 merge request!358ISTWCMS-5954: add fieldable path
......@@ -748,7 +748,7 @@ function uw_cfg_common_update_9108(&$sandbox) {
// The or condition for the query.
$group = $query->orConditionGroup();
// The number of nodes per batch
// The number of nodes per batch.
$nodes_per_batch = 50;
// Get the content types to batch.
......@@ -843,7 +843,13 @@ function uw_cfg_common_update_9108(&$sandbox) {
$sandbox['processed'] += count($nids);
// Set the message to display.
$message = t('Processing nodes of - @p/@t.', ['@p' => $sandbox['processed'], '@t' => $sandbox['total']]);
$message = t(
'Processing nodes of - @p/@t.',
[
'@p' => $sandbox['processed'],
'@t' => $sandbox['total']
]
);
// If we are done, then complete the batching.
if ($sandbox['processed'] >= $sandbox['total']) {
......@@ -853,7 +859,7 @@ function uw_cfg_common_update_9108(&$sandbox) {
}
// Update the finished, when done processed / total will be 1.
$sandbox['#finished'] = ($sandbox['processed'] / $sandbox['total']);
$sandbox['#finished'] = ($sandbox['processed'] / $sandbox['total']);
return $message;
}
......@@ -903,7 +909,7 @@ function _uw_set_fieldable_path_storage_config() {
// Get the path to cfg common config install directory.
$path = \Drupal::service('extension.list.module')
->getPath('uw_cfg_common') . '/config/install/';
->getPath('uw_cfg_common') . '/config/install/';
$config_dir = new FileStorage($path);
// Get the config from the yml file into an array.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment