AdobeConnectClient\Connection\Curl\Connection::fileInfo
Get the filepath and mime-type from a file.
If it's a stream file or \SplFileInfo returns an object with path and mime.
Signature
protected function fileInfo(resource|SplFileInfo
$item )
Parameters
$item
— object- A stream file or SplFileInfo object
Returns
- array|null
- Returns null if it's not a valid stream file or SplFileInfo
Test Coverage
Information
- Coverage: / Lines (%)
- Tests: 0
- Passed: 0 (0%)
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
166 - 168 | ElseExpression | The method fileInfo uses an else expression. Else is never necessary and you can simplify the code to work without else. |