Skip to content

Commit

Permalink
FIX: PHP Code Syntax Errors for PluginManagerHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 12, 2023
1 parent d8492d1 commit 3472445
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Helper/PluginManagerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public function lastUpdatedDirectory()
// https://www.appsloveworld.com/php/12/get-the-last-modified-date-of-a-remote-file
$curl = curl_init(PLUGIN_API_URL);

//don't fetch the actual page, you only want headers
// don't fetch the actual page, you only want headers
curl_setopt($curl, CURLOPT_NOBODY, true);

//stop it from outputting stuff to stdout
// stop it from outputting stuff to stdout
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

// attempt to retrieve the modification date
Expand All @@ -74,13 +74,13 @@ public function lastUpdatedDirectory()
$result = curl_exec($curl);

if ($result === false) {
die (curl_error($curl));
die(curl_error($curl));
}

$timestamp = curl_getinfo($curl, CURLINFO_FILETIME);

if ($timestamp != -1) { //otherwise unknown
return date("d F Y H:i", $timestamp); //etc
if ($timestamp != -1) { // otherwise unknown
return date("d F Y H:i", $timestamp); // etc
}
} else {
return t('Not Available');
Expand Down

0 comments on commit 3472445

Please sign in to comment.