| Conditions | 4 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 11 | public function log( $level, $message, array $context = array() ) { |
||
| 12 | if ( ! ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ) { |
||
| 13 | return; |
||
| 14 | } |
||
| 15 | |||
| 16 | /* @phpcs:ignore */ |
||
| 17 | error_log( strtoupper( $level ) . ': ' . $message . ' ' . ( ! empty( $context ) ? print_r( $context, true ) : '' ) ); |
||
| 18 | } |
||
| 22 |