*/
public function set($key, $value)
{
- if (!is_array($value) && !$value instanceof UploadedFile) {
+ if (!\is_array($value) && !$value instanceof UploadedFile) {
throw new \InvalidArgumentException('An uploaded file must be an array or an instance of UploadedFile.');
}
}
$file = $this->fixPhpFilesArray($file);
- if (is_array($file)) {
+ if (\is_array($file)) {
$keys = array_keys($file);
sort($keys);
*/
protected function fixPhpFilesArray($data)
{
- if (!is_array($data)) {
+ if (!\is_array($data)) {
return $data;
}
$keys = array_keys($data);
sort($keys);
- if (self::$fileKeys != $keys || !isset($data['name']) || !is_array($data['name'])) {
+ if (self::$fileKeys != $keys || !isset($data['name']) || !\is_array($data['name'])) {
return $data;
}