Questions tagged [laravel-pint]

Source code formatter for PHP. Use this tag with questions about setting up and configuring Laravel Pint.

Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.

Pint is automatically installed with all new Laravel applications so you may start using it immediately. By default, Pint does not require any configuration and will fix code style issues in your code by following the opinionated coding style of Laravel.

6 questions
4
votes
0 answers

Laravel Pint code style schema for PhpStorm

How to set up PhpStorm code style (Code alignment) to work with Laravel Pint? Is there a scheme for Pint Code Style and code alignment in a file? Does PhpStorm's Laravel Code Style is up to date? The docs says that it uses Laravel preset. By…
mare96
  • 3,749
  • 1
  • 16
  • 28
1
vote
1 answer

How with pint can I remove space after negative “!” symbol?

How with laravel/pint 1.4 can I remove space after negative “!” symbol ? Not : if (! self::$wasSetup) { But : if (!self::$wasSetup) { I suppose that last is psr-12 rule... Thanks!
mstdmstd
  • 2,195
  • 17
  • 63
  • 140
1
vote
1 answer

How with laravel/pint to add rule like no more 120 symbols in 1 line?

On my laravel 9 site I have installed laravel/pint and running command ./vendor/bin/pint -v checking modified code I see that there is no any rule like no more 120 symbols in 1 line. Checking…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
0
votes
1 answer

Laravel Pint not Running one test on /database

I have an odd issue when working with Laravel Pint on Windows. If I run php vendor/bin/pint --test -v I get no issues raised. Pint has fixed them all, including (I can see on the MR in GitLab) various issues in the /database folder. But when…
0
votes
1 answer

Laravel Pint formatting issue with line breaks in comments

I'm using Laravel Pint for code styling in my Laravel project. I have a function with a multi-line comment block that includes various tags such as @description, @author, and @email. When I run Laravel Pint to format my code, the comment block gets…
Arafath
  • 1,090
  • 3
  • 14
  • 28
0
votes
1 answer

Laravel Pint json config not wokring

I've been playing around with Laravel Pint and I can't seem to make it work the way I want. My goal is to have the curly brackets inline with class or function so instead function test() { } I want to have a format like this function test()…
SymmetricsWeb
  • 586
  • 6
  • 20