Apply fixes from StyleCI (#12120)

This commit is contained in:
Jellyfrog
2020-09-21 15:40:17 +02:00
committed by GitHub
parent 77c531527c
commit 82f43cb98d
1733 changed files with 18337 additions and 18540 deletions
+4 -4
View File
@@ -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]]