mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
14 lines
No EOL
547 B
Markdown
14 lines
No EOL
547 B
Markdown
---
|
|
title: 'Don''t split lines at random places, but don''t make them too long either'
|
|
tweet_id: '1272822442990473216'
|
|
thread_slug: laravel-clean-code-tactics
|
|
author_username: samuelstancl
|
|
images:
|
|
- 'https://pbs.twimg.com/media/Eanz0jnXsAAvkv1.jpg'
|
|
created_at: 2020-06-16T09:24:52+00:00
|
|
slug: 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. |