Skip to content

Apply Laravel Pint code style fixes #235

@AgustinRamiroDiaz

Description

@AgustinRamiroDiaz

Summary

Running Laravel Pint (the default Laravel code style fixer) reports 368 style issues across 441 files.

Most common violations

Rule Description
ordered_imports Import statements not alphabetically sorted
single_quote Double quotes used where single quotes suffice
no_unused_imports Unused use statements
concat_space Inconsistent spacing around . concatenation
no_trailing_whitespace Trailing whitespace on lines
single_blank_line_at_eof Missing or extra blank line at end of file
no_whitespace_in_blank_line Blank lines containing whitespace
braces_position Brace placement not matching PSR-12
class_definition Class definition formatting
method_chaining_indentation Inconsistent indentation on chained calls
new_with_parentheses new Foo instead of new Foo()
not_operator_with_successor_space Missing space after !
no_extra_blank_lines Extra blank lines
indentation_type Mixed tabs/spaces

How to reproduce

./vendor/bin/pint --test

Proposed fix

All issues are auto-fixable by running:

./vendor/bin/pint

This could also be enforced in CI to prevent future style regressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions