This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
forked from pmmp/PocketMine-MP
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge of the next-dev branch with the stable branch (#18)
* add symply.yml config * set to Symply name * add support native waterdogpe in symply and fix system symply.yml * fix php-cs-fixer and add new rule * oups no commit rules for php-cs-fixer * fix rules and add support multi rules * fix rules for pmmp * fix finder for exclude file * fix cs --------- Signed-off-by: AzaleeX <azaleemcpe@gmail.com> Co-authored-by: Vuillamier Lilian <33796736+Virvolta@users.noreply.github.com> Co-authored-by: Sensei Tarzan <gabrielcaptari0@gmail.com>
- Loading branch information
1 parent
f897639
commit 892bd50
Showing
40 changed files
with
2,450 additions
and
258 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,121 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__ . '/symply') | ||
->in(__DIR__ . '/build/symply'); | ||
|
||
return (new PhpCsFixer\Config) | ||
->setRiskyAllowed(true) | ||
|
||
->setRules([ | ||
'align_multiline_comment' => [ | ||
'comment_type' => 'phpdocs_only' | ||
], | ||
'array_indentation' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short' | ||
], | ||
'binary_operator_spaces' => [ | ||
'default' => 'single_space' | ||
], | ||
'blank_line_after_namespace' => true, | ||
'blank_line_after_opening_tag' => true, | ||
'blank_line_before_statement' => [ | ||
'statements' => [ | ||
'declare' | ||
] | ||
], | ||
'cast_spaces' => [ | ||
'space' => 'single' | ||
], | ||
'concat_space' => [ | ||
'spacing' => 'one' | ||
], | ||
'declare_strict_types' => true, | ||
'elseif' => true, | ||
'fully_qualified_strict_types' => true, | ||
'global_namespace_import' => [ | ||
'import_constants' => true, | ||
'import_functions' => true, | ||
'import_classes' => null, | ||
], | ||
'header_comment' => [ | ||
'comment_type' => 'comment', | ||
'header' => <<<BODY | ||
_____ _ | ||
/ ___| | | | ||
\ `--. _ _ _ __ ___ _ __ | |_ _ | ||
`--. \ | | | '_ ` _ \| '_ \| | | | | | ||
/\__/ / |_| | | | | | | |_) | | |_| | | ||
\____/ \__, |_| |_| |_| .__/|_|\__, | | ||
__/ | | | __/ | | ||
|___/ |_| |___/ | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
@author Symply Team | ||
@link http://www.symplymc.com/ | ||
BODY, | ||
'location' => 'after_open' | ||
], | ||
'indentation_type' => true, | ||
'logical_operators' => true, | ||
'native_constant_invocation' => [ | ||
'scope' => 'namespaced' | ||
], | ||
'native_function_invocation' => [ | ||
'scope' => 'namespaced', | ||
'include' => ['@all'], | ||
], | ||
'new_with_braces' => [ | ||
'named_class' => true, | ||
'anonymous_class' => false, | ||
], | ||
'no_closing_tag' => true, | ||
'no_empty_phpdoc' => true, | ||
'no_extra_blank_lines' => true, | ||
'no_superfluous_phpdoc_tags' => [ | ||
'allow_mixed' => true, | ||
], | ||
'no_trailing_whitespace' => true, | ||
'no_trailing_whitespace_in_comment' => true, | ||
'no_whitespace_in_blank_line' => true, | ||
'no_unused_imports' => true, | ||
'ordered_imports' => [ | ||
'imports_order' => [ | ||
'class', | ||
'function', | ||
'const', | ||
], | ||
'sort_algorithm' => 'alpha' | ||
], | ||
'phpdoc_align' => [ | ||
'align' => 'vertical', | ||
'tags' => [ | ||
'param', | ||
] | ||
], | ||
'phpdoc_line_span' => [ | ||
'property' => 'single', | ||
'method' => null, | ||
'const' => null | ||
], | ||
'phpdoc_trim' => true, | ||
'phpdoc_trim_consecutive_blank_line_separation' => true, | ||
'return_type_declaration' => [ | ||
'space_before' => 'one' | ||
], | ||
'single_blank_line_at_eof' => true, | ||
'single_import_per_statement' => true, | ||
'strict_param' => true, | ||
'unary_operator_spaces' => true, | ||
]) | ||
->setFinder($finder) | ||
->setIndent("\t") | ||
->setLineEnding("\n"); |
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
Oops, something went wrong.