From 34724450a714e45f7e245bb033076db0a14dfb73 Mon Sep 17 00:00:00 2001 From: aljawaid <10233708+aljawaid@users.noreply.github.com> Date: Fri, 12 May 2023 21:38:50 +0100 Subject: [PATCH] FIX: PHP Code Syntax Errors for `PluginManagerHelper.php` --- Helper/PluginManagerHelper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Helper/PluginManagerHelper.php b/Helper/PluginManagerHelper.php index 378a6c0..98c12b2 100644 --- a/Helper/PluginManagerHelper.php +++ b/Helper/PluginManagerHelper.php @@ -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 @@ -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');