From [WPCS](http://make.wordpress.org/core/handbook/coding-standards/php/#space-usage):

> When referring to array items, only include a space around the index if it is a variable

Even so, I think it really means "if it is not a string or int". I'd go with spaces around everything else.