Skip to content

Commit 4f13ae4

Browse files
committed
PHP Style Change (Laravel Pint CI)
1 parent 7c1f58d commit 4f13ae4

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

app/Http/Controllers/TorrentController.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -401,14 +401,14 @@ public function store(StoreTorrentRequest $request): \Illuminate\Http\RedirectRe
401401
file_put_contents(getcwd().'/files/torrents/'.$fileName, Bencode::bencode($decodedTorrent));
402402

403403
$torrent = Torrent::create([
404-
'mediainfo' => TorrentTools::anonymizeMediainfo($request->filled('mediainfo') ? $request->string('mediainfo') : null),
405-
'info_hash' => Bencode::get_infohash($decodedTorrent),
406-
'file_name' => $fileName,
407-
'num_file' => $meta['count'],
408-
'folder' => Bencode::get_name($decodedTorrent),
409-
'size' => $meta['size'],
410-
'nfo' => $request->hasFile('nfo') ? TorrentTools::getNfo($request->file('nfo')) : '',
411-
'user_id' => $user->id,
404+
'mediainfo' => TorrentTools::anonymizeMediainfo($request->filled('mediainfo') ? $request->string('mediainfo') : null),
405+
'info_hash' => Bencode::get_infohash($decodedTorrent),
406+
'file_name' => $fileName,
407+
'num_file' => $meta['count'],
408+
'folder' => Bencode::get_name($decodedTorrent),
409+
'size' => $meta['size'],
410+
'nfo' => $request->hasFile('nfo') ? TorrentTools::getNfo($request->file('nfo')) : '',
411+
'user_id' => $user->id,
412412
] + $request->safe()->except(['torrent']));
413413

414414
// Update the status on this torrent moderation message table.

app/Models/Torrent.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ class Torrent extends Model
102102
protected function casts(): array
103103
{
104104
return [
105-
'tmdb' => 'int',
106-
'igdb' => 'int',
107-
'bumped_at' => 'datetime',
108-
'fl_until' => 'datetime',
109-
'du_until' => 'datetime',
110-
'doubleup' => 'bool',
111-
'refundable' => 'bool',
112-
'featured' => 'bool',
113-
'sticky' => 'bool',
105+
'tmdb' => 'int',
106+
'igdb' => 'int',
107+
'bumped_at' => 'datetime',
108+
'fl_until' => 'datetime',
109+
'du_until' => 'datetime',
110+
'doubleup' => 'bool',
111+
'refundable' => 'bool',
112+
'featured' => 'bool',
113+
'sticky' => 'bool',
114114
];
115115
}
116116

0 commit comments

Comments
 (0)