"Expected 1 newline after opening brace" in template files

Created on 12 February 2016, about 9 years ago
Updated 11 January 2025, 3 months ago

This code in a template file is generating the error "Expected 1 newline after opening brace; 0 found":
if ($base_path !== '/') :

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Coder Sniffer

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

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.

  • 🇦🇹Austria klausi 🇦🇹 Vienna

    Drupal 7 is not supported anymore, and Drupal 8+ versions do not use TPL files anymore. Closing this as outdated.

Production build 0.71.5 2024