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.
Testing command: phpcbf --standard=Drupal .
The following code (templates/breadcrumb.tpl.php):
<nav aria-labelledby="breadcrumb_title" class="breadcrumb" role="navigation">
<p class="hide" id="breadcrumb_title"><?php echo t('You are here'); ?> </p>
<ul class="breadcrumb">
<li><?php echo implode('</li><li> ', $variables['breadcrumb']); ?></li>
</ul>
</nav>
is converted into:
<nav aria-labelledby="breadcrumb_title" class="breadcrumb" role="navigation">
<p class="hide" id="breadcrumb_title"><?php
/**
* @file
*/
echo t('You are here'); ?> </p>
<ul class="breadcrumb">
<li><?php echo implode('</li><li> ', $variables['breadcrumb']); ?></li>
</ul>
</nav>
I think the solution could be to add
with @file in it at the beginning of the file instead.
Comments
Comment #2
kenorb CreditAttribution: kenorb commentedAnother example.
File: http://cgit.drupalcode.org/booking_timeslots/tree/templates/tutorial.tpl...
Line:
is changed to:
Comment #4
klausiCommitted a fix, thanks for reporting!