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.
I've run the following command:
phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md *.*
on PCA module (dev).
Original code (postcodeanywhere.js):
// Add loading spinner div to end of PCA.
$('#postcodeloading')
.hide() // hide it initially
.ajaxStart(function() {
$(this).show();
})
.ajaxStop(function() {
$(this).hide();
});
Corrected code:
// Add loading spinner div to end of PCA.
$('#postcodeloading')
.hide()
// Hide it initially.
.ajaxStart(function() {
$(this).show();
})
.ajaxStop(function() {
$(this).hide();
});
The comment doesn't seems to be in the same column as previous line which it relates to.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2015-11-01 at 22.15.09.png | 42.54 KB | kenorb |
Comments
Comment #3
klausiJavascript support has been removed from Coder. To check and fix Javascript files please use ESLint /PostStatementCommentSniffand see the Drupal ESLint documentation.
I have also disabled the PostStatementCommentSniff for JS files.