1 Casting
LogMANOriginal edited this page 2018-11-05 13:32:12 +01:00

Do not add spaces when casting

The casting type should be put into parenthesis without spaces.

Example

Bad

$text = ( string )$number;

Good

$text = (string)$number;

Reference: Squiz.WhiteSpace.CastSpacing