| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | static function sync() { |
||
| 20 | $values = self::constant_values(); |
||
| 21 | $constantCheckSum = self::getCheckSum( $values ); |
||
| 22 | |||
| 23 | if ( Jetpack_Options::get_option( 'constant_check_sum' ) !== $constantCheckSum ) { |
||
| 24 | Jetpack_Options::update_option( 'constant_check_sum', $constantCheckSum ); |
||
| 25 | |||
| 26 | return $values; |
||
| 27 | } |
||
| 28 | |||
| 29 | return null; |
||
| 30 | } |
||
| 31 | |||
| 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.