| 1 | <?php |
||
| 7 | class Builder { |
||
| 8 | public $capability; |
||
| 9 | |||
| 10 | function create_capability( $name ) { |
||
| 14 | |||
| 15 | function get_capability() { |
||
| 18 | |||
| 19 | function require_wp_role( $wp_role ) { |
||
| 23 | |||
| 24 | function require_wp_capability( $wp_capability ) { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * For traditional Jetpack plans (free, personal, premium, professional ) this |
||
| 31 | * specifies the minimum plan required in required to perform the action |
||
| 32 | */ |
||
| 33 | function require_minimum_jetpack_plan( $jetpack_plan_level ) { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register a capability globally |
||
| 40 | */ |
||
| 41 | function register() { |
||
| 44 | } |
||
| 45 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.