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.
From https://www.drupal.org/coding-standards#linelength :
In general, all lines of code should not be longer than 80 characters.
Also note that PEAR and Google both use similar standards. The PEAR standards links to an article which explains some of the reasoning behind this. It may be helpful for people who do not understand why lines of code should not exceed 80 characters. http://paul-m-jones.com/archives/276
Comments
Comment #2
jmuzz CreditAttribution: jmuzz commentedThe Google C++ Style Guide also has several examples of ways to split long lines and increase code readability that can readily be applied to PHP. These examples start here and continue down to the section about boolean expressions.
Comment #3
jmuzz CreditAttribution: jmuzz commentedDevelopment is moving to 8.x-3.x.
Comment #4
ram4nd CreditAttribution: ram4nd as a volunteer commented