Skip to content

Commit

Permalink
DGIR-48 : Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-bd committed Dec 8, 2023
1 parent a6808eb commit 8e29258
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion islandora_entity_status.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use Drupal\media\MediaInterface;
use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface;
use Twig\Markup;
use \Drupal\Core\Routing\TrustedRedirectResponse;

/**
* Implements hook_ENTITY_TYPE_presave().
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/BulkStatusCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function findUpdateRelatedNodes($nodes, $status) {

// Loop through each provided node ID.
foreach ($nodeIds as $nodeId) {
$this->logger()->success(t('Node %node processed and status set to %status.',
$this->logger()->success($this->t('Node %node processed and status set to %status.',
['%node' => $nodeId, '%status' => $status]));
$this->updateRelatedNodes($nodeId, $status);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Form/NodeEditConfirmForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getQuestion() {
*/
public function getCancelUrl() {
// Retrieve data from temporary storage.
$data = $this->tempStore->get('node_edit_data');;
$data = $this->tempStore->get('node_edit_data');
$currentNodeId = $data['node_id'];
return Url::fromRoute('entity.node.edit_form', ['node' => $currentNodeId]);
}
Expand All @@ -80,7 +80,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);

// Retrieve data from temporary storage.
$nodeEditData = $this->tempStore->get('node_edit_data');;
$nodeEditData = $this->tempStore->get('node_edit_data');

if (!$nodeEditData['node_id']) {
$form_state->setRedirect(
Expand All @@ -103,7 +103,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Trigger node save with data from session.
$data = $this->tempStore->get('node_edit_data');;
$data = $this->tempStore->get('node_edit_data');

if (!empty($data) && is_array($data)) {
// Load the node.
Expand Down

0 comments on commit 8e29258

Please sign in to comment.