I'm patching this module and i would like to fix some drupal coding standards to increase code legibility.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

oriol_e9g created an issue. See original summary.

oriol_e9g’s picture

Status: Needs work » Needs review
FileSize
41.43 KB

Status: Needs review » Needs work

The last submitted patch, 2: coding-standards-2748923.patch, failed testing.

oriol_e9g’s picture

Status: Needs work » Needs review

Testbot fails

joel_osc’s picture

Category: Task » Bug report
Priority: Minor » Normal

I would like to see this addressed as well... there are quite a few issues that make this code difficult to work with:

  • if statements improperly spaced: if($var){
  • use of 1 instead of TRUE
  • 4 space indent instead of 2
  • lowercase 'false' instead of uppercase 'FALSE'
  • }else{ all on the same line
oriol_e9g’s picture

Assigned: Unassigned » oriol_e9g
FileSize
44.11 KB

Second strike. I think that we can commit this patch, although it's not perfect is much better.

Status: Needs review » Needs work

The last submitted patch, 6: coding-standards-2748923-6.patch, failed testing.

oriol_e9g’s picture

Status: Needs work » Needs review
chetan-singhal’s picture

I can't merge your patch but in my local I try to fix.

chetan-singhal’s picture

Status: Needs review » Closed (fixed)
oriol_e9g’s picture

Try with this patch, cleanly aply with the last dev version.

oriol_e9g’s picture

Status: Closed (fixed) » Needs review
chetan-singhal’s picture

@oriol_e9g
can you share patch with current dev version?

chetan-singhal’s picture

Status: Needs review » Needs work
oriol_e9g’s picture

@drupal_rocker The patch in #11 apply cleanly with 7.x-4.x-dev

chetan-singhal’s picture

Status: Needs work » Fixed
chetan-singhal’s picture

Status: Fixed » Closed (fixed)