Skip to content

Commit 94ceefc

Browse files
committed
🚿
1 parent d7a02d0 commit 94ceefc

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/QROptionsTrait.php

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ trait QROptionsTrait{
8686
*/
8787

8888
/**
89-
* The output type
89+
* The built-in output type
9090
*
9191
* - QROutputInterface::MARKUP_XXXX where XXXX = HTML, SVG
9292
* - QROutputInterface::GDIMAGE_XXX where XXX = PNG, GIF, JPG
@@ -99,7 +99,7 @@ trait QROptionsTrait{
9999
protected string $outputType = QROutputInterface::MARKUP_SVG;
100100

101101
/**
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
103103
*/
104104
protected ?string $outputInterface = null;
105105

@@ -120,19 +120,19 @@ trait QROptionsTrait{
120120
protected bool $returnResource = false;
121121

122122
/**
123-
* /path/to/cache.file
123+
* Optional cache file path `/path/to/cache.file`
124124
*
125125
* please note that the $file parameter in QRCode::render*() takes precedence over the $cachefile value
126126
*/
127127
protected ?string $cachefile = null;
128128

129129
/**
130-
* toggle base64 or raw image data (if applicable)
130+
* Toggle base64 or raw image data (if applicable)
131131
*/
132132
protected bool $imageBase64 = true;
133133

134134
/**
135-
* newline string
135+
* Newline string
136136
*/
137137
protected string $eol = PHP_EOL;
138138

@@ -143,23 +143,23 @@ trait QROptionsTrait{
143143
/**
144144
* Sets the image background color (if applicable)
145145
*
146-
* - QRGdImage: defaults to "white"
147-
* - QRImagick: defaults to [255, 255, 255]
146+
* - QRImagick: defaults to "white"
147+
* - QRGdImage: defaults to [255, 255, 255]
148148
* - QRFpdf: defaults to blank internally (white page)
149149
*
150150
* @var mixed|null
151151
*/
152152
protected $bgColor = null;
153153

154154
/**
155-
* whether to draw the light (false) modules
155+
* Whether to draw the light (false) modules
156156
*
157157
* @var bool
158158
*/
159159
protected bool $drawLightModules = true;
160160

161161
/**
162-
* specify whether to draw the modules as filled circles
162+
* Specify whether to draw the modules as filled circles
163163
*
164164
* a note for GDImage output:
165165
*
@@ -174,24 +174,24 @@ trait QROptionsTrait{
174174
protected bool $drawCircularModules = false;
175175

176176
/**
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
178178
*/
179179
protected float $circleRadius = 0.45;
180180

181181
/**
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
183183
*/
184184
protected array $keepAsSquare = [];
185185

186186
/**
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.
188188
*
189189
* @see https://github.com/chillerlan/php-qrcode/issues/57
190190
*/
191191
protected bool $connectPaths = false;
192192

193193
/**
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
195195
*/
196196
protected array $excludeFromConnect = [];
197197

@@ -209,26 +209,26 @@ trait QROptionsTrait{
209209
protected bool $addLogoSpace = false;
210210

211211
/**
212-
* width of the logo space
212+
* Width of the logo space
213213
*
214214
* if only either $logoSpaceWidth or $logoSpaceHeight is given, the logo space is assumed a square of that size
215215
*/
216216
protected ?int $logoSpaceWidth = null;
217217

218218
/**
219-
* height of the logo space
219+
* Height of the logo space
220220
*
221221
* if only either $logoSpaceWidth or $logoSpaceHeight is given, the logo space is assumed a square of that size
222222
*/
223223
protected ?int $logoSpaceHeight = null;
224224

225225
/**
226-
* optional horizontal start position of the logo space (top left corner)
226+
* Optional horizontal start position of the logo space (top left corner)
227227
*/
228228
protected ?int $logoSpaceStartX = null;
229229

230230
/**
231-
* optional vertical start position of the logo space (top left corner)
231+
* Optional vertical start position of the logo space (top left corner)
232232
*/
233233
protected ?int $logoSpaceStartY = null;
234234

@@ -238,12 +238,12 @@ trait QROptionsTrait{
238238
*/
239239

240240
/**
241-
* pixel size of a QR code module
241+
* Pixel size of a QR code module
242242
*/
243243
protected int $scale = 5;
244244

245245
/**
246-
* toggle transparency
246+
* Toggle transparency
247247
*
248248
* - QRGdImage and QRImagick: the given {@see \chillerlan\QRCode\QROptions::$transparencyColor $transparencyColor} is set as transparent
249249
*
@@ -296,17 +296,17 @@ trait QROptionsTrait{
296296
*/
297297

298298
/**
299-
* a common css class
299+
* A common css class
300300
*/
301301
protected string $cssClass = 'qrcode';
302302

303303
/**
304-
* markup substitute for dark (CSS value)
304+
* Markup substitute for dark (CSS value)
305305
*/
306306
protected string $markupDark = '#000';
307307

308308
/**
309-
* markup substitute for light (CSS value)
309+
* Markup substitute for light (CSS value)
310310
*/
311311
protected string $markupLight = '#fff';
312312

@@ -328,14 +328,14 @@ trait QROptionsTrait{
328328
protected float $svgOpacity = 1.0;
329329

330330
/**
331-
* anything between <defs>
331+
* Anything in the <defs> tag
332332
*
333333
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs
334334
*/
335335
protected string $svgDefs = '';
336336

337337
/**
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.
339339
*
340340
* viewBox="0 0 x x"
341341
*
@@ -350,14 +350,14 @@ trait QROptionsTrait{
350350
protected string $svgPreserveAspectRatio = 'xMidYMid';
351351

352352
/**
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!)
354354
*
355355
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/width
356356
*/
357357
protected ?string $svgWidth = null;
358358

359359
/**
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!)
361361
*
362362
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/height
363363
*/
@@ -369,12 +369,12 @@ trait QROptionsTrait{
369369
*/
370370

371371
/**
372-
* string substitute for dark
372+
* String substitute for dark
373373
*/
374374
protected string $textDark = '🔴';
375375

376376
/**
377-
* string substitute for light
377+
* String substitute for light
378378
*/
379379
protected string $textLight = '';
380380

@@ -396,17 +396,17 @@ trait QROptionsTrait{
396396
*/
397397

398398
/**
399-
* use Imagick (if available) when reading QR Codes
399+
* Use Imagick (if available) when reading QR Codes
400400
*/
401401
protected bool $readerUseImagickIfAvailable = false;
402402

403403
/**
404-
* grayscale the image before reading
404+
* Grayscale the image before reading
405405
*/
406406
protected bool $readerGrayscale = false;
407407

408408
/**
409-
* increase the contrast before reading
409+
* Increase the contrast before reading
410410
*
411411
* note that applying contrast works different in GD and Imagick, so mileage may vary
412412
*/

0 commit comments

Comments
 (0)