Passed
Push — master ( ffcf7d...7bda7f )
by Darko
10:55
created
app/Services/ReleaseCreationService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
99 99
 
100 100
                 $determinedCategory = $categorize->determineCategory($collection->groups_id, $cleanedName, $fromName);
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.