mirror of
https://github.com/doctrine/KeyValueStore.git
synced 2026-03-24 00:32:09 +01:00
83 lines
2.7 KiB
PHP
83 lines
2.7 KiB
PHP
<?php
|
|
|
|
$header = <<<EOF
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
This software consists of voluntary contributions made by many individuals
|
|
and is licensed under the MIT license. For more information, see
|
|
<http://www.doctrine-project.org>.
|
|
EOF;
|
|
|
|
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
|
|
|
|
$config = Symfony\CS\Config\Config::create()
|
|
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
|
|
->fixers([
|
|
'blankline_after_open_tag',
|
|
'empty_return',
|
|
'extra_empty_lines',
|
|
'function_typehint_space',
|
|
'join_function',
|
|
'method_argument_default_value',
|
|
'multiline_array_trailing_comma',
|
|
'no_blank_lines_after_class_opening',
|
|
'no_empty_lines_after_phpdocs',
|
|
'phpdoc_indent',
|
|
'phpdoc_no_access',
|
|
'phpdoc_no_empty_return',
|
|
'phpdoc_no_package',
|
|
'phpdoc_params',
|
|
'phpdoc_scalar',
|
|
'phpdoc_separation',
|
|
'phpdoc_trim',
|
|
'phpdoc_type_to_var',
|
|
'phpdoc_types',
|
|
'phpdoc_var_without_name',
|
|
'pre_increment',
|
|
'remove_leading_slash_use',
|
|
'remove_lines_between_uses',
|
|
'short_bool_cast',
|
|
'single_quote',
|
|
'spaces_after_semicolon',
|
|
'spaces_before_semicolon',
|
|
'spaces_cast',
|
|
'standardize_not_equal',
|
|
'ternary_spaces',
|
|
'trim_array_spaces',
|
|
'unneeded_control_parentheses',
|
|
'unused_use',
|
|
'whitespacy_lines',
|
|
'align_double_arrow',
|
|
'align_equals',
|
|
'concat_with_spaces',
|
|
'header_comment',
|
|
'logical_not_operators_with_successor_space',
|
|
'multiline_spaces_before_semicolon',
|
|
'newline_after_open_tag',
|
|
'ordered_use',
|
|
'php_unit_construct',
|
|
'phpdoc_order',
|
|
'short_array_syntax',
|
|
]);
|
|
|
|
if (null === $input->getArgument('path')) {
|
|
$config
|
|
->finder(
|
|
Symfony\CS\Finder\DefaultFinder::create()
|
|
->in('lib/')
|
|
->in('tests/')
|
|
);
|
|
}
|
|
|
|
return $config;
|