We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fda75f commit 6204f2cCopy full SHA for 6204f2c
src/AjaxHandler.php
@@ -12,6 +12,8 @@
12
*/
13
class AjaxHandler
14
{
15
+ public $log_handler;
16
+
17
public function __construct($log_handler)
18
19
$this->log_handler = $log_handler;
@@ -38,8 +40,8 @@ public function ajax_handle_errors()
38
40
return;
39
41
}
42
$file_issues = $this->log_handler->get_file_issues();
-
- if ( ! empty( $file_issues ) ) {
43
44
+ if (! empty($file_issues)) {
45
$this->ajax_header();
46
echo $file_issues;
47
die();
@@ -58,7 +60,7 @@ public function ajax_json_log()
58
60
59
61
62
$content = $this->log_handler->get_parsed_content();
- echo( json_encode(array_values($content)) );
63
+ echo json_encode(array_values($content));
64
65
66
0 commit comments