1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/dont-split-lines-at-random-places-but-dont-make-them-too-long-either.md
2021-04-06 18:27:18 +02:00

547 B

title tweet_id thread_slug author_username images created_at slug
Don't split lines at random places, but don't make them too long either 1272822442990473216 laravel-clean-code-tactics samuelstancl
https://pbs.twimg.com/media/Eanz0jnXsAAvkv1.jpg
2021-04-06T16:07:23+00:00 dont-split-lines-at-random-places-but-dont-make-them-too-long-either

Opening an array with [ and indenting the values tends to work well. Same with long function parameter values.

Other good places to split lines are chained calls and closures.