diff --git a/src/Psalm/FileManipulation.php b/src/Psalm/FileManipulation.php index fbc8bcfca..f475b0b68 100644 --- a/src/Psalm/FileManipulation.php +++ b/src/Psalm/FileManipulation.php @@ -12,8 +12,13 @@ use function trim; final class FileManipulation { - public function __construct(public int $start, public int $end, public string $insertion_text, public bool $preserve_indentation = false, public bool $remove_trailing_newline = false) - { + public function __construct( + public int $start, + public int $end, + public string $insertion_text, + public bool $preserve_indentation = false, + public bool $remove_trailing_newline = false, + ) { } public function getKey(): string diff --git a/src/Psalm/Internal/Scope/IfConditionalScope.php b/src/Psalm/Internal/Scope/IfConditionalScope.php index 0c7868570..4db024f4c 100644 --- a/src/Psalm/Internal/Scope/IfConditionalScope.php +++ b/src/Psalm/Internal/Scope/IfConditionalScope.php @@ -22,7 +22,7 @@ final class IfConditionalScope public Context $post_if_context, public array $cond_referenced_var_ids, public array $assigned_in_conditional_var_ids, - public array $entry_clauses + public array $entry_clauses, ) { } } diff --git a/src/Psalm/Report/ByIssueLevelAndTypeReport.php b/src/Psalm/Report/ByIssueLevelAndTypeReport.php index a4c6975d4..69445ce89 100644 --- a/src/Psalm/Report/ByIssueLevelAndTypeReport.php +++ b/src/Psalm/Report/ByIssueLevelAndTypeReport.php @@ -166,7 +166,9 @@ HEADING; if (null === $this->link_format) { // if xdebug is not enabled, use `get_cfg_var` to get the value directly from php.ini - $this->link_format = (ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: 'file://%f#L%l'; + $this->link_format = ( + ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') + ) ?: 'file://%f#L%l'; } $link = strtr($this->link_format, ['%f' => $data->file_path, '%l' => $data->line_from]); diff --git a/src/Psalm/Report/ConsoleReport.php b/src/Psalm/Report/ConsoleReport.php index f8a4b4e24..7499ffcb1 100644 --- a/src/Psalm/Report/ConsoleReport.php +++ b/src/Psalm/Report/ConsoleReport.php @@ -134,7 +134,9 @@ final class ConsoleReport extends Report if (null === $this->link_format) { // if xdebug is not enabled, use `get_cfg_var` to get the value directly from php.ini - $this->link_format = (ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: 'file://%f#L%l'; + $this->link_format = ( + ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') + ) ?: 'file://%f#L%l'; } $link = strtr($this->link_format, ['%f' => $data->file_path, '%l' => $data->line_from]);