| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 8 | static function init() { |
||
| 9 | |||
| 10 | self::$client = Jetpack_Sync_Client::getInstance(); |
||
| 11 | |||
| 12 | // bind the do_sync process to shutdown |
||
| 13 | add_action( 'shutdown', array( self::$client, 'do_sync' ) ); |
||
| 14 | |||
| 15 | // bind the sending process |
||
| 16 | add_filter( 'jetpack_sync_client_send_data', array( __CLASS__, 'send_data' ) ); |
||
| 17 | |||
| 18 | // On jetpack registration |
||
| 19 | add_action( 'jetpack_site_registered', array( __CLASS__, 'schedule_full_sync' ) ); |
||
| 20 | } |
||
| 21 | |||
| 43 |
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.