| @@ -11,9 +11,9 @@ | ||
| 11 | 11 | use Elementor\Modules\System_Info\Module as System_Info; |
| 12 | 12 | use Elementor\Utils; |
| 13 | 13 | |
| 14 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | - exit; // Exit if accessed directly. | |
| 15 | + exit; // Exit if accessed directly | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | class Manager extends BaseModule { |
| 19 | 19 | |
| @@ -117,8 +117,9 @@ | ||
| 117 | 117 | * |
| 118 | 118 | * Log Elementor errors and save them in the database. |
| 119 | 119 | * |
| 120 | 120 | * Fired by `wp_ajax_elementor_js_log` action. |
| 121 | + * | |
| 121 | 122 | */ |
| 122 | 123 | public function js_log() { |
| 123 | 124 | /** @var Module $ajax */ |
| 124 | 125 | $ajax = Plugin::$instance->common->get_component( 'ajax' ); |
| @@ -153,10 +154,10 @@ | ||
| 153 | 154 | |
| 154 | 155 | wp_send_json_success(); |
| 155 | 156 | } |
| 156 | 157 | |
| 157 | - public function register_logger( $name, $class_name ) { | |
| 158 | - $this->loggers[ $name ] = $class_name; | |
| 158 | + public function register_logger( $name, $class ) { | |
| 159 | + $this->loggers[ $name ] = $class; | |
| 159 | 160 | } |
| 160 | 161 | |
| 161 | 162 | public function set_default_logger( $name ) { |
| 162 | 163 | if ( ! empty( $this->loggers[ $name ] ) ) { |
| @@ -199,9 +200,9 @@ | ||
| 199 | 200 | } |
| 200 | 201 | |
| 201 | 202 | /** |
| 202 | 203 | * @param string $message |
| 203 | - * @param array $args | |
| 204 | + * @param array $args | |
| 204 | 205 | * |
| 205 | 206 | * @return void |
| 206 | 207 | */ |
| 207 | 208 | public function info( $message, $args = [] ) { |
| @@ -209,9 +210,9 @@ | ||
| 209 | 210 | } |
| 210 | 211 | |
| 211 | 212 | /** |
| 212 | 213 | * @param string $message |
| 213 | - * @param array $args | |
| 214 | + * @param array $args | |
| 214 | 215 | * |
| 215 | 216 | * @return void |
| 216 | 217 | */ |
| 217 | 218 | public function notice( $message, $args = [] ) { |
| @@ -219,9 +220,9 @@ | ||
| 219 | 220 | } |
| 220 | 221 | |
| 221 | 222 | /** |
| 222 | 223 | * @param string $message |
| 223 | - * @param array $args | |
| 224 | + * @param array $args | |
| 224 | 225 | * |
| 225 | 226 | * @return void |
| 226 | 227 | */ |
| 227 | 228 | public function warning( $message, $args = [] ) { |
| @@ -229,9 +230,9 @@ | ||
| 229 | 230 | } |
| 230 | 231 | |
| 231 | 232 | /** |
| 232 | 233 | * @param string $message |
| 233 | - * @param array $args | |
| 234 | + * @param array $args | |
| 234 | 235 | * |
| 235 | 236 | * @return void |
| 236 | 237 | */ |
| 237 | 238 | public function error( $message, $args = [] ) { |
| @@ -245,8 +246,9 @@ | ||
| 245 | 246 | E_USER_ERROR => Logger_Interface::LEVEL_ERROR, |
| 246 | 247 | E_COMPILE_ERROR => Logger_Interface::LEVEL_ERROR, |
| 247 | 248 | E_RECOVERABLE_ERROR => Logger_Interface::LEVEL_ERROR, |
| 248 | 249 | E_PARSE => Logger_Interface::LEVEL_ERROR, |
| 250 | + E_STRICT => Logger_Interface::LEVEL_ERROR, | |
| 249 | 251 | |
| 250 | 252 | E_WARNING => Logger_Interface::LEVEL_WARNING, |
| 251 | 253 | E_USER_WARNING => Logger_Interface::LEVEL_WARNING, |
| 252 | 254 | E_CORE_WARNING => Logger_Interface::LEVEL_WARNING, |