annotate vendor/sebastian/diff/.php_cs @ 13:5fb285c0d0e3

Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've been lucky to get away with this so far, as we don't support self-registration which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5 was vulnerable to.
author Chris Cannam
date Mon, 23 Apr 2018 09:33:26 +0100
parents 7a779792577d
children 1fec387a4317
rev   line source
Chris@0 1 <?php
Chris@12 2 $header = <<<'EOF'
Chris@12 3 This file is part of sebastian/diff.
Chris@0 4
Chris@12 5 (c) Sebastian Bergmann <sebastian@phpunit.de>
Chris@12 6
Chris@12 7 For the full copyright and license information, please view the LICENSE
Chris@12 8 file that was distributed with this source code.
Chris@12 9 EOF;
Chris@12 10
Chris@12 11 return PhpCsFixer\Config::create()
Chris@12 12 ->setRiskyAllowed(true)
Chris@12 13 ->setRules(
Chris@12 14 [
Chris@12 15 'array_syntax' => ['syntax' => 'long'],
Chris@12 16 'binary_operator_spaces' => [
Chris@12 17 'align_double_arrow' => true,
Chris@12 18 'align_equals' => true
Chris@12 19 ],
Chris@12 20 'blank_line_after_namespace' => true,
Chris@12 21 'blank_line_before_return' => true,
Chris@12 22 'braces' => true,
Chris@12 23 'cast_spaces' => true,
Chris@12 24 'concat_space' => ['spacing' => 'one'],
Chris@12 25 'elseif' => true,
Chris@12 26 'encoding' => true,
Chris@12 27 'full_opening_tag' => true,
Chris@12 28 'function_declaration' => true,
Chris@12 29 'header_comment' => ['header' => $header, 'separate' => 'none'],
Chris@12 30 'indentation_type' => true,
Chris@12 31 'line_ending' => true,
Chris@12 32 'lowercase_constants' => true,
Chris@12 33 'lowercase_keywords' => true,
Chris@12 34 'method_argument_space' => true,
Chris@12 35 'native_function_invocation' => true,
Chris@12 36 'no_alias_functions' => true,
Chris@12 37 'no_blank_lines_after_class_opening' => true,
Chris@12 38 'no_blank_lines_after_phpdoc' => true,
Chris@12 39 'no_closing_tag' => true,
Chris@12 40 'no_empty_phpdoc' => true,
Chris@12 41 'no_empty_statement' => true,
Chris@12 42 'no_extra_consecutive_blank_lines' => true,
Chris@12 43 'no_leading_namespace_whitespace' => true,
Chris@12 44 'no_singleline_whitespace_before_semicolons' => true,
Chris@12 45 'no_spaces_after_function_name' => true,
Chris@12 46 'no_spaces_inside_parenthesis' => true,
Chris@12 47 'no_trailing_comma_in_list_call' => true,
Chris@12 48 'no_trailing_whitespace' => true,
Chris@12 49 'no_unused_imports' => true,
Chris@12 50 'no_whitespace_in_blank_line' => true,
Chris@12 51 'phpdoc_align' => true,
Chris@12 52 'phpdoc_indent' => true,
Chris@12 53 'phpdoc_no_access' => true,
Chris@12 54 'phpdoc_no_empty_return' => true,
Chris@12 55 'phpdoc_no_package' => true,
Chris@12 56 'phpdoc_scalar' => true,
Chris@12 57 'phpdoc_separation' => true,
Chris@12 58 'phpdoc_to_comment' => true,
Chris@12 59 'phpdoc_trim' => true,
Chris@12 60 'phpdoc_types' => true,
Chris@12 61 'phpdoc_var_without_name' => true,
Chris@12 62 'self_accessor' => true,
Chris@12 63 'simplified_null_return' => true,
Chris@12 64 'single_blank_line_at_eof' => true,
Chris@12 65 'single_import_per_statement' => true,
Chris@12 66 'single_line_after_imports' => true,
Chris@12 67 'single_quote' => true,
Chris@12 68 'ternary_operator_spaces' => true,
Chris@12 69 'trim_array_spaces' => true,
Chris@12 70 'visibility_required' => true,
Chris@12 71 ]
Chris@0 72 )
Chris@12 73 ->setFinder(
Chris@12 74 PhpCsFixer\Finder::create()
Chris@12 75 ->files()
Chris@12 76 ->in(__DIR__ . '/src')
Chris@12 77 ->in(__DIR__ . '/tests')
Chris@12 78 ->name('*.php')
Chris@12 79 );