Use short array notation

This commit is contained in:
Romain Neutron
2014-03-01 14:44:53 +01:00
parent b836dc8632
commit d8e4ea5a41
4 changed files with 10 additions and 10 deletions

View File

@@ -571,7 +571,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
switch ($record->get_type()) {
case self::ELEMENT_TYPE_VIDEO :
$url_file = $this->_api->sendFile($record->get_hd_file()->getRealPath(), $this->oauth_token);
$options = array_merge(array('url' => $url_file), $options);
$options = array_merge(['url' => $url_file], $options);
$video = $this->_api->call('POST /me/videos', $options, $this->oauth_token);
return $video["id"];