[ticket/11528] Move related code from functions_posting to function

Move related code from functions_posting to
remove_post_from_statistic() in content_visibility.php

PHPBB3-11528
[ticket/12738] Inject config object into content_visibility class

PHPBB3-12738
[ticket/12738] Fix tests with new config object injection

PHPBB3-12738
[ticket/12738] Add $config to constructor in notification test

PHPBB3-12738
[ticket/12387] Cleanup *_free_result call and remove @ on that call

PHPBB3-12387
[ticket/12387] mssql_query return true if a select query returns 0 row

PHPBB3-12387
[ticket/12387] Remove unnecessary checks

PHPBB3-12387
[ticket/12387] Use the hash as query_id for caching

PHPBB3-12387
[ticket/12387] Fix \phpbb\db\driver\mysqli::sql_freeresult

PHPBB3-12387
[ticket/12387] Fix a call to sql_freeresult in full_text_native

PHPBB3-12387
[ticket/11148] Add mimetype guesser to filespec and fileupload class

The mimetype guesser will be used to get the mimetype of uploaded files.
Until now, this was only used for files uploaded with plupload. If a file
doesn't have a mimetype supplied, we will now try to get the correct mimetype.

PHPBB3-11148
[ticket/11148] Pass mimetype guesser to upload_attachment() function

PHPBB3-11148
[ticket/11148] Use mimetype guesser for uploaded avatars

PHPBB3-11148
[ticket/11148] Default to application/octet-stream if no mimetype given

This should prevent us from having an empty mimetype while uploading a file
using local_upload().

PHPBB3-11148
[ticket/11148] Add missing parts to docblock of get_mimetype() method

PHPBB3-11148
[ticket/11148] Get rid of extra line in mimetype guesser setter doc block

PHPBB3-11148
[ticket/11148] Always use the output of the mimetype guesser in get_mimetype

PHPBB3-11148
[ticket/11148] Change expected output with disallowed content in test

PHPBB3-11148
[ticket/11148] Remove unneeded variable mimetype and use type octet-stream

The variable $mimetype is not used in the method local_upload() afterwards
so it shouldn't be assigned. The correct default mimetype should be
application/octet-stream and not application/octetstream according to RFC 2046.

PHPBB3-11148
[ticket/12051] Optimise Composer Autoloader on Build

PHPBB3-12051