| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | View Code Duplication | static function update_option() { |
|
| 28 | $option = current_filter(); |
||
| 29 | $prefix = 'update_option_'; |
||
| 30 | if ( 0 !== strpos( $option, $prefix ) ) { |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | $option = substr( $option, strlen( $prefix ) ); |
||
| 34 | self::$sync[] = $option; |
||
| 35 | } |
||
| 36 | |||
| 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.