@@ -35,18 +35,18 @@ public function serialize(iterable $links): ?string
35
35
continue ;
36
36
}
37
37
38
- $ attributesParts = ['' , sprintf ('rel="%s" ' , implode (' ' , $ link ->getRels ()))];
38
+ $ attributesParts = ['' , \ sprintf ('rel="%s" ' , implode (' ' , $ link ->getRels ()))];
39
39
foreach ($ link ->getAttributes () as $ key => $ value ) {
40
40
if (\is_array ($ value )) {
41
41
foreach ($ value as $ v ) {
42
- $ attributesParts [] = sprintf ('%s="%s" ' , $ key , preg_replace ('/(?<! \\\\)"/ ' , '\" ' , $ v ));
42
+ $ attributesParts [] = \ sprintf ('%s="%s" ' , $ key , preg_replace ('/(?<! \\\\)"/ ' , '\" ' , $ v ));
43
43
}
44
44
45
45
continue ;
46
46
}
47
47
48
48
if (!\is_bool ($ value )) {
49
- $ attributesParts [] = sprintf ('%s="%s" ' , $ key , preg_replace ('/(?<! \\\\)"/ ' , '\" ' , $ value ));
49
+ $ attributesParts [] = \ sprintf ('%s="%s" ' , $ key , preg_replace ('/(?<! \\\\)"/ ' , '\" ' , $ value ));
50
50
51
51
continue ;
52
52
}
@@ -56,7 +56,7 @@ public function serialize(iterable $links): ?string
56
56
}
57
57
}
58
58
59
- $ elements [] = sprintf ('<%s>%s ' , $ link ->getHref (), implode ('; ' , $ attributesParts ));
59
+ $ elements [] = \ sprintf ('<%s>%s ' , $ link ->getHref (), implode ('; ' , $ attributesParts ));
60
60
}
61
61
62
62
return $ elements ? implode (', ' , $ elements ) : null ;
0 commit comments