Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
60.00% |
3 / 5 |
|
75.00% |
3 / 4 |
CRAP | |
0.00% |
0 / 1 |
| Migration320Beta2 | |
60.00% |
3 / 5 |
|
75.00% |
3 / 4 |
5.02 | |
0.00% |
0 / 1 |
| getVersion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getDependencies | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getDescription | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| up | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Migration for phpMyFAQ 3.2.0-beta.2. |
| 5 | * |
| 6 | * This Source Code Form is subject to the terms of the Mozilla Public License, |
| 7 | * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
| 8 | * obtain one at https://mozilla.org/MPL/2.0/. |
| 9 | * |
| 10 | * @package phpMyFAQ |
| 11 | * @author Thorsten Rinne <thorsten@phpmyfaq.de> |
| 12 | * @copyright 2023-2026 phpMyFAQ Team |
| 13 | * @license https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
| 14 | * @link https://www.phpmyfaq.de |
| 15 | * @since 2026-01-25 |
| 16 | */ |
| 17 | |
| 18 | declare(strict_types=1); |
| 19 | |
| 20 | namespace phpMyFAQ\Setup\Migration\Versions; |
| 21 | |
| 22 | use phpMyFAQ\Setup\Migration\AbstractMigration; |
| 23 | use phpMyFAQ\Setup\Migration\Operations\OperationRecorder; |
| 24 | |
| 25 | readonly class Migration320Beta2 extends AbstractMigration |
| 26 | { |
| 27 | public function getVersion(): string |
| 28 | { |
| 29 | return '3.2.0-beta.2'; |
| 30 | } |
| 31 | |
| 32 | public function getDependencies(): array |
| 33 | { |
| 34 | return ['3.2.0-beta']; |
| 35 | } |
| 36 | |
| 37 | public function getDescription(): string |
| 38 | { |
| 39 | return 'HTML support for contact information, rename contactInformations'; |
| 40 | } |
| 41 | |
| 42 | public function up(OperationRecorder $recorder): void |
| 43 | { |
| 44 | $recorder->addConfig('main.contactInformationHTML', false); |
| 45 | $recorder->renameConfig('main.contactInformations', 'main.contactInformation'); |
| 46 | } |
| 47 | } |