Skip to content
Snippets Groups Projects
Commit 2c23bd24 authored by Owen Bush's avatar Owen Bush
Browse files

Address two coding standards issues caused by recent patches

parent e053f4e7
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ class RegistrantForm extends ContentEntityForm {
'#type' => 'markup',
'#prefix' => '<span class="registration-availability">',
'#markup' => $this->t('Spaces Available: @availability', [
'@availability' => ($availability == -1) ? $this->t('Unlimited') : $availability
'@availability' => ($availability == -1) ? $this->t('Unlimited') : $availability,
]),
'#suffix' => '</span>',
'#weight' => -99,
......
......@@ -155,7 +155,7 @@ class EventInstanceDateFormatter extends EntityReferenceFormatterBase {
$elements[$delta]['#cache']['tags'] = $entity->getCacheTags();
}
usort($elements, function($a, $b) {
usort($elements, function ($a, $b) {
$a_date = $a['#options']['entity']->date->start_date->getTimestamp();
$b_date = $b['#options']['entity']->date->start_date->getTimestamp();
if ($a_date == $b_date) {
......
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