Should there be spaces after the casting parentheses like this?
```php
if (is_int($attributes) or (string) (int) $attributes === $attributes)
```