Skip to content

Commit

Permalink
Fixed undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed Dec 3, 2018
1 parent 81d0593 commit 2c86699
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/Debug/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public static function log( $log ) {
public static function d( $log ) {

echo "<pre>";
print_r( $value );
print_r( $log );
echo "</pre>";

self::log( $value );
self::log( $log );
}

/**
Expand All @@ -81,10 +81,10 @@ public static function d( $log ) {
public static function ddd( $log ) {

echo "<pre>";
print_r( $value );
print_r( $log );
echo "</pre>";

self::log( $value );
self::log( $log );

die();
}
Expand Down
20 changes: 10 additions & 10 deletions src/debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ function debug( $log ) {
}
}

if ( ! function_exists( 'd' ) ) {
function d( $log ) {
Debug::d( $log );
}
}
// if ( ! function_exists( 'd' ) ) {
// function d( $log ) {
// Debug::d( $log );
// }
// }

if ( ! function_exists( 'ddd' ) ) {
function ddd( $log ) {
Debug::ddd( $log );
}
}
// if ( ! function_exists( 'ddd' ) ) {
// function ddd( $log ) {
// Debug::ddd( $log );
// }
// }

0 comments on commit 2c86699

Please sign in to comment.