diff --git a/galette/lib/Galette/IO/PdfMembersCards.php b/galette/lib/Galette/IO/PdfMembersCards.php index 52f9dadd8..380b00508 100644 --- a/galette/lib/Galette/IO/PdfMembersCards.php +++ b/galette/lib/Galette/IO/PdfMembersCards.php @@ -139,7 +139,7 @@ public function init(): void $print_logo = new PrintLogo(); $this->logofile = $print_logo->getPath(); - // Set logo size to max 20% width or max 25% height + // Set logo size to max 20% width or max 25% height $ratio = $print_logo->getWidth() / $print_logo->getHeight(); if ($ratio < 1.71) { if ($print_logo->getHeight() > 0.25 * $this->wi * 3.78) { @@ -232,8 +232,8 @@ public function drawCards(array $members): void $photofile = $photo->getPath(); // Photo 100x130 and logo - $this->Image($photofile, $x0 + 1 , $y0 + 1, round($this->wi / 3.5)); - $this->Image($this->logofile, $xl - 1 , $y0 + 1, round($this->wlogo)); + $this->Image($photofile, $x0 + 1, $y0 + 1, round($this->wi / 3.5)); + $this->Image($this->logofile, $xl - 1, $y0 + 1, round($this->wlogo)); // Color=#8C8C8C: Shadow of the year $this->SetTextColor(140); @@ -251,7 +251,7 @@ public function drawCards(array $members): void 'B', $this->year_font_size ) / 2 ; - $this->SetXY($xan_cot , $y0 + 1 ); + $this->SetXY($xan_cot, $y0 + 1); $this->writeHTML('' . $an_cot . '', false, 0); // Colored Text (Big label, id, year) $this->SetTextColor($fcol['R'], $fcol['G'], $fcol['B']); @@ -288,7 +288,7 @@ public function drawCards(array $members): void 8, 'B' ); - $this->SetXY($x0 + round($this->wi / 3.5) + 2 , $y0 + $this->hlogo + 3); + $this->SetXY($x0 + round($this->wi / 3.5) + 2, $y0 + $this->hlogo + 3); //$this->setX($x0 + 27); $this->writeHTML('' . $nom_adh_ext . '', true, 0); @@ -360,10 +360,10 @@ public static function getCols(): int { global $preferences; - $nbcols = round(((210 - $preferences->pref_card_marges_h * 2) / $preferences->pref_card_hsize),0,PHP_ROUND_HALF_DOWN) ; + $nbcols = round(((210 - $preferences->pref_card_marges_h * 2) / $preferences->pref_card_hsize), 0, PHP_ROUND_HALF_DOWN) ; if ((($nbcols - 1) * $preferences->pref_card_hspace + $preferences->pref_card_marges_h * 2 + $preferences->pref_card_hsize * $nbcols) > 210) { $nbcols = $nbcols - 1 ; - } + } return $nbcols ; } @@ -376,10 +376,10 @@ public static function getRows(): int { global $preferences; - $nbrows = round(((297 - $preferences->pref_card_marges_v * 2) / $preferences->pref_card_vsize),0,PHP_ROUND_HALF_DOWN) ; + $nbrows = round(((297 - $preferences->pref_card_marges_v * 2) / $preferences->pref_card_vsize), 0, PHP_ROUND_HALF_DOWN) ; if ((($nbrows - 1) * $preferences->pref_card_vspace + $preferences->pref_card_marges_v * 2 + $preferences->pref_card_vsize * $nbrows) > 297) { $nbrows = $nbrows - 1 ; - } + } return $nbrows ; }