feat(php): improve indents in return statements & chained methods

This commit is contained in:
Caleb White 2024-03-16 19:50:13 -05:00 committed by GitHub
parent df3e6a24ac
commit 143ca5ce17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 126 additions and 0 deletions

View file

@ -0,0 +1,66 @@
<?php
if (
) {
}
return (
);
return true
;
return fn () => (
);
return fn (
) => (
);
return function (
) {
};
return function () {
};
return match (
) {
};
return match () {
};
return new class
{
public function up()
{
}
public function down(
) {
}
};
$this->foo()
->bar(
)
->baz();
$this->get()
->each(function () {
})
->each(
function (
) {
},
);
return $this->get()
->each(function () {
})
->each(
function (
) {
},
);