| 1 | <?php |
||
| 3 | class Jetpack_Constants_Sync { |
||
| 4 | |||
| 5 | static $constants = array( |
||
|
|
|||
| 6 | 'EMPTY_TRASH_DAYS', |
||
| 7 | 'WP_POST_REVISIONS', |
||
| 8 | 'AUTOMATIC_UPDATER_DISABLED', |
||
| 9 | 'ABSPATH', |
||
| 10 | 'WP_CONTENT_DIR', |
||
| 11 | 'FS_METHOD', |
||
| 12 | 'DISALLOW_FILE_EDIT', |
||
| 13 | 'DISALLOW_FILE_MODS', |
||
| 14 | 'WP_AUTO_UPDATE_CORE', |
||
| 15 | 'WP_HTTP_BLOCK_EXTERNAL', |
||
| 16 | 'WP_ACCESSIBLE_HOSTS', |
||
| 17 | ); |
||
| 18 | |||
| 19 | static function sync() { |
||
| 31 | |||
| 32 | static function sync_all() { |
||
| 35 | |||
| 36 | static function getCheckSum( $values ) { |
||
| 39 | |||
| 40 | static function getQueryString( $values ) { |
||
| 43 | |||
| 44 | static function constant_values() { |
||
| 55 | |||
| 56 | static function getConstant( $constant ) { |
||
| 63 | |||
| 64 | } |
||
| 65 | |||
| 70 |
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.