@@ -33,7 +33,8 @@ discard block |
||
| 33 | 33 | $hash = md5($errno.$message.$file.$line); |
| 34 | 34 | if (array_key_exists($hash, $this->errors)) { |
| 35 | 35 | ++$this->errors[$hash]['count']; |
| 36 | - } else { |
|
| 36 | + } |
|
| 37 | + else { |
|
| 37 | 38 | $this->errors[$hash] = [ |
| 38 | 39 | 'count' => 0, |
| 39 | 40 | 'errno' => $errno, |
@@ -52,7 +53,8 @@ discard block |
||
| 52 | 53 | add_filter('all', [$controller, 'initProfiler']); |
| 53 | 54 | add_filter('all', [$controller, 'measureSlowActions']); |
| 54 | 55 | add_action('plugins_loaded', [$controller, 'registerLanguages']); |
| 55 | - add_action('init', function () use ($controller) { |
|
| 56 | + add_action('init', function () use ($controller) |
|
| 57 | + { |
|
| 56 | 58 | if (!apply_filters('blackbar/enabled', current_user_can('administrator'))) { |
| 57 | 59 | return; |
| 58 | 60 | } |