Skip to content

Commit

Permalink
Merge pull request #1798 from udan11/coding_style
Browse files Browse the repository at this point in the history
Miscellaneous coding style fixes
  • Loading branch information
lem9 committed Jul 18, 2015
2 parents e4d4349 + 236e0b6 commit 48044b5
Show file tree
Hide file tree
Showing 460 changed files with 130 additions and 584 deletions.
2 changes: 0 additions & 2 deletions PMAStandard/Sniffs/Files/SpacesAroundConcatSniff.php
Expand Up @@ -76,5 +76,3 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
}//end class

// }}}

?>
1 change: 0 additions & 1 deletion libraries/Config.class.php
Expand Up @@ -1944,4 +1944,3 @@ function PMA_Config_fatalErrorHandler()
register_shutdown_function('PMA_Config_fatalErrorHandler');
}

?>
1 change: 0 additions & 1 deletion libraries/DBQbe.class.php
Expand Up @@ -1966,4 +1966,3 @@ private function _getLeftJoinColumnCandidatesBest(
}
}
}
?>
1 change: 0 additions & 1 deletion libraries/DatabaseInterface.class.php
Expand Up @@ -3133,4 +3133,3 @@ public function getTable($db_name, $table_name)
return new PMA_Table($table_name, $db_name, $this);
}
}
?>
1 change: 0 additions & 1 deletion libraries/DisplayResults.class.php
Expand Up @@ -5762,4 +5762,3 @@ private function _getPartialText($str)
}
}

?>
1 change: 0 additions & 1 deletion libraries/Error.class.php
Expand Up @@ -467,4 +467,3 @@ static function relPath($dest)
);
}
}
?>
1 change: 0 additions & 1 deletion libraries/File.class.php
Expand Up @@ -729,4 +729,3 @@ public function eof()

}
}
?>
1 change: 0 additions & 1 deletion libraries/Font.class.php
Expand Up @@ -142,4 +142,3 @@ public static function getStringWidth($text, $font, $fontSize, $charLists = null
return (int)ceil($textWidth * $modifier);
}
}
?>
1 change: 0 additions & 1 deletion libraries/Header.class.php
Expand Up @@ -779,4 +779,3 @@ private function _addRecentTable($db, $table)
}
}

?>
1 change: 0 additions & 1 deletion libraries/Index.class.php
Expand Up @@ -1056,4 +1056,3 @@ public function getCompareData()
);
}
}
?>
1 change: 0 additions & 1 deletion libraries/List.class.php
Expand Up @@ -119,4 +119,3 @@ public function getDefault()
*/
abstract public function build();
}
?>
1 change: 0 additions & 1 deletion libraries/List_Database.class.php
Expand Up @@ -190,4 +190,3 @@ public function getDefault()
return $this->getEmpty();
}
}
?>
1 change: 0 additions & 1 deletion libraries/Menu.class.php
Expand Up @@ -640,4 +640,3 @@ public function setTable($table)
}
}

?>
1 change: 0 additions & 1 deletion libraries/Message.class.php
Expand Up @@ -756,4 +756,3 @@ public function getMessageWithIcon($message)

}
}
?>
1 change: 0 additions & 1 deletion libraries/OutputBuffering.class.php
Expand Up @@ -136,4 +136,3 @@ public function flush()
}
}

?>
1 change: 0 additions & 1 deletion libraries/PMA.php
Expand Up @@ -106,4 +106,3 @@ public function getDatabaseList()
return $this->databases;
}
}
?>
1 change: 0 additions & 1 deletion libraries/Partition.class.php
Expand Up @@ -97,4 +97,3 @@ static public function havePartitioning()
return $have_partitioning;
}
}
?>
1 change: 0 additions & 1 deletion libraries/RecentFavoriteTable.class.php
Expand Up @@ -390,4 +390,3 @@ private function _getPmaTable()
return null;
}
}
?>
1 change: 0 additions & 1 deletion libraries/Response.class.php
Expand Up @@ -396,4 +396,3 @@ public static function response()
}
}

?>
1 change: 0 additions & 1 deletion libraries/ServerStatusData.class.php
Expand Up @@ -506,4 +506,3 @@ public static function getHtmlForRefreshList($name,
}
}

?>
1 change: 0 additions & 1 deletion libraries/StorageEngine.class.php
Expand Up @@ -448,4 +448,3 @@ public function getPage($id)
}
}

?>
1 change: 0 additions & 1 deletion libraries/String.class.php
Expand Up @@ -185,4 +185,3 @@ public function numberInRangeInclusive($num, $lower, $upper)
return $this->_type->numberInRangeInclusive($num, $lower, $upper);
}
}
?>
1 change: 0 additions & 1 deletion libraries/StringAbstractType.class.php
Expand Up @@ -32,4 +32,3 @@ public function numberInRangeInclusive($num, $lower, $upper)
return ($num >= $lower && $num <= $upper);
}
}
?>
1 change: 0 additions & 1 deletion libraries/StringByte.int.php
Expand Up @@ -175,4 +175,3 @@ public function ord($string);
*/
public function chr($ascii);
}
?>
1 change: 0 additions & 1 deletion libraries/StringCType.class.php
Expand Up @@ -107,4 +107,3 @@ public function isHexDigit($c)
return ctype_xdigit($c);
} // end of the "isHexDigit()" function
}
?>
1 change: 0 additions & 1 deletion libraries/StringNativeType.class.php
Expand Up @@ -135,4 +135,3 @@ public function isHexDigit($c)
|| $this->numberInRangeInclusive($ord_c, $ord_Alower, $ord_Flower));
} // end of the "isHexDigit()" function
}
?>
1 change: 0 additions & 1 deletion libraries/StringType.int.php
Expand Up @@ -87,4 +87,3 @@ public function isHexDigit($c);
*/
public function numberInRangeInclusive($num, $lower, $upper);
}
?>
1 change: 0 additions & 1 deletion libraries/Table.class.php
Expand Up @@ -2346,4 +2346,3 @@ public function showCreate()
);
}
}
?>
1 change: 0 additions & 1 deletion libraries/TableSearch.class.php
Expand Up @@ -852,4 +852,3 @@ public function getColumnMinMax($column)
return $result;
}
}
?>
1 change: 0 additions & 1 deletion libraries/Theme.class.php
Expand Up @@ -482,4 +482,3 @@ function getCssGradient($start_color, $end_color)
return implode("\n", $result);
}
}
?>
1 change: 0 additions & 1 deletion libraries/Theme_Manager.class.php
Expand Up @@ -457,4 +457,3 @@ public function printCss()
return false;
}
}
?>
1 change: 0 additions & 1 deletion libraries/Tracker.class.php
Expand Up @@ -1028,4 +1028,3 @@ private static function _getTrackingTable()
. '.' . PMA_Util::backquote($cfgRelation['tracking']);
}
}
?>
1 change: 0 additions & 1 deletion libraries/Util.class.php
Expand Up @@ -4863,4 +4863,3 @@ public static function getClassForType($type)
}
}

?>
1 change: 0 additions & 1 deletion libraries/bfShapeFiles/ShapeFile.lib.php
Expand Up @@ -679,4 +679,3 @@ function setError($error) {
}
}

?>
1 change: 0 additions & 1 deletion libraries/central_columns.lib.php
Expand Up @@ -1404,4 +1404,3 @@ function PMA_getHTMLforEditingPage($selected_fld,$selected_db)
$html .= '</form>';
return $html;
}
?>
1 change: 0 additions & 1 deletion libraries/charset_conversion.lib.php
Expand Up @@ -117,4 +117,3 @@ function PMA_convertString($src_charset, $dest_charset, $what)
}
} // end of the "PMA_convertString()" function

?>
1 change: 0 additions & 1 deletion libraries/check_user_privileges.lib.php
Expand Up @@ -404,4 +404,3 @@ function PMA_analyseShowGrant()
$GLOBALS['dbs_to_test'] = false;
}

?>
1 change: 0 additions & 1 deletion libraries/cleanup.lib.php
Expand Up @@ -48,4 +48,3 @@ function PMA_removeRequestVars(&$whitelist)
}
}
}
?>
1 change: 0 additions & 1 deletion libraries/common.inc.php
Expand Up @@ -1239,4 +1239,3 @@
if (! defined('PMA_MINIMUM_COMMON')) {
include_once 'libraries/config/page_settings.class.php';
}
?>
1 change: 0 additions & 1 deletion libraries/config.default.php
Expand Up @@ -3151,4 +3151,3 @@
);


?>
1 change: 0 additions & 1 deletion libraries/config.values.php
Expand Up @@ -272,4 +272,3 @@
array('validateUpperBound', 'value:QueryHistoryMax')
)
);
?>
1 change: 0 additions & 1 deletion libraries/config/ConfigFile.class.php
Expand Up @@ -540,4 +540,3 @@ public function getConfigArray()
return $c;
}
}
?>
1 change: 0 additions & 1 deletion libraries/config/Form.class.php
Expand Up @@ -228,4 +228,3 @@ public function loadForm($form_name, $form)
$this->readTypes();
}
}
?>
1 change: 0 additions & 1 deletion libraries/config/FormDisplay.class.php
Expand Up @@ -876,4 +876,3 @@ private function _fillPostArrayParameters($post_values, $key)
}
}
}
?>
1 change: 0 additions & 1 deletion libraries/config/FormDisplay.tpl.php
Expand Up @@ -510,4 +510,3 @@ function PMA_displayErrors($name, $error_list)
$htmlOutput .= '</dl>';
return $htmlOutput;
}
?>
1 change: 0 additions & 1 deletion libraries/config/Validator.class.php
Expand Up @@ -621,4 +621,3 @@ public static function validateUpperBound($path, $values, $max_value)
: sprintf(__('Value must be equal or lower than %s!'), $max_value)));
}
}
?>
1 change: 0 additions & 1 deletion libraries/config/config_functions.lib.php
Expand Up @@ -51,4 +51,3 @@ function PMA_langName($canonical_path, $type = 'name', $default = 'key')
? ($type == 'desc' ? PMA_lang($lang_key) : $GLOBALS["strConfig$lang_key"])
: ($default == 'key' ? $lang_key : $default);
}
?>
1 change: 0 additions & 1 deletion libraries/config/messages.inc.php
Expand Up @@ -859,4 +859,3 @@
);
$strConfigZeroConf_name = __('Enable Zero Configuration mode');

?>
1 change: 0 additions & 1 deletion libraries/config/setup.forms.php
Expand Up @@ -399,4 +399,3 @@
':group:' . __('Data'),
'texytext_null',
'texytext_columns'));
?>
1 change: 0 additions & 1 deletion libraries/config/user_preferences.forms.php
Expand Up @@ -297,4 +297,3 @@
':group:' . __('Data'),
'Export/texytext_null',
'Export/texytext_columns');
?>
1 change: 0 additions & 1 deletion libraries/core.lib.php
Expand Up @@ -1014,4 +1014,3 @@ function PMA_setGlobalDbOrTable($param)
$GLOBALS['url_params'][$param] = $GLOBALS[$param];
}
}
?>
1 change: 0 additions & 1 deletion libraries/create_addfield.lib.php
Expand Up @@ -385,4 +385,3 @@ function PMA_tryColumnCreationQuery($db, $table, $err_url)
}
return array($GLOBALS['dbi']->tryQuery($sql_query) , $sql_query);
}
?>
1 change: 0 additions & 1 deletion libraries/data_dictionary_relations.lib.php
Expand Up @@ -164,4 +164,3 @@
)
);

?>
1 change: 0 additions & 1 deletion libraries/db_common.inc.php
Expand Up @@ -105,4 +105,3 @@
*/
$url_query = PMA_URL_getCommon(array('db' => $db));

?>
1 change: 0 additions & 1 deletion libraries/db_designer.lib.php
Expand Up @@ -394,4 +394,3 @@ function PMA_getQueryDetails()
{
return PMA\Template::get('designer/query_details')->render();
}
?>
1 change: 0 additions & 1 deletion libraries/db_info.inc.php
Expand Up @@ -246,4 +246,3 @@
if (empty($sub_part)) {
$sub_part = '_structure';
}
?>
1 change: 0 additions & 1 deletion libraries/db_table_exists.lib.php
Expand Up @@ -103,4 +103,3 @@
}
}
} // end if (ensures table exists)
?>
1 change: 0 additions & 1 deletion libraries/dbi/DBIDrizzle.class.php
Expand Up @@ -551,4 +551,3 @@ public function storeResult($link)
return false;
}
}
?>
1 change: 0 additions & 1 deletion libraries/dbi/DBIDummy.class.php
Expand Up @@ -966,4 +966,3 @@ public function fieldFlags($result, $i)
return '';
}
}
?>
1 change: 0 additions & 1 deletion libraries/dbi/DBIExtension.int.php
Expand Up @@ -259,4 +259,3 @@ function PMA_defineClientAPI($version)
);
}
}
?>
1 change: 0 additions & 1 deletion libraries/dbi/DBIMysql.class.php
Expand Up @@ -466,4 +466,3 @@ public function storeResult($result)
return false;
}
}
?>
1 change: 0 additions & 1 deletion libraries/dbi/DBIMysqli.class.php
Expand Up @@ -620,4 +620,3 @@ public function fieldFlags($result, $i)
return implode(' ', $flags);
}
}
?>
1 change: 0 additions & 1 deletion libraries/display_create_database.lib.php
Expand Up @@ -59,4 +59,3 @@
)
. '' . __('No Privileges') . '</span>';
} // end create db form or message
?>
1 change: 0 additions & 1 deletion libraries/display_create_table.lib.php
Expand Up @@ -79,4 +79,3 @@ function PMA_getHtmlForCreateTable($db)
if (!defined('TESTSUITE')) {
echo PMA_getHtmlForCreateTable($db);
}
?>
1 change: 0 additions & 1 deletion libraries/display_export.lib.php
Expand Up @@ -1022,4 +1022,3 @@ function PMA_getHtmlForAliasModalDialog($db = '', $table = '')
$html .= '</div>';
return $html;
}
?>
1 change: 0 additions & 1 deletion libraries/display_import.inc.php
Expand Up @@ -62,4 +62,3 @@
$response = PMA_Response::getInstance();
$response->addHTML($html);

?>
1 change: 0 additions & 1 deletion libraries/display_import.lib.php
Expand Up @@ -618,4 +618,3 @@ function PMA_getHtmlForImportWithPlugin($upload_id)
return $html;
}

?>
1 change: 0 additions & 1 deletion libraries/display_import_ajax.lib.php
Expand Up @@ -126,4 +126,3 @@ function PMA_importAjaxStatus($id)
$_SESSION[$GLOBALS['SESSION_KEY']]['handler']::getUploadStatus($id)
);
}
?>
1 change: 0 additions & 1 deletion libraries/display_select_lang.lib.php
Expand Up @@ -95,4 +95,3 @@ function PMA_getLanguageSelectorHtml($use_fieldset = false, $show_doc = true)
return $retval;
}

?>
1 change: 0 additions & 1 deletion libraries/display_structure.inc.php
Expand Up @@ -271,4 +271,3 @@
$response->addHTML(
'<div class="clearfloat"></div>'
);
?>
1 change: 0 additions & 1 deletion libraries/engines/bdb.lib.php
Expand Up @@ -84,4 +84,3 @@ public function getMysqlHelpPage()
}
}

?>
1 change: 0 additions & 1 deletion libraries/engines/berkeleydb.lib.php
Expand Up @@ -23,4 +23,3 @@ class PMA_StorageEngine_Berkeleydb extends PMA_StorageEngine_Bdb
{
}

?>
1 change: 0 additions & 1 deletion libraries/engines/binlog.lib.php
Expand Up @@ -28,4 +28,3 @@ public function getMysqlHelpPage()
}
}

?>
1 change: 0 additions & 1 deletion libraries/engines/innobase.lib.php
Expand Up @@ -22,4 +22,3 @@
class PMA_StorageEngine_Innobase extends PMA_StorageEngine_Innodb
{
}
?>
1 change: 0 additions & 1 deletion libraries/engines/innodb.lib.php
Expand Up @@ -389,4 +389,3 @@ public function supportsFilePerTable()
}
}

?>
1 change: 0 additions & 1 deletion libraries/engines/memory.lib.php
Expand Up @@ -31,4 +31,3 @@ public function getVariables()
}
}

?>
1 change: 0 additions & 1 deletion libraries/engines/merge.lib.php
Expand Up @@ -18,4 +18,3 @@ class PMA_StorageEngine_Merge extends PMA_StorageEngine
{
}

?>
1 change: 0 additions & 1 deletion libraries/engines/mrg_myisam.lib.php
Expand Up @@ -33,4 +33,3 @@ public function getMysqlHelpPage()
}
}

?>
1 change: 0 additions & 1 deletion libraries/engines/myisam.lib.php
Expand Up @@ -66,4 +66,3 @@ public function getVariables()
}
}

?>

0 comments on commit 48044b5

Please sign in to comment.