Skip to content

Commit

Permalink
Dev: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Feb 22, 2021
1 parent c7485e9 commit 15c1c72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/models/UpdateForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,10 @@ private function _fileSystemCheck($obj)

/**
* build the file / Directory path using APPATH, and then call the check method
* NB: This method is called by building the method name string in _getFileSystemCheckList.
* @param object $obj an object containing the name of the file/directory to check, and what must be checked
* @return stdClass the result of the test
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function _fileSystemCheckAppath($obj)
{
Expand All @@ -839,8 +841,10 @@ private function _fileSystemCheckAppath($obj)

/**
* build the file / Directory path using getConfig(), and then call the check method
* NB: This method is called by building the method name string in _getFileSystemCheckList.
* @param object $obj an object containing the name of the file/directory to check, and what must be checked
* @return stdClass the result of the test
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function _fileSystemCheckConfig($obj)
{
Expand Down Expand Up @@ -959,7 +963,7 @@ private function _performDownload($getters, $fileName = 'update')
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_FILE, $pFile);
$content = curl_exec($ch);
curl_exec($ch);
$content_type = curl_getinfo($ch, CURLINFO_CONTENT_TYPE); // But we want the header to be returned to the controller so we can check if a file has been returned
curl_close($ch);

Expand Down

0 comments on commit 15c1c72

Please sign in to comment.