Skip to content

Commit 571b46e

Browse files
committed
Use default binary_operator_spaces option
1 parent 3acacdf commit 571b46e

File tree

4 files changed

+258
-254
lines changed

4 files changed

+258
-254
lines changed

.php_cs.dist

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ $finder = Finder::create()
2222
->append([__FILE__])
2323
;
2424

25+
$overrides = [
26+
'binary_operator_spaces' => ['default' => 'single_space'],
27+
];
28+
2529
$options = [
26-
'finder' => $finder,
30+
'finder' => $finder,
2731
'cacheFile' => 'build/.php_cs.cache',
2832
];
2933

30-
return Factory::create(new Nexus73(), [], $options)->forLibrary(
34+
return Factory::create(new Nexus73(), $overrides, $options)->forLibrary(
3135
'NexusPHP CS Config',
3236
'John Paul E. Balandan, CPA',
3337

src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function forLibrary(string $library, string $author, string $email = '',
139139

140140
return $this->invoke([
141141
'header_comment' => [
142-
'header' => trim($header),
142+
'header' => trim($header),
143143
'comment_type' => 'PHPDoc',
144144
],
145145
]);

0 commit comments

Comments
 (0)