Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ New FileInfo utility class #572

Merged
merged 1 commit into from
May 20, 2024
Merged

✨ New FileInfo utility class #572

merged 1 commit into from
May 20, 2024

Commits on May 20, 2024

  1. ✨ New FileInfo utility class

    This new class initially contains the following methods:
    * `hasByteOrderMark(File $phpcsFile): string|false` to determine whether a file starts with a byte order mark and if so, which type of byte order mark.
    * `hasSheBang(File $phpcsFile): bool` to determine whether a file starts with a shebang line.
    
    Includes tests.
    jrfnl committed May 20, 2024
    Configuration menu
    Copy the full SHA
    c41ab20 View commit details
    Browse the repository at this point in the history