@@ -27,13 +27,13 @@ discard block |
||
| 27 | 27 | * @return object Dismissible_Notices_Handler |
| 28 | 28 | */ |
| 29 | 29 | |
| 30 | -if ( ! function_exists( 'DNH' ) ) { |
|
| 30 | +if ( ! function_exists('DNH')) { |
|
| 31 | 31 | function DNH() { |
| 32 | 32 | return Dismissible_Notices_Handler::instance(); |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | -if ( ! function_exists( 'dnh_register_notice' ) ) { |
|
| 36 | +if ( ! function_exists('dnh_register_notice')) { |
|
| 37 | 37 | /** |
| 38 | 38 | * Register a new notice |
| 39 | 39 | * |
@@ -46,9 +46,9 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @return bool |
| 48 | 48 | */ |
| 49 | - function dnh_register_notice( $id, $type, $content, $args = array() ) { |
|
| 49 | + function dnh_register_notice($id, $type, $content, $args = array()) { |
|
| 50 | 50 | |
| 51 | - if ( ! function_exists( 'DNH' ) ) { |
|
| 51 | + if ( ! function_exists('DNH')) { |
|
| 52 | 52 | return false; |
| 53 | 53 | } |
| 54 | 54 | |
@@ -57,12 +57,12 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | DNH(); |
| 59 | 59 | |
| 60 | - return DNH()->register_notice( $id, $type, $content, $args ); |
|
| 60 | + return DNH()->register_notice($id, $type, $content, $args); |
|
| 61 | 61 | |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | -if ( ! function_exists( 'dnh_restore_notice' ) ) { |
|
| 65 | +if ( ! function_exists('dnh_restore_notice')) { |
|
| 66 | 66 | /** |
| 67 | 67 | * Restore a previously dismissed notice |
| 68 | 68 | * |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @return bool |
| 74 | 74 | */ |
| 75 | - function dnh_restore_notice( $id ) { |
|
| 75 | + function dnh_restore_notice($id) { |
|
| 76 | 76 | |
| 77 | - if ( ! function_exists( 'DNH' ) ) { |
|
| 77 | + if ( ! function_exists('DNH')) { |
|
| 78 | 78 | return false; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -83,12 +83,12 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | DNH(); |
| 85 | 85 | |
| 86 | - return DNH()->restore_notice( $id ); |
|
| 86 | + return DNH()->restore_notice($id); |
|
| 87 | 87 | |
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | -if ( ! function_exists( 'dnh_is_dismissed' ) ) { |
|
| 91 | +if ( ! function_exists('dnh_is_dismissed')) { |
|
| 92 | 92 | /** |
| 93 | 93 | * Check if a notice has been dismissed |
| 94 | 94 | * |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | * |
| 99 | 99 | * @return bool |
| 100 | 100 | */ |
| 101 | - function dnh_is_dismissed( $id ) { |
|
| 101 | + function dnh_is_dismissed($id) { |
|
| 102 | 102 | |
| 103 | - if ( ! function_exists( 'DNH' ) ) { |
|
| 103 | + if ( ! function_exists('DNH')) { |
|
| 104 | 104 | return false; |
| 105 | 105 | } |
| 106 | 106 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | DNH(); |
| 111 | 111 | |
| 112 | - return DNH()->is_dismissed( $id ); |
|
| 112 | + return DNH()->is_dismissed($id); |
|
| 113 | 113 | |
| 114 | 114 | } |
| 115 | 115 | } |