Remove superfluous variable assignments

This commit is contained in:
2022-09-15 21:38:41 +02:00
parent c38f0146dc
commit 23232f4e6a
5 changed files with 9 additions and 15 deletions

View File

@ -386,11 +386,12 @@ final class MD_STD {
} while($running > 0);
$res = [];
foreach($urls as $i => $url) {
$keys = \array_keys($urls);
foreach($keys as $i){
$res[$i] = \curl_multi_getcontent($curl_array[$i]) ?: '';
}
foreach($urls as $i => $url){
foreach($keys as $i){
\curl_multi_remove_handle($mh, $curl_array[$i]);
}
\curl_multi_close($mh);
@ -579,8 +580,7 @@ final class MD_STD {
*/
public static function openssl_random_pseudo_bytes(int $length):string {
$output = \openssl_random_pseudo_bytes($length);
return $output;
return \openssl_random_pseudo_bytes($length);
}
@ -750,8 +750,7 @@ final class MD_STD {
*/
public static function string_to_color_code(string $str):string {
$code = \substr(\dechex(\crc32($str)), 0, 6);
return $code;
return \substr(\dechex(\crc32($str)), 0, 6);
}