← All changes
|
vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php
+10
-4
1.5.3
→
trunk
View file →
| @@ -12,19 +12,25 @@ | ||
| 12 | 12 | */ |
| 13 | 13 | abstract class ActionScheduler_Abstract_Schema { |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @var int Increment this value in derived class to trigger a schema update. | |
| 16 | + * Increment this value in derived class to trigger a schema update. | |
| 17 | + * | |
| 18 | + * @var int | |
| 17 | 19 | */ |
| 18 | 20 | protected $schema_version = 1; |
| 19 | 21 | |
| 20 | 22 | /** |
| 21 | - * @var string Schema version stored in database. | |
| 23 | + * Schema version stored in database. | |
| 24 | + * | |
| 25 | + * @var string | |
| 22 | 26 | */ |
| 23 | 27 | protected $db_version; |
| 24 | 28 | |
| 25 | 29 | /** |
| 26 | - * @var array Names of tables that will be registered by this class. | |
| 30 | + * Names of tables that will be registered by this class. | |
| 31 | + * | |
| 32 | + * @var array | |
| 27 | 33 | */ |
| 28 | 34 | protected $tables = array(); |
| 29 | 35 | |
| 30 | 36 | /** |
| @@ -136,9 +142,9 @@ | ||
| 136 | 142 | if ( $definition ) { |
| 137 | 143 | $updated = dbDelta( $definition ); |
| 138 | 144 | foreach ( $updated as $updated_table => $update_description ) { |
| 139 | 145 | if ( strpos( $update_description, 'Created table' ) === 0 ) { |
| 140 | - do_action( 'action_scheduler/created_table', $updated_table, $table ); | |
| 146 | + do_action( 'action_scheduler/created_table', $updated_table, $table ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores | |
| 141 | 147 | } |
| 142 | 148 | } |
| 143 | 149 | } |
| 144 | 150 | } |