mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
Replace array() with shorthand.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user