PHPMailer::mb_pathinfo
Multi-byte-safe pathinfo replacement.
Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe.
Works similarly to the one in PHP >= 5.2.0
Signature
public function mb_pathinfo(string
$path,
[integer|string
$options = NULL] )
Parameters
$path
—
string
A filename or path, does not need to exist as a file
$options
—
object
Either a PATHINFO_* constant,
or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2
Returns
- string|array
Violations
PHPMessDetector
Line |
Rule |
Message |
3683 - 3722 |
CyclomaticComplexity
|
The method mb_pathinfo() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
Checkstyle
Line |
Column |
Severity |
Message |
3683 |
19 |
error
|
Method name "PHPMailer::mb_pathinfo" is not in camel caps format |