core/EE_Error.core.php 1 location
|
@@ 1066-1072 (lines=7) @@
|
| 1063 |
|
* @ param string $line |
| 1064 |
|
* @ return string |
| 1065 |
|
*/ |
| 1066 |
|
public static function generate_error_code ( $file = '', $func = '', $line = '' ) { |
| 1067 |
|
$file = explode( '.', basename( $file )); |
| 1068 |
|
$error_code = ! empty( $file[0] ) ? $file[0] : ''; |
| 1069 |
|
$error_code .= ! empty( $func ) ? ' - ' . $func : ''; |
| 1070 |
|
$error_code .= ! empty( $line ) ? ' - ' . $line : ''; |
| 1071 |
|
return $error_code; |
| 1072 |
|
} |
| 1073 |
|
|
| 1074 |
|
|
| 1075 |
|
|
core/exceptions/BaseException.php 1 location
|
@@ 338-344 (lines=7) @@
|
| 335 |
|
* @param string $line |
| 336 |
|
* @return string |
| 337 |
|
*/ |
| 338 |
|
public static function generate_error_code( $file = '', $func = '', $line = '' ) { |
| 339 |
|
$file_bits = explode( '.', basename( $file ) ); |
| 340 |
|
$error_code = ! empty( $file_bits[0] ) ? $file_bits[0] : ''; |
| 341 |
|
$error_code .= ! empty( $func ) ? ' - ' . $func : ''; |
| 342 |
|
$error_code .= ! empty( $line ) ? ' - ' . $line : ''; |
| 343 |
|
return $error_code; |
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
|
| 347 |
|
|