Skip to content

Commit 431987e

Browse files
committed
Bump to friendsofphp/php-cs-fixer v3.1.0
1 parent 0241f1d commit 431987e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this library will be documented in this file.
44

55
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Unreleased](https://github.com/CodeIgniter/coding-standard/compare/v1.0.0...HEAD) - 20xx-xx-xx
8+
9+
- Bump to `friendsofphp/php-cs-fixer` v3.1.0
10+
711
## [v1.0.0](https://github.com/CodeIgniter/coding-standard/releases/tag/v1.0.0) - 2021-08-29
812

913
Initial release.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": "^7.3 || ^8.0",
1414
"ext-tokenizer": "*",
15-
"friendsofphp/php-cs-fixer": "^3.0",
15+
"friendsofphp/php-cs-fixer": "^3.1",
1616
"nexusphp/cs-config": "^3.2"
1717
},
1818
"require-dev": {

src/CodeIgniter4.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function __construct()
8383
'multi_line_extends_each_single_line' => true,
8484
'single_item_single_line' => true,
8585
'single_line' => true,
86+
'space_before_parenthesis' => true,
8687
],
87-
'class_keyword_remove' => false,
8888
'clean_namespace' => true,
8989
'combine_consecutive_issets' => true,
9090
'combine_consecutive_unsets' => true,
@@ -104,6 +104,7 @@ public function __construct()
104104
'constant_case' => ['case' => 'lower'],
105105
'date_time_immutable' => false,
106106
'declare_equal_normalize' => ['space' => 'none'],
107+
'declare_parentheses' => true,
107108
'declare_strict_types' => false,
108109
'dir_constant' => true,
109110
'doctrine_annotation_array_assignment' => false,
@@ -116,6 +117,7 @@ public function __construct()
116117
'shorten_simple_statements_only' => false,
117118
],
118119
'elseif' => true,
120+
'empty_loop_body' => ['style' => 'braces'],
119121
'encoding' => true,
120122
'ereg_to_preg' => true,
121123
'error_suppression' => [
@@ -520,6 +522,7 @@ public function __construct()
520522
'elements' => ['arrays'],
521523
],
522524
'trim_array_spaces' => true,
525+
'types_spaces' => ['space' => 'none'],
523526
'unary_operator_spaces' => true,
524527
'use_arrow_functions' => false, // requires PHP7.4+
525528
'visibility_required' => ['elements' => ['const', 'method', 'property']],

0 commit comments

Comments
 (0)