@@ -86,7 +86,7 @@ trait QROptionsTrait{
86
86
*/
87
87
88
88
/**
89
- * The output type
89
+ * The built-in output type
90
90
*
91
91
* - QROutputInterface::MARKUP_XXXX where XXXX = HTML, SVG
92
92
* - QROutputInterface::GDIMAGE_XXX where XXX = PNG, GIF, JPG
@@ -99,7 +99,7 @@ trait QROptionsTrait{
99
99
protected string $ outputType = QROutputInterface::MARKUP_SVG ;
100
100
101
101
/**
102
- * the FQCN of the custom QROutputInterface if $outputType is set to QRCode::OUTPUT_CUSTOM
102
+ * The FQCN of the custom QROutputInterface if $outputType is set to QRCode::OUTPUT_CUSTOM
103
103
*/
104
104
protected ?string $ outputInterface = null ;
105
105
@@ -120,19 +120,19 @@ trait QROptionsTrait{
120
120
protected bool $ returnResource = false ;
121
121
122
122
/**
123
- * /path/to/cache.file
123
+ * Optional cache file path ` /path/to/cache.file`
124
124
*
125
125
* please note that the $file parameter in QRCode::render*() takes precedence over the $cachefile value
126
126
*/
127
127
protected ?string $ cachefile = null ;
128
128
129
129
/**
130
- * toggle base64 or raw image data (if applicable)
130
+ * Toggle base64 or raw image data (if applicable)
131
131
*/
132
132
protected bool $ imageBase64 = true ;
133
133
134
134
/**
135
- * newline string
135
+ * Newline string
136
136
*/
137
137
protected string $ eol = PHP_EOL ;
138
138
@@ -143,23 +143,23 @@ trait QROptionsTrait{
143
143
/**
144
144
* Sets the image background color (if applicable)
145
145
*
146
- * - QRGdImage : defaults to "white"
147
- * - QRImagick : defaults to [255, 255, 255]
146
+ * - QRImagick : defaults to "white"
147
+ * - QRGdImage : defaults to [255, 255, 255]
148
148
* - QRFpdf: defaults to blank internally (white page)
149
149
*
150
150
* @var mixed|null
151
151
*/
152
152
protected $ bgColor = null ;
153
153
154
154
/**
155
- * whether to draw the light (false) modules
155
+ * Whether to draw the light (false) modules
156
156
*
157
157
* @var bool
158
158
*/
159
159
protected bool $ drawLightModules = true ;
160
160
161
161
/**
162
- * specify whether to draw the modules as filled circles
162
+ * Specify whether to draw the modules as filled circles
163
163
*
164
164
* a note for GDImage output:
165
165
*
@@ -174,24 +174,24 @@ trait QROptionsTrait{
174
174
protected bool $ drawCircularModules = false ;
175
175
176
176
/**
177
- * specifies the radius of the modules when $drawCircularModules is set to true
177
+ * Specifies the radius of the modules when $drawCircularModules is set to true
178
178
*/
179
179
protected float $ circleRadius = 0.45 ;
180
180
181
181
/**
182
- * specifies which module types to exclude when $drawCircularModules is set to true
182
+ * Specifies which module types to exclude when $drawCircularModules is set to true
183
183
*/
184
184
protected array $ keepAsSquare = [];
185
185
186
186
/**
187
- * whether to connect the paths for the several module types to avoid weird glitches when using gradients etc.
187
+ * Whether to connect the paths for the several module types to avoid weird glitches when using gradients etc.
188
188
*
189
189
* @see https://github.com/chillerlan/php-qrcode/issues/57
190
190
*/
191
191
protected bool $ connectPaths = false ;
192
192
193
193
/**
194
- * specify which paths/patterns to exclude from connecting if $connectPaths is set to true
194
+ * Specify which paths/patterns to exclude from connecting if $connectPaths is set to true
195
195
*/
196
196
protected array $ excludeFromConnect = [];
197
197
@@ -209,26 +209,26 @@ trait QROptionsTrait{
209
209
protected bool $ addLogoSpace = false ;
210
210
211
211
/**
212
- * width of the logo space
212
+ * Width of the logo space
213
213
*
214
214
* if only either $logoSpaceWidth or $logoSpaceHeight is given, the logo space is assumed a square of that size
215
215
*/
216
216
protected ?int $ logoSpaceWidth = null ;
217
217
218
218
/**
219
- * height of the logo space
219
+ * Height of the logo space
220
220
*
221
221
* if only either $logoSpaceWidth or $logoSpaceHeight is given, the logo space is assumed a square of that size
222
222
*/
223
223
protected ?int $ logoSpaceHeight = null ;
224
224
225
225
/**
226
- * optional horizontal start position of the logo space (top left corner)
226
+ * Optional horizontal start position of the logo space (top left corner)
227
227
*/
228
228
protected ?int $ logoSpaceStartX = null ;
229
229
230
230
/**
231
- * optional vertical start position of the logo space (top left corner)
231
+ * Optional vertical start position of the logo space (top left corner)
232
232
*/
233
233
protected ?int $ logoSpaceStartY = null ;
234
234
@@ -238,12 +238,12 @@ trait QROptionsTrait{
238
238
*/
239
239
240
240
/**
241
- * pixel size of a QR code module
241
+ * Pixel size of a QR code module
242
242
*/
243
243
protected int $ scale = 5 ;
244
244
245
245
/**
246
- * toggle transparency
246
+ * Toggle transparency
247
247
*
248
248
* - QRGdImage and QRImagick: the given {@see \chillerlan\QRCode\QROptions::$transparencyColor $transparencyColor} is set as transparent
249
249
*
@@ -296,17 +296,17 @@ trait QROptionsTrait{
296
296
*/
297
297
298
298
/**
299
- * a common css class
299
+ * A common css class
300
300
*/
301
301
protected string $ cssClass = 'qrcode ' ;
302
302
303
303
/**
304
- * markup substitute for dark (CSS value)
304
+ * Markup substitute for dark (CSS value)
305
305
*/
306
306
protected string $ markupDark = '#000 ' ;
307
307
308
308
/**
309
- * markup substitute for light (CSS value)
309
+ * Markup substitute for light (CSS value)
310
310
*/
311
311
protected string $ markupLight = '#fff ' ;
312
312
@@ -328,14 +328,14 @@ trait QROptionsTrait{
328
328
protected float $ svgOpacity = 1.0 ;
329
329
330
330
/**
331
- * anything between <defs>
331
+ * Anything in the <defs> tag
332
332
*
333
333
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs
334
334
*/
335
335
protected string $ svgDefs = '' ;
336
336
337
337
/**
338
- * SVG viewBox size. a single integer number which defines width/height of the viewBox attribute.
338
+ * SVG viewBox size. A single integer number which defines width/height of the viewBox attribute.
339
339
*
340
340
* viewBox="0 0 x x"
341
341
*
@@ -350,14 +350,14 @@ trait QROptionsTrait{
350
350
protected string $ svgPreserveAspectRatio = 'xMidYMid ' ;
351
351
352
352
/**
353
- * optional "width" attribute with the specified value (note that the value is not checked!)
353
+ * Optional "width" attribute with the specified value (note that the value is not checked!)
354
354
*
355
355
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/width
356
356
*/
357
357
protected ?string $ svgWidth = null ;
358
358
359
359
/**
360
- * optional "height" attribute with the specified value (note that the value is not checked!)
360
+ * Optional "height" attribute with the specified value (note that the value is not checked!)
361
361
*
362
362
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/height
363
363
*/
@@ -369,12 +369,12 @@ trait QROptionsTrait{
369
369
*/
370
370
371
371
/**
372
- * string substitute for dark
372
+ * String substitute for dark
373
373
*/
374
374
protected string $ textDark = '🔴 ' ;
375
375
376
376
/**
377
- * string substitute for light
377
+ * String substitute for light
378
378
*/
379
379
protected string $ textLight = '⭕ ' ;
380
380
@@ -396,17 +396,17 @@ trait QROptionsTrait{
396
396
*/
397
397
398
398
/**
399
- * use Imagick (if available) when reading QR Codes
399
+ * Use Imagick (if available) when reading QR Codes
400
400
*/
401
401
protected bool $ readerUseImagickIfAvailable = false ;
402
402
403
403
/**
404
- * grayscale the image before reading
404
+ * Grayscale the image before reading
405
405
*/
406
406
protected bool $ readerGrayscale = false ;
407
407
408
408
/**
409
- * increase the contrast before reading
409
+ * Increase the contrast before reading
410
410
*
411
411
* note that applying contrast works different in GD and Imagick, so mileage may vary
412
412
*/
0 commit comments