| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | /* |
| 23 | 23 | * Show values of the arguments list |
| 24 | 24 | */ |
| 25 | 25 | if ( ! function_exists( 'debuge' ) ) { |
| 26 | - function debuge() { | |
| 26 | + function debuge() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound | |
| 27 | 27 | $numargs = func_num_args(); |
| 28 | 28 | $var = func_get_args(); |
| 29 | 29 | $makeexit = is_bool( $var[ count( $var ) - 1 ] ) ? $var[ count( $var ) - 1 ] : false; |
| 30 | 30 | echo "<div><pre class='prettyprint linenums'>"; // FixIn: 8.8.3.11. |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | * Example: show_debug( 'clear', -3 ); - show 3 last DIV elements. |
| 55 | 55 | */ |
| 56 | 56 | if ( ! function_exists( 'show_debug' ) ) { |
| 57 | 57 | // FixIn: 8.8.3.18. |
| 58 | - function show_debug() { | |
| 58 | + function show_debug() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound | |
| 59 | 59 | //TODO: 2023-09-19 13:42 Need to remake it relative to new 'create_booking.php' functionality. We can not simply echo here !!!! |
| 60 | 60 | if ( is_admin() && ( defined( 'DOING_AJAX' ) ) && ( DOING_AJAX ) ) { |
| 61 | 61 | } else { |
| 62 | 62 | return; |
| @@ -94,9 +94,9 @@ | ||
| 94 | 94 | /* |
| 95 | 95 | * Show Speed of the execution and number of queries. |
| 96 | 96 | */ |
| 97 | 97 | if ( ! function_exists( 'debuge_speed' ) ) { |
| 98 | - function debuge_speed() { | |
| 98 | + function debuge_speed() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound | |
| 99 | 99 | echo '<div style="font-size:18px;float:right;">' . esc_html( get_num_queries() ) . '/' . esc_html( timer_stop( 0, 3 ) ) . 'qps</div>'; |
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | 102 | |
| @@ -103,15 +103,15 @@ | ||
| 103 | 103 | /** |
| 104 | 104 | * Show error info |
| 105 | 105 | */ |
| 106 | 106 | if ( ! function_exists( 'debuge_error' ) ) { |
| 107 | - function debuge_error( $msg, $file_name = '', $line_num = '' ) { | |
| 107 | + function debuge_error( $msg, $file_name = '', $line_num = '' ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound | |
| 108 | 108 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 109 | 109 | echo get_debuge_error( $msg, $file_name, $line_num ); |
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | if ( ! function_exists( 'get_debuge_error' ) ) { |
| 113 | - function get_debuge_error( $msg, $file_name = '', $line_num = '' ) { | |
| 113 | + function get_debuge_error( $msg, $file_name = '', $line_num = '' ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound | |
| 114 | 114 | |
| 115 | 115 | return wpbc_get_debuge_error( $msg, $file_name, $line_num ); |
| 116 | 116 | } |
| 117 | 117 | } |