Skip to content

Commit bc0a1cf

Browse files
committed
fix: lint codebase
1 parent c769872 commit bc0a1cf

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

ableplayer_extend.libraries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ ableplayer_extend.transcript_position:
77
dependencies:
88
- core/drupal
99
- core/jquery
10-
- core/once
10+
- core/once

ableplayer_extend.module

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function ableplayer_extend_help($route_name, RouteMatchInterface $route_match) {
2626

2727
/**
2828
* Implements hook_field_formatter_third_party_settings_form().
29-
* Provides additional two config options for Ableplayer
29+
*
30+
* Provides additional two config options for Ableplayer.
3031
*/
3132
function ableplayer_extend_field_formatter_third_party_settings_form($plugin, $field_definition, $view_mode, $form, $form_state) {
3233

@@ -63,7 +64,8 @@ function ableplayer_extend_field_formatter_third_party_settings_form($plugin, $f
6364

6465
/**
6566
* Implements hook_preprocess_field().
66-
* Setups the javascript to enable Ableplayer related functions
67+
*
68+
* Setups the javascript to enable Ableplayer related functions.
6769
*/
6870
function ableplayer_extend_preprocess_field(&$variables) {
6971

@@ -83,7 +85,7 @@ function ableplayer_extend_preprocess_field(&$variables) {
8385
if (isset($field_display['third_party_settings']['ableplayer_extend'])) {
8486
$display_ableplayer_transcript_audio = $field_display['third_party_settings']['ableplayer_extend']['display_ableplayer_transcript_audio'];
8587
$show_timestamp_audio = $field_display['third_party_settings']['ableplayer_extend']['show_timestamp_audio'];
86-
88+
8789
$variables['#attached']['drupalSettings']['display_ableplayer_transcript'] = $display_ableplayer_transcript_audio;
8890
$variables['#attached']['drupalSettings']['show_timestamp'] = $show_timestamp_audio;
8991
}
@@ -102,10 +104,10 @@ function ableplayer_extend_preprocess_field(&$variables) {
102104

103105
// Make the setting available in the field template.
104106
if (isset($field_display['third_party_settings']['ableplayer_extend'])) {
105-
$display_ableplayer_transcript_video = $field_display['third_party_settings']['ableplayer_extend']['display_ableplayer_transcript_video'];
106-
$show_timestamp_video = $field_display['third_party_settings']['ableplayer_extend']['show_timestamp_video'];
107-
$variables['#attached']['drupalSettings']['display_ableplayer_transcript'] = $display_ableplayer_transcript_video;
108-
$variables['#attached']['drupalSettings']['show_timestamp'] = $show_timestamp_video;
107+
$display_ableplayer_transcript_video = $field_display['third_party_settings']['ableplayer_extend']['display_ableplayer_transcript_video'];
108+
$show_timestamp_video = $field_display['third_party_settings']['ableplayer_extend']['show_timestamp_video'];
109+
$variables['#attached']['drupalSettings']['display_ableplayer_transcript'] = $display_ableplayer_transcript_video;
110+
$variables['#attached']['drupalSettings']['show_timestamp'] = $show_timestamp_video;
109111
}
110112
$variables['#attached']['library'][] = 'ableplayer_extend/ableplayer_extend.transcript_position';
111113
}

0 commit comments

Comments
 (0)