Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions formats/incoming/SRF_Incoming.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,24 @@
$result = implode( $this->params['sep'], array_keys( $data ) );
}

// Beautify class selector
$class = $this->params['template'] ? 'srf-incoming ' . str_replace(
if ( $this->params['template'] ) {

Check warning on line 144 in formats/incoming/SRF_Incoming.php

View check run for this annotation

Codecov / codecov/patch

formats/incoming/SRF_Incoming.php#L144

Added line #L144 was not covered by tests
// Beautify class selector
$class = 'srf-incoming ' . str_replace(

Check warning on line 146 in formats/incoming/SRF_Incoming.php

View check run for this annotation

Codecov / codecov/patch

formats/incoming/SRF_Incoming.php#L146

Added line #L146 was not covered by tests
" ",
"-",
$this->params['template']
) : 'srf-incoming';

// Output
return Html::rawElement(
'div',
[ 'class' => $class ],
$result
);
);

Check warning on line 150 in formats/incoming/SRF_Incoming.php

View check run for this annotation

Codecov / codecov/patch

formats/incoming/SRF_Incoming.php#L150

Added line #L150 was not covered by tests

// Output
return Html::rawElement(
'div',
[ 'class' => $class ],
$result
);

Check warning on line 157 in formats/incoming/SRF_Incoming.php

View check run for this annotation

Codecov / codecov/patch

formats/incoming/SRF_Incoming.php#L153-L157

Added lines #L153 - L157 were not covered by tests
} else {
// Output without template
return $result;

Check warning on line 160 in formats/incoming/SRF_Incoming.php

View check run for this annotation

Codecov / codecov/patch

formats/incoming/SRF_Incoming.php#L160

Added line #L160 was not covered by tests
}
}

/**
Expand Down