@@ -27,7 +27,7 @@ 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 | return; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @return bool |
| 49 | 49 | */ |
| 50 | -function dnh_register_notice( $id, $type, $content, $args = array() ) { |
|
| 50 | +function dnh_register_notice($id, $type, $content, $args = array()) { |
|
| 51 | 51 | |
| 52 | - if ( ! function_exists( 'DNH' ) ) { |
|
| 52 | + if ( ! function_exists('DNH')) { |
|
| 53 | 53 | return false; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | DNH(); |
| 60 | 60 | |
| 61 | - return DNH()->register_notice( $id, $type, $content, $args ); |
|
| 61 | + return DNH()->register_notice($id, $type, $content, $args); |
|
| 62 | 62 | |
| 63 | 63 | } |
| 64 | 64 | |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @return bool |
| 73 | 73 | */ |
| 74 | -function dnh_restore_notice( $id ) { |
|
| 74 | +function dnh_restore_notice($id) { |
|
| 75 | 75 | |
| 76 | - if ( ! function_exists( 'DNH' ) ) { |
|
| 76 | + if ( ! function_exists('DNH')) { |
|
| 77 | 77 | return false; |
| 78 | 78 | } |
| 79 | 79 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | DNH(); |
| 84 | 84 | |
| 85 | - return DNH()->restore_notice( $id ); |
|
| 85 | + return DNH()->restore_notice($id); |
|
| 86 | 86 | |
| 87 | 87 | } |
| 88 | 88 | |
@@ -95,9 +95,9 @@ discard block |
||
| 95 | 95 | * |
| 96 | 96 | * @return bool |
| 97 | 97 | */ |
| 98 | -function dnh_is_dismissed( $id ) { |
|
| 98 | +function dnh_is_dismissed($id) { |
|
| 99 | 99 | |
| 100 | - if ( ! function_exists( 'DNH' ) ) { |
|
| 100 | + if ( ! function_exists('DNH')) { |
|
| 101 | 101 | return false; |
| 102 | 102 | } |
| 103 | 103 | |
@@ -106,6 +106,6 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | DNH(); |
| 108 | 108 | |
| 109 | - return DNH()->is_dismissed( $id ); |
|
| 109 | + return DNH()->is_dismissed($id); |
|
| 110 | 110 | |
| 111 | 111 | } |