-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from M6Web/feat/fixed-dependencies
Single version and cs-fixer 3.0
- Loading branch information
Showing
7 changed files
with
80 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
namespace M6Web\CS\Config; | ||
|
||
use PhpCsFixer\Config; | ||
|
||
final class BedrockStreaming extends Config | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct('Bedrock Streaming'); | ||
|
||
$this->setRiskyAllowed(true); | ||
} | ||
|
||
public function getRules(): array | ||
{ | ||
$rules = [ | ||
'@Symfony' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short', | ||
], | ||
'braces' => [ | ||
'allow_single_line_closure' => true, | ||
], | ||
'global_namespace_import' => [ | ||
'import_classes' => false, | ||
'import_constants' => false, | ||
'import_functions' => false, | ||
], | ||
'heredoc_to_nowdoc' => false, | ||
'increment_style' => ['style' => 'post'], | ||
'no_unreachable_default_argument_value' => false, | ||
'ordered_imports' => ['sort_algorithm' => 'alpha'], | ||
'phpdoc_line_span' => [ | ||
'property' => 'single', | ||
'const' => 'single', | ||
], | ||
'phpdoc_summary' => false, | ||
'single_line_throw' => false, | ||
'yoda_style' => false, | ||
]; | ||
|
||
return $rules; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters