Merge pull request #51 from ndm2/revamp-media-helper

Revamp MediaHelper
Remove broken URL handling, it was never working. Covers #44
Return early on URLs, no need to execute any file finder logic on paths that are expected to be unresolvable. This also avoids possible open_basedir restriction errors.
Merge pull request #52 from ndm2/remove-broken-url-handling

Remove broken url handling
Remove workarounds for older PHP versions with missing PATHINFO_FILENAME support.
Merge pull request #53 from ndm2/remove-old-php-workarounds

Remove workarounds for older PHP versions
Add support for regenerating metadata when replacing files. Not doing so causes the wrong data being left in the database record, rendering it invalid. Resolves https://github.com/davidpersson/media/issues/67
Merge pull request #54 from ndm2/regenerate-metadata

Add support for regenerating metadata
Do not extract settings, this would overwrite the $level method argument.
Do not rely on implicit variable creation, it's discouraged and causes possible undefined variable flagging by code analysis tools.
Fix typo in class doc-block, this isn't the Coupler behavior.
Make metadata caching configurable. This gives the user more control, makes testing easier and avoids polluting the cache with test data.
Add tests covering MetaBehavior::metadata() and metadata caching.
Merge pull request #55 from ndm2/metadata-cleanup-caching-and-tests

Metadata cleanup, configurable caching and additional tests
Fix spelling.
Coding standards.
Avoid possible undefined variable flagging.
Fix undefined variable error.
Remove unused variables.
Add missing parameter type hints.