Skip to content

Commit

Permalink
Export pdf coding style: spacing and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amarin15 committed May 1, 2012
1 parent 97bf9b2 commit 2df14dd
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions libraries/export/pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

/**
* Adapted from a LGPL script by Philip Clarke
*
* @package PhpMyAdmin-Export
* @subpackage PDF
*/
Expand All @@ -78,23 +79,20 @@ function checkPageBreak($h = 0, $y = '', $addpage = true)
$this->AddPage($this->CurOrientation);
$this->y = $this->dataY;
$oldpage = $this->page - 1;

$this_page_orm = $this->pagedim[$this->page]['orm'];
$old_page_orm = $this->pagedim[$oldpage]['orm'];
$this_page_olm = $this->pagedim[$this->page]['olm'];
$old_page_olm = $this->pagedim[$oldpage]['olm'];
if ($this->rtl) {
if ($this->pagedim[$this->page]['orm']
!= $this->pagedim[$oldpage]['orm']
) {
$this->x = $x
- ($this->pagedim[$this->page]['orm']
- $this->pagedim[$oldpage]['orm']);
if ($this_page_orm!= $old_page_orm) {
$this->x = $x - ($this_page_orm - $old_page_orm);
} else {
$this->x = $x;
}
} else {
if ($this->pagedim[$this->page]['olm']
!= $this->pagedim[$oldpage]['olm']
) {
$this->x = $x
+ ($this->pagedim[$this->page]['olm']
- $this->pagedim[$oldpage]['olm']);
if ($this_page_olm != $old_page_olm) {
$this->x = $x + ($this_page_olm - $old_page_olm);
} else {
$this->x = $x;
}
Expand Down Expand Up @@ -134,7 +132,7 @@ function Header()
0,
$this->FontSizePt,
__('Database') . ': ' . $this->currentDb . ', '
. __('Table') . ': ' . $this->currentTable,
. __('Table') . ': ' . $this->currentTable,
0, 1, 'L'
);
$l = ($this->lMargin);
Expand Down

0 comments on commit 2df14dd

Please sign in to comment.