| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | static function init_option( $option ) { |
||
| 18 | add_action( "delete_option_{$option}", array( __CLASS__, 'delete_option' ) ); |
||
| 19 | add_action( "update_option_{$option}", array( __CLASS__, 'update_option' ) ); |
||
| 20 | add_action( "add_option_{$option}", array( __CLASS__, 'add_option' ) ); |
||
| 21 | } |
||
| 22 | |||
| 48 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.