---
title: "format/functions"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

Function and method declarations, calls, arguments and closures. Also in [lint](/docs/rules/lint/functions) (14) and [analyse](/docs/rules/analyse/functions) (16).

**[argument-spacing](/docs/rules/format/functions/argument-spacing)**

In method arguments and method call, there MUST NOT be a space before each comma and there MUST be one space after each comma. Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line.

In the `format-laravel` and `format-psr12` presets. Safe fix.

**[backtick-to-shell-exec](/docs/rules/format/functions/backtick-to-shell-exec)**

Converts backtick operators to `shell_exec` calls.

Not in any preset. Safe fix. Upstream gates: `strictRules.disallowedBacktick`.

**[chain-indentation](/docs/rules/format/functions/chain-indentation)**

Method chaining MUST be properly indented. Method chaining with different levels of indentation is not supported.

In the `format-laravel` preset. Safe fix.

**[declaration](/docs/rules/format/functions/declaration)**

Spaces should be properly placed in a function declaration.

In the `format-laravel` and `format-psr12` presets. Safe fix.

**[no-alias-construct-call](/docs/rules/format/functions/no-alias-construct-call)**

Master language constructs shall be used instead of aliases.

In the `format-laravel` preset. Safe fix.

**[no-space-after-name](/docs/rules/format/functions/no-space-after-name)**

When making a method or function call, there MUST NOT be a space between the method or function name and the opening parenthesis.

In the `format-laravel` and `format-psr12` presets. Safe fix.

**[return-type-spacing](/docs/rules/format/functions/return-type-spacing)**

Adjust spacing around colon in return type declarations and backed enum types.

In the `format-laravel` and `format-psr12` presets. Safe fix.

**[single-line-throw](/docs/rules/format/functions/single-line-throw)**

Throwing exception must be done in single line.

Not in any preset. Safe fix.
