Using ${var} in strings is deprecated, use {$var} instead
This commit is contained in:
@@ -115,7 +115,7 @@ class Authparams
|
|||||||
* http://localhost/rest/authentication/ | jq -r
|
* http://localhost/rest/authentication/ | jq -r
|
||||||
* curl -s \
|
* curl -s \
|
||||||
* -H "Accept: application/json" \
|
* -H "Accept: application/json" \
|
||||||
* -H "Authentication: Bearer ${BearerToken}" \
|
* -H "Authentication: Bearer {$BearerToken}" \
|
||||||
* http://localhost/rest/api/
|
* http://localhost/rest/api/
|
||||||
* The real verification are done in authjwt, as we can not have the
|
* The real verification are done in authjwt, as we can not have the
|
||||||
* jwtServerKey defined in property : the execution is done in constructor
|
* jwtServerKey defined in property : the execution is done in constructor
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ class Console
|
|||||||
}
|
}
|
||||||
foreach ($completeArr as $key => $val) {
|
foreach ($completeArr as $key => $val) {
|
||||||
if ($isAssoc) {
|
if ($isAssoc) {
|
||||||
printf("%-${maxlen}s %s\n", $key, $val);
|
printf("%-{$maxlen}s %s\n", $key, $val);
|
||||||
} elseif (trim($val) === "") {
|
} elseif (trim($val) === "") {
|
||||||
// TODO : Define the string to display for ending string
|
// TODO : Define the string to display for ending string
|
||||||
echo "<br>\n";
|
echo "<br>\n";
|
||||||
@@ -822,7 +822,7 @@ class Console
|
|||||||
$this->consoleException("ColorNum provided to colorText is not an " .
|
$this->consoleException("ColorNum provided to colorText is not an " .
|
||||||
"integer");
|
"integer");
|
||||||
}
|
}
|
||||||
echo "\033[38;5;${colorNum}m";
|
echo "\033[38;5;{$colorNum}m";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set the background text color
|
/** Set the background text color
|
||||||
@@ -834,7 +834,7 @@ class Console
|
|||||||
$this->consoleException("ColorNum provided to colorBackgroundText not " .
|
$this->consoleException("ColorNum provided to colorBackgroundText not " .
|
||||||
"an integer");
|
"an integer");
|
||||||
}
|
}
|
||||||
echo "\033[48;5;${colorNum}m";
|
echo "\033[48;5;{$colorNum}m";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Reset the colors
|
/** Reset the colors
|
||||||
@@ -854,7 +854,7 @@ class Console
|
|||||||
} else {
|
} else {
|
||||||
$underline = "";
|
$underline = "";
|
||||||
}
|
}
|
||||||
echo "\033[${underline}4m";
|
echo "\033[{$underline}4m";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Bold the text
|
/** Bold the text
|
||||||
@@ -867,7 +867,7 @@ class Console
|
|||||||
} else {
|
} else {
|
||||||
$bold = 1;
|
$bold = 1;
|
||||||
}
|
}
|
||||||
echo "\033[${bold}m";
|
echo "\033[{$bold}m";
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return true if the TTY is enabled, or false if the program is called from pipe
|
/** Return true if the TTY is enabled, or false if the program is called from pipe
|
||||||
|
|||||||
@@ -190,6 +190,6 @@ class Convert
|
|||||||
$display = $value;
|
$display = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf("%.${decimals}f", $display) . $size[$factor] . $unit;
|
return sprintf("%.{$decimals}f", $display) . $size[$factor] . $unit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user