File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ protected function paths():string{
40
40
41
41
// generate the path element(s) - in this case it's just one element as we've "disabled" several options
42
42
$ svg = parent ::paths ();
43
- // now we're lazy modifying the generated path to add the custom shapes for the finder patterns
44
- $ svg = str_replace ( ' "/> ' , $ this ->getFinderPatterns (). ' "/> ' , $ svg );
43
+ // add the custom shapes for the finder patterns
44
+ $ svg .= $ this ->getFinderPatterns ();
45
45
// and add the custom logo
46
46
$ svg .= $ this ->getLogo ();
47
47
@@ -99,7 +99,12 @@ protected function getFinderPatterns():string{
99
99
$ finder [] = sprintf ($ path , $ ix , $ iy );
100
100
}
101
101
102
- return implode (' ' , $ finder );
102
+ return sprintf (
103
+ '%s<path class="%s" d="%s"/> ' ,
104
+ $ this ->options ->eol ,
105
+ $ this ->getCssClass (QRMatrix::M_FINDER_DARK ),
106
+ implode (' ' , $ finder )
107
+ );
103
108
}
104
109
105
110
/**
You can’t perform that action at this time.
0 commit comments