Skip to content

Commit ed73fee

Browse files
committed
Apply CS-Fixer with updated year
1 parent 37dd7b9 commit ed73fee

File tree

90 files changed

+225
-206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+225
-206
lines changed

.php-cs-fixer.php

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,70 @@
22

33
declare(strict_types=1);
44

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+
526
$header = <<<'EOF'
6-
BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
27+
BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
728
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).
930
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.
1435
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.
1839
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;
2243

23-
$finder = PhpCsFixer\Finder::create()
44+
$finder = Finder::create()
2445
->files()
2546
->name(['*.php'])
2647
->in(__DIR__ . '/src')
27-
->in(__DIR__ . '/tests');
48+
->in(__DIR__ . '/tests')
49+
;
2850

29-
$config = new PhpCsFixer\Config();
51+
$config = new Config();
3052
$config
3153
->setRiskyAllowed(true)
3254
->setRules([
33-
'@PhpCsFixer' => true,
34-
'@PHP74Migration' => true,
55+
'@PhpCsFixer' => true,
56+
'@PHP74Migration' => true,
3557
'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'],
4566
],
4667
])
47-
->setFinder($finder);
68+
->setFinder($finder)
69+
;
4870

4971
return $config;

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
</testsuite>
1919
</testsuites>
2020
</phpunit>
21-

src/BigBlueButton.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton;

src/Core/ApiMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

src/Core/Attendee.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

src/Core/Format.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

src/Core/Hook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

src/Core/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

src/Core/Meeting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

src/Core/Record.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
* BigBlueButton open source conferencing system - https://www.bigbluebutton.org/.
55
*
6-
* Copyright (c) 2016-2023 BigBlueButton Inc. and by respective authors (see below).
6+
* Copyright (c) 2016-2024 BigBlueButton Inc. and by respective authors (see below).
77
*
88
* This program is free software; you can redistribute it and/or modify it under the
99
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -15,7 +15,7 @@
1515
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
1616
*
1717
* You should have received a copy of the GNU Lesser General Public License along
18-
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
18+
* with BigBlueButton; if not, see <https://www.gnu.org/licenses/>.
1919
*/
2020

2121
namespace BigBlueButton\Core;

0 commit comments

Comments
 (0)