Between the type to which the variable is cast and there must be a space

Comments

Fakman created an issue. See original summary.

Fakman’s picture

StatusFileSize
new709 bytes

uploaded patch file

avpaderno’s picture

Title: no space between type and variable » Fix the whitespace in casting code
Category: Feature request » Task

Yes, this is what the Drupal coding standards says.

Put a space between the (type) and the $variable in a cast: (int) $mynumber.

avpaderno’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Needs work
StatusFileSize
new17.57 KB

The branch to change is the 7.x-2.x one, not the 7.x-1.x one, which is not supported nor recommended.

screenshot