Skip to content

Commit 2c8b204

Browse files
committed
:refactor: rename Debug Class
Signed-off-by: otengkwame <developerkwame@gmail.com>
1 parent cb37c26 commit 2c8b204

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Base\Debug;
44

5-
class AtEase
5+
class Error
66
{
77

88
private static int $suppressCount = 0;

Core/helpers/debug_helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
defined('COREPATH') or exit('No direct script access allowed');
33

44
use Base\Debug\Debug;
5-
use Base\Debug\AtEase;
5+
use Base\Debug\Error;
66

77
if ( ! function_exists( __NAMESPACE__ . '\\suppressWarnings' ) )
88
{
@@ -15,7 +15,7 @@
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

0 commit comments

Comments
 (0)