Skip to content

Commit

Permalink
[SubstackBridge] Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SqrtMinusOne committed Jul 31, 2024
1 parent 220d359 commit e6f5cb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bridges/SubstackBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class SubstackBridge extends FeedExpander
]
];

public function collectData() {
public function collectData()
{
$headers = [];
if ($this->getOption('sid')) {
$url_parsed = parse_url($this->getInput('url'));
Expand All @@ -40,7 +41,7 @@ public function collectData() {
$headers = [
'Authority: ' . $authority,
'Cache-Control: max-age=0',
'User-Agent: ' . 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36',
'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36',
'Cookie: ' . implode('; ', $cookies)
];
}
Expand Down

0 comments on commit e6f5cb3

Please sign in to comment.