composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -24,13 +24,13 @@ final class Php56
public static function hash_equals($knownString, $userInput)
{
if (!\is_string($knownString)) {
trigger_error('Expected known_string to be a string, '.gettype($knownString).' given', E_USER_WARNING);
trigger_error('Expected known_string to be a string, '.\gettype($knownString).' given', E_USER_WARNING);
return false;
}
if (!\is_string($userInput)) {
trigger_error('Expected user_input to be a string, '.gettype($userInput).' given', E_USER_WARNING);
trigger_error('Expected user_input to be a string, '.\gettype($userInput).' given', E_USER_WARNING);
return false;
}
@@ -124,11 +124,11 @@ final class Php56
// Encode leading/trailing spaces if self::LDAP_ESCAPE_DN is passed
if ($flags & self::LDAP_ESCAPE_DN) {
if ($result[0] === ' ') {
if (' ' === $result[0]) {
$result = '\\20'.substr($result, 1);
}
if ($result[\strlen($result) - 1] === ' ') {
if (' ' === $result[\strlen($result) - 1]) {
$result = substr($result, 0, -1).'\\20';
}
}