Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While skimming through the code for some other issue, I noticed a few indentation errors in src/Form/EditorImageDialog.php. Code has 1-space indent instead of 2-space indent. Following is the relevant code:
$form['attributes']['src'] = array(
'#title' => $this->t('URL'),
'#type' => 'textfield',
'#default_value' => isset($image_element['src']) ? $image_element['src'] : '',
'#maxlength' => 2048,
'#required' => TRUE,
);
CodeSniffer output:
--------------------------------------------------------------------------------
FOUND 5 ERROR(S) AFFECTING 5 LINE(S)
--------------------------------------------------------------------------------
78 | ERROR | Array indentation error, expected 6 spaces but found 5
79 | ERROR | Array indentation error, expected 6 spaces but found 5
80 | ERROR | Array indentation error, expected 6 spaces but found 5
81 | ERROR | Array indentation error, expected 6 spaces but found 5
82 | ERROR | Array indentation error, expected 6 spaces but found 5
--------------------------------------------------------------------------------
Patch Coming.
Comment | File | Size | Author |
---|---|---|---|
#1 | editor.module-2279217-1.patch | 918 bytes | cs_shadow |
Comments
Comment #1
cs_shadow CreditAttribution: cs_shadow commentedComment #2
Wim LeersThanks!
Comment #3
alexpottCommitted ab2df00 and pushed to 8.x. Thanks!
Comment #6
cs_shadow CreditAttribution: cs_shadow commentedSilly testbot, its already committed.