@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $isHeaderOrFooter = true; |
84 | 84 | foreach ($this->headerElements as $element) { |
85 | 85 | if ($element instanceof ReportBaseElement) { |
86 | - $element->render($this,$isHeaderOrFooter); |
|
86 | + $element->render($this, $isHeaderOrFooter); |
|
87 | 87 | } elseif ($element === 'footnotetexts') { |
88 | 88 | $this->footnotes(); |
89 | 89 | } elseif ($element === 'addpage') { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | } |
93 | 93 | $isHeaderOrFooter = false; |
94 | - $this->breakPageHeaderHeight =$this->tcpdf->GetY(); |
|
94 | + $this->breakPageHeaderHeight = $this->tcpdf->GetY(); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $isHeaderOrFooter = true; |
145 | 145 | foreach ($this->footerElements as $element) { |
146 | 146 | if ($element instanceof ReportBaseElement) { |
147 | - $element->render($this,$isHeaderOrFooter); |
|
147 | + $element->render($this, $isHeaderOrFooter); |
|
148 | 148 | } elseif ($element === 'footnotetexts') { |
149 | 149 | $this->footnotes(); |
150 | 150 | } elseif ($element === 'addpage') { |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | |
338 | 338 | $this->header(); |
339 | 339 | // $this->tcpdf->setY($this->tcpdf->getPageHeight() - 75); |
340 | - $this->tcpdf->setY($this->tcpdf->getPageHeight()-$this->footer_margin-55); |
|
340 | + $this->tcpdf->setY($this->tcpdf->getPageHeight() - $this->footer_margin - 55); |
|
341 | 341 | $this->footer(); |
342 | 342 | $this->tcpdf->setY($this->breakPageHeaderHeight); |
343 | 343 | } |
@@ -353,16 +353,16 @@ discard block |
||
353 | 353 | { |
354 | 354 | // return $this->tcpdf->checkPageBreak($height); |
355 | 355 | $isPageBreaked = false; |
356 | - if(!$this->isHeaderOrFooter){ |
|
356 | + if (!$this->isHeaderOrFooter) { |
|
357 | 357 | $isPageBreaked = $this->tcpdf->checkPageBreak($height); |
358 | 358 | $this->tcpdf->setY($this->header_margin); |
359 | 359 | $this->header(); |
360 | 360 | // $this->tcpdf->setY($this->tcpdf->getPageHeight() - 75); |
361 | - $this->tcpdf->setY($this->tcpdf->getPageHeight()-$this->footer_margin-55); |
|
361 | + $this->tcpdf->setY($this->tcpdf->getPageHeight() - $this->footer_margin - 55); |
|
362 | 362 | $this->footer(); |
363 | 363 | $this->tcpdf->setY($this->breakPageHeaderHeight); |
364 | - return $isPageBreaked ; |
|
365 | - }else{ |
|
364 | + return $isPageBreaked; |
|
365 | + } else { |
|
366 | 366 | return false; |
367 | 367 | } |
368 | 368 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - public function render($renderer, bool $headerorfoot=false): void //sfqas |
|
39 | + public function render($renderer, bool $headerorfoot = false): void //sfqas |
|
40 | 40 | { |
41 | 41 | $temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text); |
42 | 42 | // underline «title» part of Source item |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } |
127 | 127 | // Add a new page if needed |
128 | 128 | //sfqas |
129 | - if ($renderer->tcpdf->checkPageBreak($cHT,null,false) and !$headerorfoot){ |
|
129 | + if ($renderer->tcpdf->checkPageBreak($cHT, null, false) and !$headerorfoot) { |
|
130 | 130 | if ($renderer->checkPageBreakPDF($cHT)) { |
131 | 131 | $this->top = $renderer->tcpdf->GetY(); |
132 | 132 | } |
@@ -31,12 +31,12 @@ |
||
31 | 31 | * |
32 | 32 | * @return void |
33 | 33 | */ |
34 | - public function render($renderer,bool $headerorfoot=false): void //sfqas |
|
34 | + public function render($renderer, bool $headerorfoot = false): void //sfqas |
|
35 | 35 | { |
36 | 36 | static $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright; |
37 | 37 | |
38 | 38 | // Check for a pagebreak first |
39 | - if ($renderer->tcpdf->checkPageBreak($this->height + 5,null,false) and !$headerorfoot){ //sfqas |
|
39 | + if ($renderer->tcpdf->checkPageBreak($this->height + 5, null, false) and !$headerorfoot) { //sfqas |
|
40 | 40 | $renderer->checkPageBreakPDF($this->height + 5); |
41 | 41 | $this->y = $renderer->tcpdf->GetY(); |
42 | 42 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @return void |
42 | 42 | */ |
43 | - public function render($renderer,bool $headerorfoot=false): void //sfqas |
|
43 | + public function render($renderer, bool $headerorfoot = false): void //sfqas |
|
44 | 44 | { |
45 | 45 | $newelements = []; |
46 | 46 | $lastelement = ''; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | } |
225 | 225 | // Add a new page if needed |
226 | 226 | if ($this->pagecheck) { |
227 | - if ($renderer->tcpdf->checkPageBreak($cH,null,false) and !$headerorfoot){ |
|
227 | + if ($renderer->tcpdf->checkPageBreak($cH, null, false) and !$headerorfoot) { |
|
228 | 228 | // Reset last cell height or Header/Footer will inherit it, in case of pagebreak |
229 | 229 | $renderer->lastCellHeight = 0; |
230 | 230 | if ($renderer->checkPageBreakPDF($cH)) { |