[FDroid] minor syntax fix for phpcs

This commit is contained in:
Mitsu 2022-01-24 12:41:33 +01:00 committed by GitHub
parent e9f871ce68
commit 918041cc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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);
} }