File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,9 @@ public function getQRMatrix():QRMatrix{
121
121
protected function addMatrixModifications (QRMatrix $ matrix ):QRMatrix {
122
122
123
123
if ($ this ->options ->addLogoSpace ){
124
- $ logoSpaceWidth = $ this ->options ->logoSpaceWidth ;
125
- $ logoSpaceHeight = $ this ->options ->logoSpaceHeight ;
126
-
127
124
// check whether one of the dimensions was omitted
128
- if ($ logoSpaceWidth === null || $ logoSpaceHeight === null ){
129
- $ logoSpaceWidth = ($ logoSpaceWidth ?? $ logoSpaceHeight ?? 0 );
130
- $ logoSpaceHeight = null ;
131
- }
125
+ $ logoSpaceWidth = ($ this ->options ->logoSpaceWidth ?? $ this ->options ->logoSpaceHeight ?? 0 );
126
+ $ logoSpaceHeight = ($ this ->options ->logoSpaceHeight ?? $ logoSpaceWidth );
132
127
133
128
$ matrix ->setLogoSpace (
134
129
$ logoSpaceWidth ,
You can’t perform that action at this time.
0 commit comments