mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-26 21:54:16 +01:00
Use single quotes where possible.
This commit is contained in:
parent
adf9a7f833
commit
d6d4e3e58a
@ -39,17 +39,17 @@ require_once 'ykval-common.php';
|
||||
|
||||
# FIXME
|
||||
# otp and client ID should be moved to a munin environment variable
|
||||
$urls = otp2ksmurls ("ccccccccfnkjtvvijktfrvvginedlbvudjhjnggndtck", 16);
|
||||
$urls = otp2ksmurls('ccccccccfnkjtvvijktfrvvginedlbvudjhjnggndtck', 16);
|
||||
|
||||
$shortnames = array_map('short_name', $urls);
|
||||
|
||||
if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
|
||||
if ($argc == 2 && strcmp($argv[1], 'autoconf') == 0)
|
||||
{
|
||||
echo "yes\n";
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if ($argc == 2 && strcmp($argv[1], "config") == 0)
|
||||
if ($argc == 2 && strcmp($argv[1], 'config') == 0)
|
||||
{
|
||||
echo "multigraph ykval_ksmlatency\n";
|
||||
echo "graph_title KSM latency\n";
|
||||
|
@ -39,7 +39,7 @@ require_once 'ykval-common.php';
|
||||
|
||||
$urls = $baseParams['__YKVAL_SYNC_POOL__'];
|
||||
|
||||
$shortnames = array_map("short_name", $urls);
|
||||
$shortnames = array_map('short_name', $urls);
|
||||
foreach($shortnames as $val)
|
||||
{
|
||||
if ($val === FALSE)
|
||||
@ -49,7 +49,7 @@ foreach($shortnames as $val)
|
||||
}
|
||||
}
|
||||
|
||||
if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
|
||||
if ($argc == 2 && strcmp($argv[1], 'autoconf') == 0)
|
||||
{
|
||||
if (is_array($urls) && count($urls) > 0)
|
||||
{
|
||||
@ -61,7 +61,7 @@ if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if ($argc == 2 && strcmp($argv[1], "config") == 0)
|
||||
if ($argc == 2 && strcmp($argv[1], 'config') == 0)
|
||||
{
|
||||
echo "multigraph ykval_vallatency\n";
|
||||
echo "graph_title VAL latency\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user