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.
Community Partners