@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function isBlackListed(array $msg, string $groupName): bool |
28 | 28 | { |
29 | - if (! isset($this->listsFound[$groupName])) { |
|
29 | + if (!isset($this->listsFound[$groupName])) { |
|
30 | 30 | $this->retrieveLists($groupName); |
31 | 31 | } |
32 | - if (! $this->listsFound[$groupName]) { |
|
32 | + if (!$this->listsFound[$groupName]) { |
|
33 | 33 | return false; |
34 | 34 | } |
35 | 35 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | - if (! $blackListed && $this->blackList[$groupName]) { |
|
55 | + if (!$blackListed && $this->blackList[$groupName]) { |
|
56 | 56 | foreach ($this->blackList[$groupName] as $blackList) { |
57 | 57 | if (@preg_match('/'.$blackList->regex.'/i', $field[$blackList->msgcol])) { |
58 | 58 | $blackListed = true; |
@@ -155,10 +155,10 @@ discard block |
||
155 | 155 | |
156 | 156 | private function retrieveLists(string $groupName): void |
157 | 157 | { |
158 | - if (! isset($this->blackList[$groupName])) { |
|
158 | + if (!isset($this->blackList[$groupName])) { |
|
159 | 159 | $this->blackList[$groupName] = $this->getBlacklist(true, \Blacklight\Binaries::OPTYPE_BLACKLIST, $groupName, true); |
160 | 160 | } |
161 | - if (! isset($this->whiteList[$groupName])) { |
|
161 | + if (!isset($this->whiteList[$groupName])) { |
|
162 | 162 | $this->whiteList[$groupName] = $this->getBlacklist(true, \Blacklight\Binaries::OPTYPE_WHITELIST, $groupName, true); |
163 | 163 | } |
164 | 164 | $this->listsFound[$groupName] = ($this->blackList[$groupName] || $this->whiteList[$groupName]); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $collectionsQuery = Collection::query() |
44 | 44 | ->where('collections.filecheck', ProcessReleases::COLLFC_SIZED) |
45 | 45 | ->where('collections.filesize', '>', 0); |
46 | - if (! empty($groupID)) { |
|
46 | + if (!empty($groupID)) { |
|
47 | 47 | $collectionsQuery->where('collections.groups_id', $groupID); |
48 | 48 | } |
49 | 49 | $collectionsQuery->select(['collections.*', 'usenet_groups.name as gname']) |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $determinedCategory = $categorize->determineCategory($collection->groups_id, $cleanedName); |
100 | 100 | |
101 | - $searchName = ! empty($cleanedName) ? mb_convert_encoding($cleanedName, 'UTF-8', mb_list_encodings()) : $cleanRelName; |
|
101 | + $searchName = !empty($cleanedName) ? mb_convert_encoding($cleanedName, 'UTF-8', mb_list_encodings()) : $cleanRelName; |
|
102 | 102 | |
103 | 103 | $releaseID = Release::insertRelease([ |
104 | 104 | 'name' => $cleanRelName, |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ]); |
118 | 118 | |
119 | 119 | if ($releaseID !== null) { |
120 | - DB::transaction(static function () use ($collection, $releaseID) { |
|
120 | + DB::transaction(static function() use ($collection, $releaseID) { |
|
121 | 121 | Collection::query()->where('id', $collection->id)->update([ |
122 | 122 | 'filecheck' => ProcessReleases::COLLFC_INSERTED, |
123 | 123 | 'releases_id' => $releaseID, |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | } |
171 | 171 | } |
172 | 172 | } else { |
173 | - DB::transaction(static function () use ($collection) { |
|
173 | + DB::transaction(static function() use ($collection) { |
|
174 | 174 | Collection::query()->where('collectionhash', $collection->collectionhash)->delete(); |
175 | 175 | }, 10); |
176 | 176 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | ), true); |
34 | 34 | } |
35 | 35 | |
36 | - DB::transaction(function () use (&$deletedCount, $startTime, $echoCLI) { |
|
36 | + DB::transaction(function() use (&$deletedCount, $startTime, $echoCLI) { |
|
37 | 37 | $deleted = 0; |
38 | 38 | $deleteQuery = Collection::query() |
39 | 39 | ->where('dateadded', '<', now()->subHours(Settings::settingValue('partretentionhours'))) |