Maintainer Newsletter
April 2008 Maintainer News Draft
public
group: Drupal Newsletter
pwolanin - Wed, 2008-04-16 22:26
Coding standard change for D7
The patch which changes the spacing for the concatenation operator got committed to D7 on April 14, 2008. That means from Drupal 7 onwards, there is a space on both sides of the concat operator (the . that connects strings) instead of just on the non-literal facing side. For contributed modules, this change is optional for D6 compatible code, and recommended for D7.
Drupal 6:
$foo = "Lorem Ipsum". dolor_invoke();Drupal 7:
$foo = "Lorem Ipsum" . dolor_invoke();Drupal Newsletter: Maintainer Newsletter


