Conforming to coding standards

webchick - November 15, 2005 - 07:08
Project:Form Updater
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Just a very small patch which allows output to conform to the coding standards. Instead of:

$form['foo'] = array(
  '#type' => 'textfield',
  '#title' => t('Foo'),
...
  '#description' => t('A description of Foo.')
  );

It makes it:

$form['foo'] = array(
  '#type' => 'textfield',
  '#title' => t('Foo'),
...
  '#description' => t('A description of Foo.'),
);

Note the alignment of the closing ) and the comma after the last form element (even though this looks like an error, it's a practiced used [even by PHP itself] to help eliminate errors related to adding an element to the end of an array and forgetting to add the comma in).

AttachmentSize
formupdater.coding.standards.patch615 bytes

#1

webchick - November 23, 2005 - 01:16
Status:needs review» fixed

Per jjeff, I have committed this patch to formupdater module

#2

jjeff - November 28, 2005 - 23:10
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.