mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[FDroid] minor syntax fix for phpcs
This commit is contained in:
parent
e9f871ce68
commit
918041cc28
@ -36,11 +36,11 @@ class FDroidBridge extends BridgeAbstract {
|
|||||||
$curlError = curl_error($ch);
|
$curlError = curl_error($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
if(!empty($curlError))
|
if(!empty($curlError))
|
||||||
return FALSE;
|
return false;
|
||||||
$curlHeaders = explode("\n",$curlHeaders);
|
$curlHeaders = explode("\n", $curlHeaders);
|
||||||
$timestamp=FALSE;
|
$timestamp = false;
|
||||||
foreach($curlHeaders as $header) {
|
foreach($curlHeaders as $header) {
|
||||||
if(strpos($header, 'Last-Modified') !== FALSE) {
|
if(strpos($header, 'Last-Modified') !== false) {
|
||||||
$timestamp = str_replace('Last-Modified: ', '', $header);
|
$timestamp = str_replace('Last-Modified: ', '', $header);
|
||||||
$timestamp = strtotime($timestamp);
|
$timestamp = strtotime($timestamp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user