File tree 2 files changed +4
-6
lines changed
classes/reportbuilder/local/entities
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 17
17
namespace tool_emailutils \reportbuilder \local \entities ;
18
18
19
19
use lang_string ;
20
- use core \output \html_writer ;
21
20
use core_reportbuilder \local \entities \base ;
22
21
use core_reportbuilder \local \filters \number ;
23
22
use core_reportbuilder \local \report \column ;
@@ -107,7 +106,7 @@ protected function get_all_columns(): array {
107
106
->set_is_sortable (true )
108
107
->add_callback (function (int $ value ): string {
109
108
if ($ value >= helper::get_min_bounces ()) {
110
- return html_writer::span ($ value , 'alert alert-danger p-2 ' );
109
+ return \ html_writer::span ($ value , 'alert alert-danger p-2 ' );
111
110
}
112
111
return $ value ;
113
112
});
@@ -139,7 +138,7 @@ protected function get_all_columns(): array {
139
138
->add_callback (function (?float $ value ): string {
140
139
$ float = format_float ($ value , 2 );
141
140
if ($ value > helper::get_bounce_ratio ()) {
142
- return html_writer::span ($ float , 'alert alert-danger p-2 ' );
141
+ return \ html_writer::span ($ float , 'alert alert-danger p-2 ' );
143
142
}
144
143
return $ float ;
145
144
});
Original file line number Diff line number Diff line change 17
17
namespace tool_emailutils \reportbuilder \local \entities ;
18
18
19
19
use lang_string ;
20
- use core \output \html_writer ;
21
20
use core_reportbuilder \local \entities \base ;
22
21
use core_reportbuilder \local \filters \date ;
23
22
use core_reportbuilder \local \filters \text ;
@@ -123,9 +122,9 @@ protected function get_all_columns(): array {
123
122
if (empty ($ subtypes )) {
124
123
return '' ;
125
124
} else if (in_array ($ subtypes , sns_notification::BLOCK_IMMEDIATELY )) {
126
- return html_writer::span ($ subtypes , 'alert alert-danger p-2 ' );
125
+ return \ html_writer::span ($ subtypes , 'alert alert-danger p-2 ' );
127
126
} else if (in_array ($ subtypes , sns_notification::BLOCK_IMMEDIATELY )) {
128
- return html_writer::span ($ subtypes , 'alert alert-warning p-2 ' );
127
+ return \ html_writer::span ($ subtypes , 'alert alert-warning p-2 ' );
129
128
}
130
129
return $ subtypes ;
131
130
});
You can’t perform that action at this time.
0 commit comments