Remove typed properties

This commit is contained in:
DariusIII
2023-04-06 15:18:46 +02:00
parent 97cc5f662c
commit fd3f5a12d6
2 changed files with 9 additions and 10 deletions
+1
View File
@@ -210,6 +210,7 @@ class ManticoreSearch
'data' => $doc->getData(),
];
}
return array_merge(Arr::get($resultId, '0'), Arr::get($resultData, '0.data'));
} catch (ResponseException $exception) {
return [];
+8 -10
View File
@@ -121,15 +121,11 @@ class NZBImport
}
/**
* @param array $filesToProcess List of NZB files to import.
* @param bool|string $useNzbName Use the NZB file name as release name?
* @param bool $delete Delete the NZB when done?
* @param bool $deleteFailed Delete the NZB if failed importing?
* @return string|bool
* @return bool|string
*
* @throws \Exception
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function beginImport(array $filesToProcess, $useNzbName = false, bool $delete = true, bool $deleteFailed = true)
public function beginImport($filesToProcess, $useNzbName = false, $delete = true, $deleteFailed = true)
{
// Get all the groups in the DB.
if (! $this->getAllGroups()) {
@@ -241,9 +237,11 @@ class NZBImport
}
/**
* @return bool
*
* @throws \Exception
*/
protected function scanNZBFile(&$nzbXML, bool $useNzbName = false): bool
protected function scanNZBFile(&$nzbXML, $useNzbName = false)
{
$binary_names = [];
$totalFiles = $totalSize = $groupID = 0;
@@ -363,7 +361,7 @@ class NZBImport
*
* @throws \Exception
*/
protected function insertNZB($nzbDetails): bool
protected function insertNZB($nzbDetails)
{
// Make up a GUID for the release.
$this->relGuid = createGUID();
@@ -432,7 +430,7 @@ class NZBImport
/**
* Get all groups in the DB.
*/
protected function getAllGroups(): bool
protected function getAllGroups()
{
$this->allGroups = [];
$groups = UsenetGroup::query()->get(['id', 'name']);