@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $collectionsQuery = Collection::query() |
| 45 | 45 | ->where('collections.filecheck', CollectionFileCheckStatus::Sized->value) |
| 46 | 46 | ->where('collections.filesize', '>', 0); |
| 47 | - if (! empty($groupID)) { |
|
| 47 | + if (!empty($groupID)) { |
|
| 48 | 48 | $collectionsQuery->where('collections.groups_id', $groupID); |
| 49 | 49 | } |
| 50 | 50 | $collectionsQuery->select(['collections.*', 'usenet_groups.name as gname']) |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $determinedCategory = $categorize->determineCategory($collection->groups_id, $cleanedName); |
| 101 | 101 | |
| 102 | - $searchName = ! empty($cleanedName) ? mb_convert_encoding($cleanedName, 'UTF-8', mb_list_encodings()) : $cleanRelName; |
|
| 102 | + $searchName = !empty($cleanedName) ? mb_convert_encoding($cleanedName, 'UTF-8', mb_list_encodings()) : $cleanRelName; |
|
| 103 | 103 | |
| 104 | 104 | $releaseID = Release::insertRelease([ |
| 105 | 105 | 'name' => $cleanRelName, |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | ]); |
| 119 | 119 | |
| 120 | 120 | if ($releaseID !== null) { |
| 121 | - DB::transaction(static function () use ($collection, $releaseID) { |
|
| 121 | + DB::transaction(static function() use ($collection, $releaseID) { |
|
| 122 | 122 | Collection::query()->where('id', $collection->id)->update([ |
| 123 | 123 | 'filecheck' => CollectionFileCheckStatus::Inserted->value, |
| 124 | 124 | 'releases_id' => $releaseID, |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | } |
| 173 | 173 | } else { |
| 174 | - DB::transaction(static function () use ($collection) { |
|
| 174 | + DB::transaction(static function() use ($collection) { |
|
| 175 | 175 | Collection::query()->where('collectionhash', $collection->collectionhash)->delete(); |
| 176 | 176 | }, 10); |
| 177 | 177 | |
@@ -78,8 +78,8 @@ |
||
| 78 | 78 | $nntp, |
| 79 | 79 | $groupId, |
| 80 | 80 | '', |
| 81 | - (bool)Settings::settingValue('lookupimdb'), |
|
| 82 | - (bool)Settings::settingValue('lookuptv') |
|
| 81 | + (bool) Settings::settingValue('lookupimdb'), |
|
| 82 | + (bool) Settings::settingValue('lookuptv') |
|
| 83 | 83 | ); |
| 84 | 84 | |
| 85 | 85 | $this->info("Completed all processing for group: {$groupMySQL['name']}"); |