File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace Base \Debug ;
44
5- class AtEase
5+ class Error
66{
77
88 private static int $ suppressCount = 0 ;
Original file line number Diff line number Diff line change 22defined ('COREPATH ' ) or exit ('No direct script access allowed ' );
33
44use Base \Debug \Debug ;
5- use Base \Debug \AtEase ;
5+ use Base \Debug \Error ;
66
77if ( ! function_exists ( __NAMESPACE__ . '\\suppressWarnings ' ) )
88{
1515 * @param bool $end Whether to restore warnings
1616 */
1717 function shut_up ( $ end = false ) {
18- AtEase ::suppressWarnings ( $ end );
18+ Error ::suppressWarnings ( $ end );
1919 }
2020 }
2121
@@ -38,7 +38,7 @@ function shush( $end = false ) {
3838 * Restore error level to previous value
3939 */
4040 function speak_up () {
41- AtEase ::restoreWarnings ();
41+ Error ::restoreWarnings ();
4242 }
4343 }
4444
@@ -52,7 +52,7 @@ function speak_up() {
5252 * @return mixed
5353 */
5454 function keep_quiet ( callable $ callback , ...$ args ) {
55- return AtEase ::quietCall ( $ callback , ...$ args );
55+ return Error ::quietCall ( $ callback , ...$ args );
5656 }
5757 }
5858
You can’t perform that action at this time.
0 commit comments