diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-06-07 13:29:26 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-06-07 13:29:26 +0400 |
commit | 724fc4869f683c777565deb2a1baccb856c6156c (patch) | |
tree | 4bd0408a5376e1938c1363e0a7a5028b541e49ad /libraries | |
parent | 1a0471d8de4e13cec8eb9ad7be680746c8731d9c (diff) |
Wrap some long lines
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/schema/Pdf_Relation_Schema.class.php | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index c6948279ee..8b8339b79d 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -59,8 +59,9 @@ class PMA_Schema_PDF extends PMA_PDF * * @return void */ - function PMA_PDF_setScale($scale = 1, $xMin = 0, $yMin = 0, $leftMargin = -1, $topMargin = -1) - { + function PMA_PDF_setScale($scale = 1, $xMin = 0, $yMin = 0, + $leftMargin = -1, $topMargin = -1 + ) { $this->scale = $scale; $this->_xMin = $xMin; $this->_yMin = $yMin; @@ -90,8 +91,9 @@ class PMA_Schema_PDF extends PMA_PDF * * @see TCPDF::Cell() */ - function PMA_PDF_cellScale($w, $h = 0, $txt = '', $border = 0, $ln = 0, $align = '', $fill = 0, $link = '') - { + function PMA_PDF_cellScale($w, $h = 0, $txt = '', $border = 0, $ln = 0, + $align = '', $fill = 0, $link = '' + ) { $h = $h / $this->scale; $w = $w / $this->scale; $this->Cell($w, $h, $txt, $border, $ln, $align, $fill, $link); @@ -385,8 +387,9 @@ class Table_Stats * @see PMA_Schema_PDF, Table_Stats::Table_Stats_setWidth, * Table_Stats::Table_Stats_setHeight */ - function __construct($tableName, $fontSize, $pageNumber, &$sameWideWidth, $showKeys = false, $showInfo = false) - { + function __construct($tableName, $fontSize, $pageNumber, &$sameWideWidth, + $showKeys = false, $showInfo = false + ) { global $pdf, $cfgRelation, $db; $this->_tableName = $tableName; @@ -632,8 +635,9 @@ class Relation_Stats * * @see Relation_Stats::_getXy */ - function __construct($master_table, $master_field, $foreign_table, $foreign_field) - { + function __construct($master_table, $master_field, $foreign_table, + $foreign_field + ) { $src_pos = $this->_getXy($master_table, $master_field); $dest_pos = $this->_getXy($foreign_table, $foreign_field); /* @@ -691,7 +695,11 @@ class Relation_Stats { $pos = array_search($column, $table->fields); // x_left, x_right, y - return array($table->x, $table->x + + $table->width, $table->y + ($pos + 1.5) * $table->heightCell); + return array( + $table->x, + $table->x + $table->width, + $table->y + ($pos + 1.5) * $table->heightCell + ); } /** @@ -974,8 +982,9 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema * * @see _setMinMax */ - private function _addRelation($masterTable, $masterField, $foreignTable, $foreignField, $showInfo) - { + private function _addRelation($masterTable, $masterField, $foreignTable, + $foreignField, $showInfo + ) { if (! isset($this->tables[$masterTable])) { $this->tables[$masterTable] = new Table_Stats( $masterTable, $this->_ff, $this->pageNumber, @@ -1221,7 +1230,9 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema /** * Gets table keys and retains them */ - $result = PMA_DBI_query('SHOW KEYS FROM ' . PMA_backquote($table) . ';'); + $result = PMA_DBI_query( + 'SHOW KEYS FROM ' . PMA_backquote($table) . ';' + ); $primary = ''; $indexes = array(); $lastIndex = ''; |