1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/dont-split-lines-at-random-places-but-dont-make-them-too-long-either.md
2021-04-07 20:16:47 +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
2020-06-16T09:24:52+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.