Skip to content

[Feature Request]: Add check for whitespace after type casting #55

@tyrann0us

Description

@tyrann0us

Is your feature request related to a problem?

Currently, there is no rule that checks whether there is a space after the type casting. As a result, several spellings exist.

Without a space:

return (int)$lowStockThreshold;

With spaces:

return (string) max($lowStockThresholds);

Describe the desired solution

Add a rule that checks that there is a space after the type casting.

Describe the alternatives that you have considered

None.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions