phpcbf: Missing new line between CSS rules and no space before !important

Created on 8 November 2015, over 9 years ago
Updated 24 May 2025, 11 days ago

Testing command: phpcbf --standard=Drupal .

The following line:

         .calculator-footer li span.return {float:left!important;width:100%!important;text-align:center!important;padding:0 0 20px 0;margin:0px;color:#FFF;font-size:80%!important;}

is changed into:

.calculator-footer li span.return {
  float: left!important;
  width: 100%!important;
  text-align: center!important;
  padding: 0 0 20px 0;
  margin: 0px;
  color: #fff;font-size:80%!important;
}

Which seems there is missing new line between color and font-size, as there is semi-colon there.

Also it's worth to add space before !important?

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Coder Review

Created by

🇬🇧United Kingdom kenorb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024