Closed brknkfr closed 2 years ago
thanks for the PR! I'm just wondering why you did not simply leave the close statement on line 114 (instead of moving it to the top)?
I'm just wondering why you did not simply leave the close statement on line 114 (instead of moving it to the top)?
I just thought that the open curl session is not needed anymore after saving the response code it to the variable
$canconnect
, so why not closing it just right after.
But it fact, it doesn't matter. For readability it would be maybe better to leave curl_close
on line 114.
yes, let's leave it at the bottom, but only once after the if statement
Fixes #172