andersundsehr/aus_driver_amazon_s3

View on GitHub

Showing 22 of 22 total issues

Function initializeBaseUrl has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

protected function initializeBaseUrl()
{
$protocol = $this->configuration['protocol'] ?? '';
if ($protocol == 'auto') {
$protocol = GeneralUtility::getIndpEnv('TYPO3_SSL') ? 'https://' : 'http://';
Severity: Minor
Found in Classes/Driver/AmazonS3Driver.php - About 35 mins to fix

Function renameFolder has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

public function renameFolder($folderIdentifier, $newName)
{
$this->resetIdentifierMap();
$newName = $this->sanitizeFileName($newName);
 
 
Severity: Minor
Found in Classes/Driver/AmazonS3Driver.php - About 25 mins to fix
Severity
Category
Status
Source
Language