mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Swap argument order for implode
I noticed this squiggly red line while perusing the code. The PHP doc says `implode ( string $glue , array $pieces ) : string` > implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments.
This commit is contained in:
parent
89a7707c33
commit
28be2b2263
@ -1735,7 +1735,7 @@ class Form extends ViewableData implements HasRequestHandler
|
||||
*/
|
||||
public function extraClass()
|
||||
{
|
||||
return implode(array_unique($this->extraClasses), ' ');
|
||||
return implode(' ', array_unique($this->extraClasses));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user