me@vps:/var/www/sites/all# drush en htmLawed
The following extensions will be enabled: htmLawed
Do you really want to continue? (y/n): y
PHP Fatal error:  'break' not in the 'loop' or 'switch' context in /var/www/sites/all/modules/htmLawed/htmLawed.module on line 72
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                                                                                                                           [error]
Error: 'break' not in the 'loop' or 'switch' context in /var/www/sites/all/modules/htmLawed/htmLawed.module, line 72

Comments

ram4nd created an issue. See original summary.

ram4nd’s picture

Issue summary: View changes
alpha2zee’s picture

Assigned: Unassigned » alpha2zee
Status: Active » Closed (works as designed)

I do not see this issue. It might be similar to https://www.drupal.org/project/htmlawed/issues/3168857.

ram4nd’s picture

Status: Closed (works as designed) » Active

This still is an issue, what does the break; in if condition suppose to do? If it it suppose to end the function then return; is right. If it's suppose to be a blank if statement, then the question is why an if statement?

alpha2zee’s picture

In module version 7.x-3.8, there is only one use of 'break' -- in the htmlawed.module file (function htmLawed_help) and within switch/case. May be you are looking at an older version of the module code.

alpha2zee’s picture

Status: Active » Closed (works as designed)