| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Core\Logger\Loggers; |
| 3 | 3 | |
| 4 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | - exit; // Exit if accessed directly. | |
| 5 | + exit; // Exit if accessed directly | |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | interface Logger_Interface { |
| 9 | 9 | const LEVEL_INFO = 'info'; |
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | public function log( $message, $type = self::LEVEL_INFO, $meta = [] ); |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param string $message |
| 26 | - * @param array $meta | |
| 26 | + * @param array $meta | |
| 27 | 27 | * |
| 28 | 28 | * @return void |
| 29 | 29 | */ |
| 30 | 30 | public function info( $message, $meta = [] ); |
| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | public function info( $message, $meta = [] ); |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param string $message |
| 34 | - * @param array $meta | |
| 34 | + * @param array $meta | |
| 35 | 35 | * |
| 36 | 36 | * @return void |
| 37 | 37 | */ |
| 38 | 38 | public function notice( $message, $meta = [] ); |
| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | public function notice( $message, $meta = [] ); |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @param string $message |
| 42 | - * @param array $meta | |
| 42 | + * @param array $meta | |
| 43 | 43 | * |
| 44 | 44 | * @return void |
| 45 | 45 | */ |
| 46 | 46 | public function warning( $message, $meta = [] ); |
| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | public function warning( $message, $meta = [] ); |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @param string $message |
| 50 | - * @param array $meta | |
| 50 | + * @param array $meta | |
| 51 | 51 | * |
| 52 | 52 | * @return void |
| 53 | 53 | */ |
| 54 | 54 | public function error( $message, $meta = [] ); |
| @@ -53,10 +53,12 @@ | ||
| 53 | 53 | */ |
| 54 | 54 | public function error( $message, $meta = [] ); |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | - * @param int $max_entries | |
| 58 | - * @param bool $table use <td> in format. | |
| 57 | + * @param int $max_entries | |
| 58 | + * @param bool $table use <td> in format | |
| 59 | + * | |
| 59 | 60 | * @return array [ 'key' => [ 'total_count' => int, 'count' => int, 'entries' => Log_Item[] ] ] |
| 60 | 61 | */ |
| 61 | 62 | public function get_formatted_log_entries( $max_entries, $table = true ); |
| 63 | + | |
| 62 | 64 | } |