I've been running my code through very strict syntax checking and one thing that keeps coming up is exported objects.

When an object is exported it gets exported with this syntax:

$test = new Class;

According to the code standards it really should be:

$test = new Class();

I'm not really sure if theres a reason why the parenthesis where left out.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ericduran’s picture

Status: Active » Needs review
FileSize
1.01 KB

Here's a patch.

Dave Reid’s picture

Status: Needs review » Reviewed & tested by the community

Seems reasonable to me.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Easy enough. Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.