Skip to content

Commit 334fe5a

Browse files
committed
🚿 phpcs happy
1 parent f72802c commit 334fe5a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/imageWithRoundedShapes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,28 @@ protected function module(int $x, int $y, int $M_TYPE):void{
6262
// Outer rounding
6363
// ------------------
6464

65-
if($neighbours & (1 << 7)){ // neighbour left
65+
if(($neighbours & (1 << 7))){ // neighbour left
6666
// top left
6767
imagefilledrectangle($this->image, $x1, $y1, ($x1 + $rectsize), ($y1 + $rectsize), $light);
6868
// bottom left
6969
imagefilledrectangle($this->image, $x1, ($y2 - $rectsize), ($x1 + $rectsize), $y2, $light);
7070
}
7171

72-
if($neighbours & (1 << 3)){ // neighbour right
72+
if(($neighbours & (1 << 3))){ // neighbour right
7373
// top right
7474
imagefilledrectangle($this->image, ($x2 - $rectsize), $y1, $x2, ($y1 + $rectsize), $light);
7575
// bottom right
7676
imagefilledrectangle($this->image, ($x2 - $rectsize), ($y2 - $rectsize), $x2, $y2, $light);
7777
}
7878

79-
if($neighbours & (1 << 1)){ // neighbour top
79+
if(($neighbours & (1 << 1))){ // neighbour top
8080
// top left
8181
imagefilledrectangle($this->image, $x1, $y1, ($x1 + $rectsize), ($y1 + $rectsize), $light);
8282
// top right
8383
imagefilledrectangle($this->image, ($x2 - $rectsize), $y1, $x2, ($y1 + $rectsize), $light);
8484
}
8585

86-
if($neighbours & (1 << 5)){ // neighbour bottom
86+
if(($neighbours & (1 << 5))){ // neighbour bottom
8787
// bottom left
8888
imagefilledrectangle($this->image, $x1, ($y2 - $rectsize), ($x1 + $rectsize), $y2, $light);
8989
// bottom right

examples/imagickImageAsBackground.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,3 @@ protected function set_background(string $background):void{
112112
}
113113

114114
exit;
115-
116-

examples/text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
$out = (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
4545

4646

47-
echo "\n\n\n$out\n\n\n";
47+
printf("\n\n\n%s\n\n\n", $out);
4848

4949
exit;

0 commit comments

Comments
 (0)