You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
window.axios.interceptors.response.use(
response => {
// Do nothing
return response
},
error => {
var error_msg
if (error.response && error.response.status == 422) {
// cut
}
}
)
there's two issues:
It complains about indentation of the comment line to be 8 instead of expected 4 spaces. phpdbf can fix it this way, but obviously it's not what should happen.
It complains about the same regarding var error_msg line, but this case is different, phpdbf is not able to fix it. Also note that it does not complain about indentation of the if statement below.
Used phpcs 3.5.3. PHP 7.4. Rules: PSR1 + PSR12.
The text was updated successfully, but these errors were encountered:
PHP_CodeSniffer does not support modern JS syntax. All JS functionality will be removed in version 4 and no bugs will be fixed in version 3. I strongly suggest switching to a dedicated JS linting tool like eslint.
For following javascript code:
there's two issues:
var error_msg
line, but this case is different, phpdbf is not able to fix it. Also note that it does not complain about indentation of the if statement below.Used phpcs 3.5.3. PHP 7.4. Rules: PSR1 + PSR12.
The text was updated successfully, but these errors were encountered: