mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12120)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
use LibreNMS\Util\Laravel;
|
||||
|
||||
if (!function_exists('d_echo')) {
|
||||
if (! function_exists('d_echo')) {
|
||||
/**
|
||||
* Legacy convenience function - please use this instead of 'if ($debug) { echo ...; }'
|
||||
* Use Log directly in pure Laravel code!
|
||||
@@ -43,13 +43,13 @@ if (!function_exists('d_echo')) {
|
||||
print_r($text);
|
||||
}
|
||||
|
||||
if (!$debug && $no_debug_text) {
|
||||
if (! $debug && $no_debug_text) {
|
||||
echo "$no_debug_text";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('set_debug')) {
|
||||
if (! function_exists('set_debug')) {
|
||||
/**
|
||||
* Set debugging output
|
||||
*
|
||||
@@ -87,7 +87,7 @@ if (!function_exists('set_debug')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('array_pairs')) {
|
||||
if (! function_exists('array_pairs')) {
|
||||
/**
|
||||
* Get all consecutive pairs of values in an array.
|
||||
* [1,2,3,4] -> [[1,2],[2,3],[3,4]]
|
||||
|
||||
Reference in New Issue
Block a user