|
2 | 2 |
|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
| 5 | +/* |
| 6 | + * BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
| 7 | + * |
| 8 | + * Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below). |
| 9 | + * |
| 10 | + * This program is free software; you can redistribute it and/or modify it under the |
| 11 | + * terms of the GNU Lesser General Public License as published by the Free Software |
| 12 | + * Foundation; either version 3.0 of the License, or (at your option) any later |
| 13 | + * version. |
| 14 | + * |
| 15 | + * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY |
| 16 | + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 17 | + * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 18 | + * |
| 19 | + * You should have received a copy of the GNU Lesser General Public License along |
| 20 | + * with BigBlueButton; if not, see <https://www.gnu.org/licenses/>. |
| 21 | + */ |
| 22 | + |
| 23 | +use PhpCsFixer\Config; |
| 24 | +use PhpCsFixer\Finder; |
| 25 | + |
5 | 26 | $header = <<<'EOF' |
6 | | -BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
| 27 | + BigBlueButton open source conferencing system - https://www.bigbluebutton.org/. |
7 | 28 |
|
8 | | -Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below). |
| 29 | + Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below). |
9 | 30 |
|
10 | | -This program is free software; you can redistribute it and/or modify it under the |
11 | | -terms of the GNU Lesser General Public License as published by the Free Software |
12 | | -Foundation; either version 3.0 of the License, or (at your option) any later |
13 | | -version. |
| 31 | + This program is free software; you can redistribute it and/or modify it under the |
| 32 | + terms of the GNU Lesser General Public License as published by the Free Software |
| 33 | + Foundation; either version 3.0 of the License, or (at your option) any later |
| 34 | + version. |
14 | 35 |
|
15 | | -BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY |
16 | | -WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
17 | | -PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 36 | + BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY |
| 37 | + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 38 | + PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
18 | 39 |
|
19 | | -You should have received a copy of the GNU Lesser General Public License along |
20 | | -with BigBlueButton; if not, see <http://www.gnu.org/licenses/>. |
21 | | -EOF; |
| 40 | + You should have received a copy of the GNU Lesser General Public License along |
| 41 | + with BigBlueButton; if not, see <https://www.gnu.org/licenses/>. |
| 42 | + EOF; |
22 | 43 |
|
23 | | -$finder = PhpCsFixer\Finder::create() |
| 44 | +$finder = Finder::create() |
24 | 45 | ->files() |
25 | 46 | ->name(['*.php']) |
26 | 47 | ->in(__DIR__ . '/src') |
27 | | - ->in(__DIR__ . '/tests'); |
| 48 | + ->in(__DIR__ . '/tests') |
| 49 | +; |
28 | 50 |
|
29 | | -$config = new PhpCsFixer\Config(); |
| 51 | +$config = new Config(); |
30 | 52 | $config |
31 | 53 | ->setRiskyAllowed(true) |
32 | 54 | ->setRules([ |
33 | | - '@PhpCsFixer' => true, |
34 | | - '@PHP74Migration' => true, |
| 55 | + '@PhpCsFixer' => true, |
| 56 | + '@PHP74Migration' => true, |
35 | 57 | 'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], // one should use PHPUnit built-in method instead |
36 | | - 'header_comment' => ['header' => $header], |
37 | | - 'concat_space' => ['spacing' => 'one'], |
38 | | - 'function_declaration' => ['closure_function_spacing' => 'none'], |
39 | | - 'constant_case' => ['case' => 'lower'], |
40 | | - 'single_quote' => true, |
41 | | - 'mb_str_functions' => true, |
42 | | - 'array_syntax' => ['syntax' => 'short'], |
43 | | - 'binary_operator_spaces' => ['operators' => |
44 | | - ['=>' => 'align_single_space_minimal', '=' => 'align_single_space_minimal'] |
| 58 | + 'header_comment' => ['header' => $header], |
| 59 | + 'concat_space' => ['spacing' => 'one'], |
| 60 | + 'function_declaration' => ['closure_function_spacing' => 'none'], |
| 61 | + 'constant_case' => ['case' => 'lower'], |
| 62 | + 'single_quote' => true, |
| 63 | + 'mb_str_functions' => true, |
| 64 | + 'array_syntax' => ['syntax' => 'short'], |
| 65 | + 'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space_minimal', '=' => 'align_single_space_minimal'], |
45 | 66 | ], |
46 | 67 | ]) |
47 | | - ->setFinder($finder); |
| 68 | + ->setFinder($finder) |
| 69 | +; |
48 | 70 |
|
49 | 71 | return $config; |
0 commit comments