This is a curly bracket, or brace: {. It’s rarely used as a punctuation mark, but it is one of the most used symbols in programming languages, where they are used to group code and create scopes.

Take a look at this code snippet: public function __construct(string $publicDirectory, string $configurationFile, PageParser $pageParser, PageRenderer $pageRenderer) { }

public function __construct( string $publicDirectory, string $configurationFile, PageParser $pageParser, PageRenderer $pageRenderer) { $this->publicDirectory = rtrim($publicDirectory, '/'); $this->configurationFile = $configurationFile; $this->pageParser = $pageParser; $this->pageRenderer = $pageRenderer; }

Placing curly brackets on new lines gives our code space to breathe.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners