Skip to content

Operator Line Break #3

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

Open
Livijn opened this issue Mar 13, 2025 · 1 comment
Open

Operator Line Break #3

Livijn opened this issue Mar 13, 2025 · 1 comment

Comments

@Livijn
Copy link

Livijn commented Mar 13, 2025

Any thoughts on adding operator_linebreak? I think this makes the most sense for git diffs and it also looks the best imo.

Http::assertSent(function (Request $request) {
    return $request->hasHeader('X-First', 'foo')
        && $request->url() === 'http://example.com/users'
        && $request['name'] === 'Taylor'
        && $request['role'] === 'Developer';
});

However, in the Laravel docs this style is preferred:

Http::assertSent(function (Request $request) {
    return $request->hasHeader('X-First', 'foo') &&
        $request->url() == 'http://example.com/users' &&
        $request['name'] == 'Taylor' &&
        $request['role'] == 'Developer';
});
@dobrician
Copy link

i concurr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants