Skip to content

Commit

Permalink
refs vufind-org#2999 fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
RLangeUni committed Apr 19, 2024
1 parent 07af7fa commit 60de01a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/VuFind/src/VuFind/View/Helper/Root/Record.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public function getCheckbox($idPrefix = '', $formAttr = false, $number = null)
$context = compact('number') + [
'id' => $this->getUniqueIdWithSourcePrefix(),
'checkboxElementId' => $this->getUniqueHtmlElementId($idPrefix),
'prefix' => $idPrefix
'prefix' => $idPrefix,
];
if ($formAttr) {
$context['formAttr'] = $formAttr;
Expand Down Expand Up @@ -720,11 +720,11 @@ protected function deduplicateLinks($links)
*
* @return string
*/
public function getUniqueHtmlElementId($idPrefix = "")
public function getUniqueHtmlElementId($idPrefix = '')
{
return preg_replace(
"/\s+/",
"_",
'_',
($idPrefix ? $idPrefix . '-' : '') . $this->getUniqueIdWithSourcePrefix()
);
}
Expand All @@ -740,6 +740,6 @@ public function getUniqueIdWithSourcePrefix()
return "{$this->driver->tryMethod('getSourceIdentifier')}"
. "|{$this->driver->tryMethod('getUniqueId')}";
}
throw new \Exception("No record driver found.");
throw new \Exception('No record driver found.');
}
}

0 comments on commit 60de01a

Please sign in to comment.