← All changes
|
backend/src/Services/InstallActions/DB/AbstractDatabaseTable.php
+1
-7
0.5
→
1.5.1
View file →
| @@ -1,18 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * @copyright © TMS-Plugins. All rights reserved. | |
| 4 | + * @copyright © Melograno Venture Studio. All rights reserved. | |
| 5 | 5 | * @licence See LICENCE.md for license details. |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace IvyForms\Services\InstallActions\DB; |
| 9 | 9 | |
| 10 | -// phpcs:disable PSR1.Files.SideEffects | |
| 11 | -if (!defined('ABSPATH')) { | |
| 12 | - exit; // Exit if accessed directly | |
| 13 | -} | |
| 14 | - | |
| 15 | 10 | use IvyForms\Common\Exceptions\InvalidArgumentException; |
| 16 | 11 | use IvyForms\Services\Translations\BackendStrings; |
| 17 | 12 | |
| 18 | 13 | /** |
| @@ -46,9 +41,8 @@ | ||
| 46 | 41 | */ |
| 47 | 42 | public static function init(): void |
| 48 | 43 | { |
| 49 | 44 | if (file_exists(ABSPATH . 'wp-admin/includes/upgrade.php')) { |
| 50 | - // @phpstan-ignore-next-line | |
| 51 | 45 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
| 52 | 46 | } |
| 53 | 47 | // @phpstan-ignore staticMethod.notFound |
| 54 | 48 | dbDelta(static::buildTable()); |