@@ -74,9 +74,9 @@ class PMA_Table
7474 /**
7575 * Constructor
7676 *
77- * @param string $table_name table name
78- * @param string $db_name database name
79- * @param PMA_DatabaseInterface $dbi database interface for the table
77+ * @param string $table_name table name
78+ * @param string $db_name database name
79+ * @param PMA_DatabaseInterface $dbi database interface for the table
8080 */
8181 function __construct ($ table_name , $ db_name , PMA_DatabaseInterface $ dbi = null )
8282 {
@@ -1625,7 +1625,7 @@ protected function loadUiPrefs()
16251625 $ server_id = $ GLOBALS ['server ' ];
16261626
16271627 // set session variable if it's still undefined
1628- if (! isset ($ _SESSION ['tmpval ' ]['table_uiprefs ' ][$ server_id ][$ this ->_db_name ][$ this ->_name ])) {
1628+ if (!isset ($ _SESSION ['tmpval ' ]['table_uiprefs ' ][$ server_id ][$ this ->_db_name ][$ this ->_name ])) {
16291629 // check whether we can get from pmadb
16301630 $ _SESSION ['tmpval ' ]['table_uiprefs ' ][$ server_id ][$ this ->_db_name ]
16311631 [$ this ->_name ] = $ cfgRelation ['uiprefswork ' ]
@@ -1819,11 +1819,14 @@ public function getReservedColumnNames()
18191819 public function getNameAndTypeOfTheColumns ()
18201820 {
18211821 $ columns = array ();
1822- foreach ($ this ->_dbi ->getColumnsFull ($ this ->_db_name , $ this ->_name ) as $ row ) {
1822+ foreach ($ this ->_dbi ->getColumnsFull (
1823+ $ this ->_db_name , $ this ->_name
1824+ ) as $ row ) {
18231825 if (preg_match ('@^(set|enum)\((.+)\)$@i ' , $ row ['Type ' ], $ tmp )) {
1824- $ tmp [2 ] = /*overload*/ mb_substr (
1825- preg_replace ('@([^,]) \'\'@ ' , '\\1 \\\'' , ', ' . $ tmp [2 ]), 1
1826- );
1826+ $ tmp [2 ] = /*overload*/
1827+ mb_substr (
1828+ preg_replace ('@([^,]) \'\'@ ' , '\\1 \\\'' , ', ' . $ tmp [2 ]), 1
1829+ );
18271830 $ columns [$ row ['Field ' ]] = $ tmp [1 ] . '( '
18281831 . str_replace (', ' , ', ' , $ tmp [2 ]) . ') ' ;
18291832 } else {
@@ -1836,7 +1839,8 @@ public function getNameAndTypeOfTheColumns()
18361839 /**
18371840 * Get index with index name
18381841 *
1839- * @param $index
1842+ * @param string $index Index name
1843+ *
18401844 * @return PMA_Index
18411845 */
18421846 public function getIndex ($ index )
@@ -1890,7 +1894,9 @@ public function getSqlQueryForIndexCreateOrEdit($index, &$error)
18901894 case 'INDEX ' :
18911895 case 'SPATIAL ' :
18921896 if ($ index ->getName () == 'PRIMARY ' ) {
1893- $ error = PMA_Message::error (__ ('Can \'t rename index to PRIMARY! ' ));
1897+ $ error = PMA_Message::error (
1898+ __ ('Can \'t rename index to PRIMARY! ' )
1899+ );
18941900 }
18951901 $ sql_query .= sprintf (
18961902 ' ADD %s ' ,
0 commit comments