| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Core\Logger\Loggers; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Logger\Items\Base as Log_Item; |
| 5 | -use Elementor\Core\Logger\Items\Log_Item_Interface; | |
| 5 | +use Elementor\Core\Logger\Items\Log_Item_Interface as Log_Item_Interface; | |
| 6 | 6 | |
| 7 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | - exit; // Exit if accessed directly. | |
| 8 | + exit; // Exit if accessed directly | |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | abstract class Base implements Logger_Interface { |
| 12 | 12 | |
| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * @return Log_Item_Interface[] |
| 17 | 17 | */ |
| 18 | - abstract public function get_log(); | |
| 18 | + abstract protected function get_log(); | |
| 19 | 19 | |
| 20 | 20 | public function log( $item, $type = self::LEVEL_INFO, $args = [] ) { |
| 21 | 21 | if ( ! $item instanceof Log_Item ) { |
| 22 | 22 | $item = $this->create_item( $item, $type, $args ); |