1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-27 06:54:16 +01:00

Use single quotes where possible.

This commit is contained in:
Jean Paul Galea 2015-09-08 14:39:49 +02:00
parent adf9a7f833
commit d6d4e3e58a
2 changed files with 6 additions and 6 deletions

View File

@ -39,17 +39,17 @@ require_once 'ykval-common.php';
# FIXME # FIXME
# otp and client ID should be moved to a munin environment variable # 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); $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"; echo "yes\n";
exit(0); exit(0);
} }
if ($argc == 2 && strcmp($argv[1], "config") == 0) if ($argc == 2 && strcmp($argv[1], 'config') == 0)
{ {
echo "multigraph ykval_ksmlatency\n"; echo "multigraph ykval_ksmlatency\n";
echo "graph_title KSM latency\n"; echo "graph_title KSM latency\n";

View File

@ -39,7 +39,7 @@ require_once 'ykval-common.php';
$urls = $baseParams['__YKVAL_SYNC_POOL__']; $urls = $baseParams['__YKVAL_SYNC_POOL__'];
$shortnames = array_map("short_name", $urls); $shortnames = array_map('short_name', $urls);
foreach($shortnames as $val) foreach($shortnames as $val)
{ {
if ($val === FALSE) 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) if (is_array($urls) && count($urls) > 0)
{ {
@ -61,7 +61,7 @@ if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
exit(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 "multigraph ykval_vallatency\n";
echo "graph_title VAL latency\n"; echo "graph_title VAL latency\n";