Replace array() with shorthand.

This commit is contained in:
Darko
2015-07-28 09:55:13 +02:00
parent 5657c27d18
commit 0ccb312ff5
78 changed files with 285 additions and 285 deletions
@@ -309,7 +309,7 @@ class ProcessAdditional
$this->_unrarPath = false;
// Pass the binary extractors to ArchiveInfo.
$clients = array();
$clients = [];
if ($this->pdo->getSetting('unrarpath') != '') {
$clients += array(\ArchiveInfo::TYPE_RAR => $this->pdo->getSetting('unrarpath'));
$this->_unrarPath = $this->pdo->getSetting('unrarpath');
@@ -527,7 +527,7 @@ class ProcessAdditional
if (is_array($this->_releases)) {
$this->_totalReleases = count($this->_releases);
} else {
$this->_releases = array();
$this->_releases = [];
$this->_totalReleases = 0;
}
}
@@ -640,7 +640,7 @@ class ProcessAdditional
* @void
* @access protected
*/
protected function _recursivePathDelete($path, $ignoredFolders = array())
protected function _recursivePathDelete($path, $ignoredFolders = [])
{
if (is_dir($path)) {
@@ -1056,7 +1056,7 @@ class ProcessAdditional
break;
}
$fileName = array();
$fileName = [];
if (preg_match('/[^\/\\\\]*\.[a-zA-Z0-9]*$/', $file['name'], $fileName)) {
$fileName = $fileName[0];
} else {
@@ -1184,7 +1184,7 @@ class ProcessAdditional
$nestedLevels++;
}
$fileType = array();
$fileType = [];
// Get all the remaining files in the temp dir.
$files = $this->_getTempDirectoryContents();
@@ -2535,8 +2535,8 @@ class ProcessAdditional
$this->_NZBHasCompressedFile = false;
$this->_sampleMessageIDs = $this->_JPGMessageIDs = $this->_MediaInfoMessageIDs = array();
$this->_AudioInfoMessageIDs = $this->_RARFileMessageIDs = array();
$this->_sampleMessageIDs = $this->_JPGMessageIDs = $this->_MediaInfoMessageIDs = [];
$this->_AudioInfoMessageIDs = $this->_RARFileMessageIDs = [];
$this->_AudioInfoExtension = '';
$this->_addedFileInfo = 0;