Fix downloads from HTTPS on servers without a global cacert.pem

Closes gh-4218

## Executive summary

When you have a server where the PHP curl module is not enabled Joomla! resorts to using fopen(). If the server doesn't have a root certificate authority cache made available to PHP, retrieving an HTTPS URL fails. This is obvious with extension updates when the update XML or update package URL is on an SSL site.

## Backwards compatibility issues

None

## Translation impact

None

## Testing

On an affected server try installing an extension from an HTTPS URL. It will fail. After the patch it will succeeed.

## Special notes

This is a trivial patch with a successful test in gh-4218 As a result it can be set immediately RTC.
Merge pull request #4232 from nikosdion/fix/https-download-fopen

Fix downloads from HTTPS on servers without a global cacert.pem
Codestyle
[imp] Code Style fixes. Fixes #4224. Fixes #4225. Fixes #4226. Fixes #4227. Fixes #4228. Fixes #4230

Fix function doc block

Code Style fixes for file

Code Style fixes for file

Fix code style in file

Code Style fixes for file
[fix] Allow to get permitions for section != 'component'. Fixes #4198

This will allow to set ACL different groups based on category permissions, for example:
access.xml
	<section name="component">
		[...]
	</section>
	<section name="category">
		<action name="roles.list" title="roles list" description="" />
		<action name="roles.manage" title="roles manage" description="" />
	</section>

view.html.php (view of a generic component)
[...]
$this->canDo = JHelperContent::getActions('com_componentname', 'category', $item->catid);
if (!$this->canDo->get('roles.manage')) {
            JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
            $app = JFactory::getApplication();
            $app->redirect('index.php');
}
[...]

Update content.php

Update content.php
Codestyle Modules. Closes #4242. Closes #4241
Code Style fixes for modules. Closes #4237.
Activates codestyle checks for modules folder.